Hello there, im having a problem with the xml handling, i want to get and xml node and put things in an input text but im a little lost, im using this code, but isn't work, what am i doing wrong?

---------------------
<a href="" XML</a>
<input type="text" value="nothing here" id="respuesta" />
<script type="text/_javascript_">
function getXML(){
    var url = '';
    var myAjax = new Ajax.Request(
        url,
        {
            method: 'get',
            onComplete: showResponse
        });
}
function showResponse(originalRequest){
    var xml = originalRequest.responseText;
    var x = xml.getElementsByTagName('emperor');
    $('respuesta').value = x[0].childNodes[0].nodeName;
}
</script>
---------------------

regards

--
//
//   Ing. Francisco J. Calderón S.
//   [EMAIL PROTECTED]
//   Usuario de GNU/Linux  nº 349529
//   Maracay, Venezuela
//
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to