You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ray Madigan <ra...@madigans.org> on 2003/03/03 21:20:06 UTC

OnLoad

I am working in a jsp and I have found the item im looking for.

I write out an <img that represents the current selected item.
Now I want to inform another frame that something occured.  There
is no onload javascript handler for the <img tag like there is
in it's html equilivant?  The arguments for the javascript need
to be able to look at request scope variables?  Anyone know how
to accomplish this?

Thanks
RayM  

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: OnLoad

Posted by Eddie Bush <ek...@swbell.net>.
I'd think it would ... but inlining it should solve things.

Ray Madigan wrote:

>I generate the arguments to the scripts on the server. when the jsp is
>being executed and passed to the client.  What i don't know how to do is
>to figure out when to make the call.  The img tag doesn't call the onload
>when it is loaded.  I think i am just going to inline the script call.  I
>was hoping for a little more formality - since regular html will call
>onload.
>

-- 
Eddie Bush





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: OnLoad

Posted by Ray Madigan <ra...@madigans.org>.
I generate the arguments to the scripts on the server. when the jsp is
being executed and passed to the client.  What i don't know how to do is
to figure out when to make the call.  The img tag doesn't call the onload
when it is loaded.  I think i am just going to inline the script call.  I
was hoping for a little more formality - since regular html will call
onload.

-----Original Message-----
From: Eddie Bush [mailto:ekbush@swbell.net]
Sent: Tuesday, March 04, 2003 2:46 AM
To: Struts Users Mailing List
Subject: Re: OnLoad


JavaScript is on the client.  Your "request-scoped variables" are on the
server.  I don't see how you'd manage this unless you somehow wrote the
variables values into your JavaScript somehow.  Essentially, you'd have
to generate your script "on-the-fly".

Ray Madigan wrote:

>I am working in a jsp and I have found the item im looking for.
>
>I write out an <img that represents the current selected item.
>Now I want to inform another frame that something occured.  There
>is no onload javascript handler for the <img tag like there is
>in it's html equilivant?  The arguments for the javascript need
>to be able to look at request scope variables?  Anyone know how
>to accomplish this?
>
>Thanks
>RayM
>

--
Eddie Bush





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: OnLoad

Posted by Eddie Bush <ek...@swbell.net>.
JavaScript is on the client.  Your "request-scoped variables" are on the 
server.  I don't see how you'd manage this unless you somehow wrote the 
variables values into your JavaScript somehow.  Essentially, you'd have 
to generate your script "on-the-fly".

Ray Madigan wrote:

>I am working in a jsp and I have found the item im looking for.
>
>I write out an <img that represents the current selected item.
>Now I want to inform another frame that something occured.  There
>is no onload javascript handler for the <img tag like there is
>in it's html equilivant?  The arguments for the javascript need
>to be able to look at request scope variables?  Anyone know how
>to accomplish this?
>
>Thanks
>RayM
>

-- 
Eddie Bush





---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org