It seems to be a well known problem: http://dean.edwards.name/weblog/2006/06/again/
cheers -Rick Riccardo Ruffilli wrote: > > > Hi Josh, thanks again for your answer. > Unfortunatly I don't see any kind of js error. > I've noticed this strange things that may be you can clarify to me, > if I save the page in a static way, and then I reload it the > js should be loaded correctly. > The same things seems to be if I load the page from my local jetty server, > (with no js correct loading (no alert popup comes out)) > and then from the browser address line I refresh the page simply pressing > enter button... > If I use the browser refresh page button nothing happen :( > > I've finally made all the code changes to pass to the newest lib 5.0.11, > ff > and safari works > fine ie not. :(( > > Thanks again. > > -Rick > > > > > > joshcanfield wrote: >> >> You don't mention seeing javascript errors in IE, are there any when >> you load the page and nothing displays? >> >> If there is a syntax error in your javascript (so that IE can't parse >> it) then the whole script block is ignored. >> >> One debugging technique that I use is to view the source of the >> misbehaving page and copy it to a static file on your machine. Then >> you can view the local page and edit out parts of the page until you >> find the culprit, without modifying your source in unwanted ways. I'd >> start by removing everything from the <script> block except >> >> <script type="text/javascript"> >> <!-- >> Tapestry.onDOMLoaded(function() { >> alert('test!'); >> Tapestry.registerForm('sailingForm', {}); >> }); >> // --> >> </script> >> >> and see what happens. >> >> Josh >> >> On Fri, Apr 4, 2008 at 2:12 AM, Riccardo Ruffilli >> <[EMAIL PROTECTED]> wrote: >>> >>> Hi josh, >>> I've checked again the html generated by IE7 and it's exactly the same >>> of the code generated by ff (I make a mistake because I delete a CR >>> sorry! >>> :( ) >>> and this is what I see >>> >>> <script type="text/javascript"> >>> <!-- >>> Tapestry.onDOMLoaded(function() { >>> alert('test!'); >>> ... >>> Tapestry.registerForm('sailingForm', {}); >>> }); >>> // --> >>> </script> >>> >>> so the browser must execute this like a script and not interpret like a >>> comment! >>> But It doesn't seem to be the troth:( >>> >>> Unfortunatly I've no time to make all the changes needed to my classes >>> to >>> pass at the >>> new versions (5.0.11) from my actual working version 5.0.10, so I need >>> to >>> continue with this one. >>> >>> any other tips ? >>> >>> thanks again. >>> >>> -Rick >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> joshcanfield wrote: >>> > >>> > The problem is that IE doesn't see javascript on the same line as the >>> > opening html comment. What version of tapestry are you using? I see >>> > the space added correctly in 5.0.11. >>> > >>> > <!--Tapestry.onDOMLoaded(function() { >>> > should be >>> > <!-- >>> > Tapestry.onDOMLoaded(function() { >>> > >>> > You said that you were using support.addScript("alert('test!');"); but >>> > not where or how. If you have it in a component/method that is >>> > rendered/called multiple times then it will get output each time. >>> > >>> > If you are creating your own <script> blocks one trick is to add >>> > something to the comment to force the space to be there. >>> > >>> > <script> >>> > <!-- This is a comment >>> > alert('hello'); >>> > //--> >>> > </script> >>> > >>> > On Thu, Apr 3, 2008 at 3:55 AM, Riccardo Ruffilli >>> > <[EMAIL PROTECTED]> wrote: >>> >> >>> >> Hi Everybody, >>> >> >>> >> I've got a problem on loading the Tapestry.onDOMLoaded content in i.e >>> and >>> >> I >>> >> can't understand >>> >> in anyways what it's happening...:( >>> >> >>> >> I've put a simple alert with the >>> >> >>> >> support.addScript("alert('test!');"); >>> >> >>> >> so I've got something like this (I miss I've got the right context >>> >> menu... >>> >> but I think it's not the problem) >>> >> in the bottom of my page >>> >> >>> >> <SCRIPT type="text/javascript"> >>> >> >>> >> <!--Tapestry.onDOMLoaded(function() { >>> >> alert('test!'); >>> >> alert('test!'); // twice (but I don't know why) >>> >> >>> >> /* this is for right context... */ >>> >> var menu = { attributes: 'a,b,c',items: >>> [{type:RightContext.TYPE_MENU, >>> >> text:' Submit della form', >>> >> >>> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >>> >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >>> >> >>> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >>> >> RightContext.addMenu('actions', menu); RightContext.initialize();var >>> menu >>> >> = >>> >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >>> >> Submit >>> >> della form', >>> >> >>> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >>> >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >>> >> >>> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >>> >> RightContext.addMenu('actions', menu); RightContext.initialize();var >>> menu >>> >> = >>> >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >>> >> Submit >>> >> della form', >>> >> >>> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >>> >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >>> >> >>> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >>> >> RightContext.addMenu('actions', menu); RightContext.initialize();var >>> menu >>> >> = >>> >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >>> >> Submit >>> >> della form', >>> >> >>> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >>> >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >>> >> >>> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >>> >> RightContext.addMenu('actions', menu); RightContext.initialize();var >>> menu >>> >> = >>> >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >>> >> Submit >>> >> della form', >>> >> >>> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >>> >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >>> >> >>> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >>> >> RightContext.addMenu('actions', menu); RightContext.initialize();var >>> menu >>> >> = >>> >> { attributes: 'a,b,c',items: [{type:RightContext.TYPE_MENU, text:' >>> >> Submit >>> >> della form', >>> >> >>> onclick:function(){RightContext.addSubmitContext('[a]','context_test1')}}, >>> >> {type:RightContext.TYPE_MENU, text:' Seleziona PDV', >>> >> >>> onclick:function(){location.replace('start.testgrid.columns.gtb.sailinglinkableimage.sal/context_test1/[a]')}}]}; >>> >> RightContext.addMenu('actions', menu); RightContext.initialize(); >>> >> >>> >> Tapestry.registerForm('sailingForm', {}); >>> >> >>> >> // --></SCRIPT> >>> >> >>> >> >>> >> In firefox everything works fine as usually, in ie it seems that only >>> >> after >>> >> three or four page reload the alert >>> >> do its job and comes out. Is it a caching problem or something else ? >>> Any >>> >> ideas ? >>> >> >>> >> thanks in advance >>> >> >>> >> -Rick >>> >> >>> >> -- >>> >> View this message in context: >>> >> >>> http://www.nabble.com/T5-Tapestry.onDOMLoaded-internet-explorer-7-tp16467393p16467393.html >>> >> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >> >>> >> >>> >> --------------------------------------------------------------------- >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >>> >> >>> > >>> > >>> > >>> > -- >>> > -- >>> > TheDailyTube.com. Sign up and get the best new videos on the internet >>> > delivered fresh to your inbox. >>> > >>> > --------------------------------------------------------------------- >>> > To unsubscribe, e-mail: [EMAIL PROTECTED] >>> > For additional commands, e-mail: [EMAIL PROTECTED] >>> > >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/T5-Tapestry.onDOMLoaded-internet-explorer-7-tp16467393p16489668.html >>> >>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> >> -- >> -- >> TheDailyTube.com. Sign up and get the best new videos on the internet >> delivered fresh to your inbox. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/T5-Tapestry.onDOMLoaded-internet-explorer-7-tp16467393p16537402.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5-Tapestry.onDOMLoaded-internet-explorer-7-tp16467393p16556244.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]