Hello! I'm having some problems with Firefox in my Ajax script. I'm
using prototype/scriptaculous.
This is the code:
var workplaces =
transport.responseXML.getElementsByTagName('workplace');
for (var i = 0; i<workplaces.length; i++)
{
var node = workplaces[i];
var name = node.getElementsByTagName('newslink')
[0].firstChild.nodeValue;
alert(name);
}
The "alert" returns nothing, it's just empty. In IE6 it returns the
value I want to see. This is the xml I am using:
<?xml version="1.0" encoding="UTF-8" ?>
<worlplace_info>
<workplace>
<newslink>
<![CDATA[
<a href="/cm/1.635" >utan ort</a> (9 maj)
]]>
</newslink>
</worlplace_info>
Anyonte got any ideas as to what may be causing this???
thnx
JOhan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---