![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Yes, I know I can not trust innerHTML. That is why I am asking for help here. I have already seen the link you posted but it didn't helped me. With document.getElementById("zahtevek") I get a reference to <xml element but I don't know how to extract XML as a string from it. : ( That is the problem. |
#3
| |||
| |||
|
|
Yes, I know I can not trust innerHTML. That is why I am asking for help here. I have already seen the link you posted but it didn't helped me. With document.getElementById("zahtevek") I get a reference to <xml element but I don't know how to extract XML as a string from it. : ( That is the problem. |
ocument xmlns:cd="http://Document">
ata Id="Data"/>
ocument>
#4
| |||
| |||
|
|
tomicmi... (AT) gmail (DOT) com wrote: Yes, I know I can not trust innerHTML. That is why I am asking for help here. I have already seen the link you posted but it didn't helped me. With document.getElementById("zahtevek") I get a reference to <xml element but I don't know how to extract XML as a string from it. : ( That is the problem. Maybe you could use <textarea> in stead of <div>: form method="get" action="#" textarea cols="60" rows="10" name="zahtevek" xml id="zahtevek" cd ocument xmlns:cd="http://Document"cd ata Id="Data"//cd ocument/xml /textarea input type="button" name="Test" value="Test" onclick="alert(document.forms[0].zahtevek.value);" /form With CSS and onFocus="blur()" it looks identical as a div. -- Bart |
#5
| |||
| |||
|
|
Bart Van der Donck wrote: * * <form method="get" action="#" * * <textarea cols="60" rows="10" name="zahtevek" * * <xml id="zahtevek" * * *<cd ocument xmlns:cd="http://Document"* * * <cd ata Id="Data"/* * *</cd ocument* * </xml * * </textarea * * <input type="button" name="Test" value="Test" * * *onclick="alert(document.forms[0].zahtevek.value);" * * </form I have tried that today but it doesn't work for me. Special characters (©ÐÈÆ®¹ðèæ¾) are not properly handled when placed intoand taken from an textarea. I will have to follow Martin's advice and use XMLHttpRequest. |
![]() |
| Thread Tools | |
| Display Modes | |
| |