Hi

Can I use the Prototype-Element-Class with Ajax-loaded XML?
Follwing code doesn't work for me:

<script type="text/javascript">
  new Ajax.Request("XMLRDB.xml" , {
    method: 'get',
    onSuccess: function(transport) {
      var xml = transport.responseXML;
      var bw =
xml.firstChild.firstChild.nextSibling.nextSibling.nextSibling;
      var bw = Element.extend(bw);
      // Next line does not work, since "bw.readAttribute" is
undefined
      var n = bw.readAttribute("MyAttribute");
    }
  });
</script>

Any hints?
Benedikt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to