Opened 13 years ago

Closed 12 years ago

#1140 closed defect (fixed)

problem testing for string in ScriptSrcTransport

Reported by: Alejandro Molina R. (alejomc at gmail dot com) Owned by: James Burke
Priority: high Milestone: 0.9
Component: IO Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

when using ScriptSrtTransport?, I configured a 5 sec timeout, and a check string "x"

I then emit a request to the server, lets suppose that the server takes 10 seconds to answer the request. the registered TimeOut? function is called as expected. but given that the server do answer the request later, the script is loaded ( defining "x" ).

when I emit again a request to the server, then dojo immediately calls the registered load function ( again, because "x" was defined by the late response from the server ) with the old data .

Change History (4)

comment:1 Changed 13 years ago by dylan

Milestone: 0.5

comment:2 Changed 12 years ago by alex

Owner: changed from alex to James Burke

comment:3 Changed 12 years ago by James Burke

(In [9960]) References #1140. In the timeout case, remove the script tag immediately instead of waiting for the next 50ms check. Some oddities with some browsers noted in the test page, but I will file bugs with the browser vendors once this test is in the nightlies.

comment:4 Changed 12 years ago by James Burke

Resolution: fixed
Status: newclosed

Fixed this as best as possible for 0.9. Firefox still has an issue where it will eval the script contents even after the scrip tag has been removed. I'll file a bug with Mozilla once the test page in the above revision is in the nightlies.

Note: See TracTickets for help on using tickets.