Re: XML Islands in Firefox
- From: Bart Van der Donck <bart@xxxxxxxxxx>
- Date: Wed, 30 Jan 2008 03:41:19 -0800 (PST)
tomicmi...@xxxxxxxxx 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:Document xmlns:cd="http://Document">
<cd:Data Id="Data"/>
</cd:Document>
</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
.
- Follow-Ups:
- Re: XML Islands in Firefox
- From: tomicmilan@xxxxxxxxx
- Re: XML Islands in Firefox
- References:
- XML Islands in Firefox
- From: tomicmilan@xxxxxxxxx
- Re: XML Islands in Firefox
- From: Bart Van der Donck
- Re: XML Islands in Firefox
- From: tomicmilan@xxxxxxxxx
- XML Islands in Firefox
- Prev by Date: Re: XML Islands in Firefox
- Next by Date: Re: FAQ Topic - Which newsgroups deal with javascript? (2008-01-29)
- Previous by thread: Re: XML Islands in Firefox
- Next by thread: Re: XML Islands in Firefox
- Index(es):