So I have a Struts/Tiles page that I need to have a
Javascript function called on when the page loads. Normally this is of
course accomplished with the BODY onLoad event however this event isn't
fired when my page loads and from doing extensive Googling I've found
that this has somethin
I had this problem but I just used a tiles tag from the tiles page.
In my page which brings in the Body tag;
>
>From the calling page eg...
Hope this helps
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
To: Struts Users Mailing List
Subject: Re: BODY onLoad Workaround
Alan,
I don't see any problem with using the BODY onLoad
event handler. I also searched on Google and found
several instances where others are using it without
any problems. What does your code look like? What
happens when you do a
cause with you :)
Thanks again,
Alan
-Original Message-
From: Alan Weissman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 6:19 PM
To: 'Struts Users Mailing List'
Subject: RE: BODY onLoad Workaround
Unfortunately, this does not change the behavior.
Would it be
List
Subject: RE: BODY onLoad Workaround
Try putting a semicolon after your alert() call. It
works for me.
wrote:
> Ok something incredibly strange is afoot:
>
> If I do a view source and save the source code, then
> load the page from
> the file system, the alert() works.
>
&g
g, it is not called.
> >
> > I have never run into anything like this before.
> Though I'm starting to
> > think this might not be a Struts/Tiles thing.
> >
> > Any thoughts?
> >
> > Thanks so much,
> > Alan
> >
> > -Original Me
iling List'
Subject: RE: BODY onLoad Workaround
You cannot have an empty alert. At least under Firefox browser:
That is:
This works:
THe doc body.
But this doesn't:
THe doc body.
You can also try validating your page:
http://validator.w3.org/
You may have some bad HTML
-R^3
.
>
> Any thoughts?
>
> Thanks so much,
> Alan
>
> -Original Message-
> From: Alan Weissman
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 02, 2004 6:03 PM
> To: 'Struts Users Mailing List'
> Subject: RE: BODY onLoad Workaround
>
>
eissman [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 02, 2004 6:03 PM
> To: 'Struts Users Mailing List'
> Subject: RE: BODY onLoad Workaround
>
> Hey Mark, could you explain what you mean? I've tried shutting down
> Tomcat and restarting, which shouldn't ma
PM
To: 'Struts Users Mailing List'
Subject: RE: BODY onLoad Workaround
Hey Mark, could you explain what you mean? I've tried shutting down
Tomcat and restarting, which shouldn't make a difference. I can also
verify that onload="alert()" is part of the page by
lto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 6:00 PM
To: Struts Users Mailing List
Subject: Re: BODY onLoad Workaround
I guess its possible that the layout isn't getting reloaded with the
tiles request.
an iframe or an image will do as a quick hack.
On 2 Mar 2004, at 23:51, Alan
:53 PM
To: Struts Users Mailing List
Subject: Re: BODY onLoad Workaround
Hi Alain,
I have used the body onload successfully
http://order.scarlet.be/order/adsl/start.do?language=nlĀ®code=PIBUS-
WS
&accode=AcUjjdIK&product=One
Using it quite often...
I dont have the struts source code here at hom
/wiki/retep/taglib/common/onload/index.html
Thanks again,
Alan
-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 5:45 PM
To: Struts Users Mailing List
Subject: Re: BODY onLoad Workaround
Alan,
I don't see any problem with using the BODY onLoad
-tiles.tld" prefix="tiles" %>
-Original Message-
From: Alexander Craen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 5:53 PM
To: Struts Users Mailing List
Subject: Re: BODY onLoad Wo
..
grtz
Alexander Craen
- Original Message -
From: "Richard Yee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 11:44 PM
Subject: Re: BODY onLoad Workaround
> Alan,
> I don't see any problem
completely?
Thanks,
Alan
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 5:34 PM
To: Struts Users Mailing List
Subject: Re: BODY onLoad Workaround
Iframe would be one possible hack. Have the page that loads run a
javascript function that drills
Mailing List
Subject: Re: BODY onLoad Workaround
Alan,
I don't see any problem with using the BODY onLoad
event handler. I also searched on Google and found
several instances where others are using it without
any problems. What does your code look like? What
happens when you do a view/source
Alan,
I don't see any problem with using the BODY onLoad
event handler. I also searched on Google and found
several instances where others are using it without
any problems. What does your code look like? What
happens when you do a view/source in the browser? Have
you tried using Netscape and looki
correction
On 2 Mar 2004, at 23:33, Mark Lowe wrote:
Iframe would be one possible hack. Have the page that loads run a
javascript function that drills back up to your page.
or an onload on an image, or simply execute the function in the page.
lastly have something like this in your layout
Users Mailing List
Subject: Re: BODY onLoad Workaround
Iframe would be one possible hack. Have the page that loads run a
javascript function that drills back up to your page.
or an onload on an image, or simply execute the function in the page.
lastly have something like this in your layout
Iframe would be one possible hack. Have the page that loads run a
javascript function that drills back up to your page.
or an onload on an image, or simply execute the function in the page.
lastly have something like this in your layout