Thanks everyone for all your attention to this. Now I'm really confused
because I am positive my event isn't being called. Here is the source
to my layout page. Pages that use this layout do not get any alert box
popping up.
Thanks again,
Alan
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<html>
<head>
<script language="JavaScript" src="js_css/javaScript.js"
type="text/javascript"> </script>
<title><tiles:getAsString name="title"/></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"
/>
</head>
<body onload="alert()" marginwidth="0" marginheight="0" leftmargin="0"
topmargin="0" bgcolor="#FFFFFF">
<table width="690" border="0" cellpadding="0" cellspacing="0"><tr><td>
<table width="690" border=0 cellpadding=0 cellspacing=0>
<tr>
<td>
<tiles:get name="header"/>
</td>
</tr>
<tr>
<td>
<tiles:get name="nav"/>
</td>
</tr>
<tr>
<td>
<tiles:insert attribute="body"/>
</td>
</tr>
<tr>
<td>
<tiles:get name="footer"/>
</td>
</tr>
</table>
</td>
</tr>
</body>
</html>
-----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 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 home... but if you want it I
could look into it tomorrow at work..
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 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]