1. I think you are in the wrong Mailing List - this list is for Struts
Framework Development
2.  Use Other hidden DIV to prepare the Data in regular JSP then use:
oCell.innerHTML =  thatDiv.innerHTML 

thx
        tsemach
Amdocs Ltd.,  MVCInfra A&M 
mailto:[EMAIL PROTECTED]

-----Original Message-----
From: efrat [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 20, 2008 10:37 AM
To: [email protected]
Subject: Struts tags inside innerHTML


Hi,

I'm trying to write Struts tags inside innerHTML and I get unknown
runtime error...
is there any problem to use struts tags (like html:text, html:select...)
in innerHTML???

Here is my code:

var newRow = document.all("dynamicFields").insertRow(0);
var x = xmlHttp.responseText; //Thats what I got from ajax call, a
string (list seperated by "||") var y = x.split("||"); for ( var i=0;
i<y.length -1; i++ ){ var newRow =
document.all("dynamicFields").insertRow();
var oCell = newRow.insertCell();
oCell.innerHTML = y;
oCell = newRow.insertCell();
oCell.innerHTML = '*<html:text styleClass="textbox7" name="MyForm"
property="dynamicField[${i}]" value=""/>*'; }

The last line fails. when I put this tag in my jsp - it works...

Thanks for ur help! 
--
View this message in context:
http://www.nabble.com/Struts-tags-inside-innerHTML-tp16174314p16174314.h
tml
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to