You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Chen, Gin" <Gi...@NielsenMedia.com> on 2003/05/15 22:38:15 UTC

RE: URGENT:populate Data using Struts in Javascript's createEleme nt

it's a DOM function.
document.createElement("div"); for example.
I dont really understand you question though Kaja.

If you mean what I think then do this.

Imagine myBean holds a collection of elements called myStuff that has value
and label.
Do something like this:

<logic:iterate id="stuff" name="myBean" property="myStuff">
var oDiv = document.createElement("option");
oDiv.value = '<bean:write name="stuff" property="value"/>';
oDiv.innerHTML = '<bean:write name="stuff" property="label"/>';
</logic:iterate>

-Tim

-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: Thursday, May 15, 2003 4:31 PM
To: 'Struts Users Mailing List'
Subject: RE: URGENT:populate Data using Struts in Javascript's
createElement


What do you mean?  There is no "createElement()" in native JavaScript.

Mark

-----Original Message-----
From: Kaja.Mohideen@bmwmcext.com [mailto:Kaja.Mohideen@bmwmcext.com] 
Sent: Thursday, May 15, 2003 4:27 PM
To: struts-user@jakarta.apache.org
Subject: URGENT:populate Data using Struts in Javascript's createElement


Hi,
  I am looking for help to handle the javascript in struts way..
   
  Actually I am trying to create a element using Javascript(using
createElement method) and I would like to populate the data from struts,
  
   ..In Advance I appriciate your help..

Thanks,
Kaja


---------------------------------------------------------------------
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

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


RE: URGENT:populate Data using Struts in Javascript's createElement

Posted by Mark Galbreath <ma...@qat.com>.
Doh!

-----Original Message-----
From: Erik Price [mailto:eprice@ptc.com] 
Sent: Thursday, May 15, 2003 4:50 PM
To: Struts Users Mailing List
Subject: Re: URGENT:populate Data using Struts in Javascript's createElement




Mark Galbreath wrote:
> Hey!  School me, dude.  Where is the dox for this?
> 
> Mark

http://www.w3.org/DOM/#what


---------------------------------------------------------------------
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: URGENT:populate Data using Struts in Javascript's createElement

Posted by Erik Price <ep...@ptc.com>.

Mark Galbreath wrote:
> Hey!  School me, dude.  Where is the dox for this?
> 
> Mark

http://www.w3.org/DOM/#what


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


RE: URGENT:populate Data using Struts in Javascript's createElement

Posted by Mark Galbreath <ma...@qat.com>.
Hey!  School me, dude.  Where is the dox for this?

Mark

-----Original Message-----
From: Chen, Gin [mailto:Gin.Chen@NielsenMedia.com] 
Sent: Thursday, May 15, 2003 4:38 PM
To: 'Struts Users Mailing List'
Subject: RE: URGENT:populate Data using Struts in Javascript's createElement


it's a DOM function.
document.createElement("div"); for example.
I dont really understand you question though Kaja.

If you mean what I think then do this.

Imagine myBean holds a collection of elements called myStuff that has value
and label. Do something like this:

<logic:iterate id="stuff" name="myBean" property="myStuff">
var oDiv = document.createElement("option");
oDiv.value = '<bean:write name="stuff" property="value"/>'; oDiv.innerHTML =
'<bean:write name="stuff" property="label"/>'; </logic:iterate>

-Tim

-----Original Message-----
From: Mark Galbreath [mailto:mark_galbreath@qat.com]
Sent: Thursday, May 15, 2003 4:31 PM
To: 'Struts Users Mailing List'
Subject: RE: URGENT:populate Data using Struts in Javascript's createElement


What do you mean?  There is no "createElement()" in native JavaScript.

Mark

-----Original Message-----
From: Kaja.Mohideen@bmwmcext.com [mailto:Kaja.Mohideen@bmwmcext.com] 
Sent: Thursday, May 15, 2003 4:27 PM
To: struts-user@jakarta.apache.org
Subject: URGENT:populate Data using Struts in Javascript's createElement


Hi,
  I am looking for help to handle the javascript in struts way..
   
  Actually I am trying to create a element using Javascript(using
createElement method) and I would like to populate the data from struts,
  
   ..In Advance I appriciate your help..

Thanks,
Kaja


---------------------------------------------------------------------
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

---------------------------------------------------------------------
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