styleId="" renders to id=""

http://jakarta.apache.org/struts/userGuide/struts-html.html

On 27 May 2004, at 12:16, Ayoub, Ashraf A wrote:

Dears,

I have HTML code with lots of attribute id in any of its tag, the
problem when I convert to struts 1.1, ID is not a valid attribute in
struts, the problem I had is that it have lots of Java scipt code based
on id attribute, and I don't want to lose all this work done by the HTML
designer, is there any possible way to overcome this problem?


Appriciate yr feedback.



Till now what I have done is making the following Javascript method

function getFirstElementInDocumentByName( elementName )

{

  var elementsArray = document.getElementsByName( elementName );

  return elementsArray.item(0);

}



And I replace any getElementById with this method after ensuring the
name is not repeated on the html.



Thanks, best regards



Ashraf Fouad






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



Reply via email to