Hi!

I use Shell component.

Component includes dojo.js into each of my pages. Just after declaring
dojo.js library component tries to use dojo javasript object. 

ie. 
<script src=".../dojo.js" ></script>
<script type="text/javascript">
dojo.registerModulePath("tapestry", "path");
</script>


Problem occures becouse when browser will generate page slowly (usually IE
and sometimes FF) than dojo.js is not fully loaded and
dojo.registerModulePath javascript couses errors becouse 'dojo' is
undefined. I red that explorer runs javascript before loading all data from
included js files but dont know how to avoid this. 

I tried to compress dojo.js. I also wanted to define onLoad event and wait
until whole DOM will be ready but dont know how to change HTML generated by
Shell Component. 

Sometimes page works and sometimes not - depending on reloading. 

When this error ocurrs my CSS layout is broken and i need to refresh page
until succesfull load dojo.

I couldnt find any solution on nabble so i decided to start new topic



-- 
View this message in context: 
http://www.nabble.com/%27dojo%27-is-undefined-IE7-tapestry-4.1.6-tp24465036p24465036.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to