Hi Steve,
I've got the latest source from the SVN and built it but I still have the
same problem.
Maybe I should illustrate what I'm doing, so here is an example:
I have a template XML document:
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<header>
<api>PROPERTY_SEARCH</api>
</header>
<body>
<property>
<ref></ref>
<house_no></house_no>
<house_name></house_name>
<postcode></postcode>
</property>
</body>
</doc>
which I want to populate with values from a form to get:
<?xml version="1.0" encoding="UTF-8"?>
<doc>
<header>
<api>PROPERTY_SEARCH</api>
</header>
<body>
<property>
<ref>abc123</ref>
<house_no>123</house_no>
<house_name>abc</house_name>
<postcode>ab1234</postcode>
</property>
</body>
</doc>
I have some code which will do this in Firefox/Opera but not IE:
function test() {
var data_item = {"ref":"abc123",
"house_no":"123",
"house_name":"abc",
"postcode":"ab1234"
};
$.get("xml/testTemplate.xml", function(xml) {
$.each(data_item, function(i) {
$(i,xml).append(data_item[i]);
});
alert("Request: "+ $(xml).toXML());
});
}
I get a 'Type mismatch' error from IE when it tries to use the .append
function. If I comment out this line the alert will only give me:
'Request: '
but will give me the full tree for firefox/opera.
Is this still a bug or am I abusing jquery in some way?
Richard
Stephen Woodbridge wrote:
>
> Richard,
>
> This sounds like bug 164, which has been recently fixed in svn.
>
> -Steve
>
>
--
View this message in context:
http://www.nabble.com/%24.get---Retrieving-XML-Docs-tf2598993.html#a7256164
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/