469,270 Members | 1,206 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

How to get the name of dynamically generated elements....?

I want to process the XML File and display it in the browser(IE).
I have the written code which accepts the XML file as input,parses it and displays it in IE with proper indentation.

To achieve this task,I have used ActivexObject(Microsoft.XMLDOM).
I am traversing the DOM tree and processing the tag elements.
For displaying the tag (XML tag) in browser,I simply used document.write() method.

e.g; document.write("&lt"+node.nodeName+"&gt")

While processing the elements,if any element have "max " attribute then textbox and button will be displayed next to that tag.
The buttons and textboxes are generated dynamically.
Name of text box and button is derived from tag name.

e.g; If the note tag has attribute max,
<note max="unbound">
then textbox and button will be displayed next to this tag.


Name of text box will be "note_text" and name of button will be "note_button".

In this way every element will be processed.
Now if user gives input and clicks on button then that element should be displayed given number of times.

I am facing problem in accessing the name of text box and its value.
So please help me regarding the same.
Nov 15 '06 #1
1 2109
pronerd
392 Expert 256MB
I am facing problem in accessing the name of text box and its value.So please help me regarding the same.
And that problem would be......
Nov 15 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

12 posts views Thread by Jochen Daum | last post: by
27 posts views Thread by Nicholas Couch | last post: by
2 posts views Thread by Pierre-Yves | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.