Interesting...
Empty alerts work fine in IE.
-Richard
--- [EMAIL PROTECTED] wrote:
> You cannot have an empty alert. At least under
> Firefox browser:
>
> That is:
>
> This works:
> <html>
> <body onload="alert('Hello')">
> THe doc body.
> </body>
> </html>
>
> But this doesn't:
> <html>
> <body onload="alert()">
> THe doc body.
> </body>
> </html>
>
> You can also try validating your page:
> http://validator.w3.org/
> You may have some bad HTML
> -R^3
>
> On Tue, 2 Mar 2004, Alan Weissman 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.
> >
> > If I use IE to save the page and then load the
> page from the file
> > system, I do not get a full page saved, and though
> the alert() is in the
> > body tag, 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 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
> >
> > 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 doing a view
> > source.
> >
> > Thanks,
> > Alan
> >
> > -----Original Message-----
> > From: Mark Lowe [mailto:[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.
> >
> > <iframe width="0" height="0" src="foo.html" />
> >
> > On 2 Mar 2004, at 23:51, Alan Weissman wrote:
> >
> > > Thanks Richard for your input. Can you let me
> know where you see
> > > people
> > > using it? I have an onLoad="alert('body
> onload')" on my BODY tag
> > which
> > > resides in my layout and it is not being called.
> > >
> > > I also found this, which leads me to believe
> that I am not alone in
> > > this
> > > problem. I am however, not able to find where
> to download the tag
> > > library the page refers to.
> > >
> > >
>
http://retep.org/retep/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
> > > 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 looking at the
> JavaScript
> > > console?
> > >
> > > -Richard
> > >
> > >
> > >
> > > --- Alan Weissman <[EMAIL PROTECTED]>
> wrote:
> > >> Hey everyone -
> > >>
> > >>
> > >>
> > >> 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 something to do with the nature
> of
> > >> Struts/Tiles pages
> > >> (though I'm not sure what). What is the best
> > >> workaround for this?
> > >>
> > >>
> > >>
> > >> Thanks so much,
> > >>
> > >> Alan
> > >>
> > >>
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Search - Find what you're looking for
> faster
> > > http://search.yahoo.com
> > >
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]