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]

Reply via email to