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.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


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

Reply via email to