I have a sample of code that works in Firefox but not IE (6).

jQuery code:

$.post("xml_listbox.php",{
        table: "link_category",
        value: "cat_id",
        label: "cat_name"
  },function(xml){
                $("options/option",xml).each(
                function()
                {
                alert($(this).attr("val") + " " + $(this).text());
                });
  });


xml_listbox.php contains:

<options>
        <option val="1">Holiday Park</option>
        <option val="3">Holiday Home Hire</option>
        <option val="5">Decking/Verandas Company</option>
        <option val="4">Trade Body</option>
        <option val="6">Haulage</option>
        <option val="7">Surveyors</option>
        <option val="8">Estate Agents</option>
</options>

The error in IE is "The Object Doesn't support this property or method"
on the alert line.

Does any one have any suggestions?

Regards
Androo

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to