Hi,

I noticed the gfx SVGWeb tests don't pass anymore under IE (for
example dojox/gfx/tests/svgweb/sample.html using the current trunk
rev).
But if I test with an older 1.7 rev I have on my disk; the tests passes.
There have been no changes in svgweb itself; (if I copy the svgweb
source into my old trunk; it works too).
So I am starting to think it may be something in dojo.

Basically; the problem is the following:

o a script tag references the svgweb source
o a script tag references the dojo.js
o in the svgweb source, a script tag is dynamically created and a
onreadystatechange handler is set on it. In this handler, when the
state is "complete", svgweb initialization happens.
o in the html; a dojo.addOnLoad() is set that will create the gfx surface.

The problem is: in the current trunk, the function registered by
addOnLoad is executed before the onreadystatechange handler is
called.
With my older repo; the onreadystatechange handler is called first.

I am still investigating, but if anyone has an idea on what could be
the problem (or what has changed that could explain that) I would be
more than happy to hear from you :-)

Thanks,

--
Patrick

Search Discussions

  • Eugene Lazutkin at May 3, 2011 at 3:30 pm
    While you are at it, SVGWeb we ship with our tests is an old version.
    New versions never properly worked with dojox.gfx.svg. It would be nice
    to investigate what is going on, and update SVGWeb to the latest version.

    Cheers,

    Eugene Lazutkin
    http://lazutkin.com/

    On 05/03/2011 12:22 PM, Patrick Ruzand wrote:
    Hi,

    I noticed the gfx SVGWeb tests don't pass anymore under IE (for
    example dojox/gfx/tests/svgweb/sample.html using the current trunk
    rev).
    But if I test with an older 1.7 rev I have on my disk; the tests passes.
    There have been no changes in svgweb itself; (if I copy the svgweb
    source into my old trunk; it works too).
    So I am starting to think it may be something in dojo.

    Basically; the problem is the following:

    o a script tag references the svgweb source
    o a script tag references the dojo.js
    o in the svgweb source, a script tag is dynamically created and a
    onreadystatechange handler is set on it. In this handler, when the
    state is "complete", svgweb initialization happens.
    o in the html; a dojo.addOnLoad() is set that will create the gfx surface.

    The problem is: in the current trunk, the function registered by
    addOnLoad is executed before the onreadystatechange handler is
    called.
    With my older repo; the onreadystatechange handler is called first.

    I am still investigating, but if anyone has an idea on what could be
    the problem (or what has changed that could explain that) I would be
    more than happy to hear from you :-)

    Thanks,

    --
    Patrick
  • Patrick Ruzand at May 4, 2011 at 9:04 am
    Hi,

    a follow-up to my problem :
    I noticed the gfx SVGWeb tests don't pass anymore under IE (for
    example dojox/gfx/tests/svgweb/sample.html using the current trunk
    rev).
    But if I test with an older 1.7 rev I have on my disk; the tests passes.
    [...]>> Basically; the problem is the following:
    The problem is: in the current trunk, the function registered by
    addOnLoad ?is executed before the onreadystatechange handler is
    called.
    With my older repo; the onreadystatechange handler is called first.
    I have isolated the revision from where it fails. it's dojo rev.
    24328, that is the switch to AMD.
    Do you guys know how the new AMD loader could change the loading order
    of scripts ? That is, why the function set by addOnLoad is now called
    before the dynamic <script> element onreadystatechange handler ?

    I can try to make a minimal sample that reproduces the problem, *if it
    is* a problem of course.
    While you are at it, SVGWeb we ship with our tests is an old version.
    New versions never properly worked with dojox.gfx.svg. It would be nice
    to investigate what is going on, and update SVGWeb to the latest version.
    Sure. I will look at that (but not sure if it could be done for Friday).

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdojo-contributors @
categoriesdojo
postedMay 3, '11 at 1:22p
activeMay 4, '11 at 9:04a
posts3
users2
websitedojotoolkit.org

2 users in discussion

Patrick Ruzand: 2 posts Eugene Lazutkin: 1 post

People

Translate

site design / logo © 2022 Grokbase