Showing xml in html using javascript



I am stuck in a problem. I have an html form that contains a textarea and a button. I input an xml string to textarea, press the button and it calls purely javascript to parse xml and after parsing xml into some different xml, i convert the new xml into string.


I have created another text area but not in the form, outside the form and now I want the new xml to be the value of this textarea that's outside the form. Everything works fine, no errors but as soon as javascript finishes it's work, page empties both text areas and I am unable to view the text area contents at all... It's surely some DOM thing and I am not very much aware of that. So, any of you can please help me in this regard?


Thanks


No comments:

Post a Comment