Side navigation
#7707 closed bug (invalid)
Opened December 06, 2010 07:44AM UTC
Closed December 06, 2010 10:01AM UTC
Inside an ajax event dollar sign operator does not return xmlDocument tag
Reported by: | karabulutalper@gmail.com | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.6 |
Component: | unfiled | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Inside an ajax event; i.e.
$.ajax({ type: "POST", contentType: "application/xml", url: "getUrsip.irpt", data: "ursip=" + siparis.value, complete: function( transport ) { xml = transport.responseXML; $( "kunnr" ).value = $( "KUNNR", xml ); } );
$("KUNNR", xml);
returns null parameter even xml has a xml formated document..
Attachments (0)
Change History (2)
Changed December 06, 2010 09:52AM UTC by comment:1
description: | Inside a ajax event; i.e. \ \ {{{ \ $.ajax({ \ type: "POST", contentType:"application/xml" , url: "getUrsip.irpt", data: "ursip="+siparis.value, \ complete: function(transport){ \ xml = transport.responseXML; \ $("kunnr").value = $("KUNNR", xml); \ }); \ }}} \ '''$("KUNNR", xml);''' \ returns null parameter even xml has a xml formated document.. \ → Inside an ajax event; i.e. \ \ {{{ \ $.ajax({ \ type: "POST", \ contentType: "application/xml", \ url: "getUrsip.irpt", \ data: "ursip=" + siparis.value, \ complete: function( transport ) { \ xml = transport.responseXML; \ $( "kunnr" ).value = $( "KUNNR", xml ); \ } \ ); \ }}} \ '''$("KUNNR", xml);''' \ returns null parameter even xml has a xml formated document.. \ |
---|---|
summary: | inside a ajax event dolar sign operator does not returns xmlDocument tag → Inside an ajax event dollar sign operator does not return xmlDocument tag |
Changed December 06, 2010 10:01AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
Thanks for taking the time to contribute to the jQuery project by writing a bug report.
We require that all bug reports include a valid reduced test case, which reproduces the issue you are experiencing, on http://jsfiddle.net.\\\\
As such a test case is missing from the report I made one based on your description. This live test case works for me like expected.
After checking your report and making a test case I think that there is no bug and that your problem is most likely caused by something else. I close this ticket, but feel free to report back with a valid reduced test case showing the bug and demand the reopening of this ticket
A few notes:
- in the code you pasted a curly closing bracket is missing
- you set
contentType
toapplication/xml
butdata
is a non XML string - are you sure the XML returned by the server is valid XML
- did you try using the
error
callback to check if there is and/or what the error is
fixed formatting