[Dojo-checkins] [dojo] #2287: dojo.io.bind with mimetype: "text/javascript" dose not work in IE

dojo trac at dojotoolkit.org
Sun Jan 7 22:33:10 MST 2007


#2287: dojo.io.bind with mimetype: "text/javascript" dose not work in IE
-------------------------------+--------------------------------------------
 Reporter:  ewilde at nana.co.il  |       Owner:  alex 
     Type:  defect             |      Status:  new  
 Priority:  normal             |   Milestone:       
Component:  IO                 |     Version:  0.4.1
 Severity:  normal             |    Keywords:       
-------------------------------+--------------------------------------------
 it seems like that the script is indeed executed, but not in the global
 scope.

 for testing example, i passed the following script:
 {{{
 var a1=[1,1];
 alert(a1);
 }}}

 i have got the alert-box as expected, but it failed in the load function:

 {{{
 dojo.io.bind({
 ...
 load: function(type, evaldObj){
   alert(a1); // exception raised !!
 },
 ...
 }}}

 i suspect that in IE we should use execScript(), and not eval().
 (eventually, in IE my workaround was using execScript with mimetype:
 "text/javascript")

 Best regards,
 ewilde.

-- 
Ticket URL: <http://trac.dojotoolkit.org/ticket/2287>
dojo <http://dojotoolkit.org/>
The Dojo UI Toolkit


More information about the Dojo-checkins mailing list