javascript - How can i parse XML response by a function using jquery? -
i have function giving me response in xml format , want value of attribute xml using jquery ? please
var xml = api.getallavailablemarkups(); alert(xml) xmldoc = $.parsexml( xml ); $xml = $( xmldoc ); $title = $xml.find( "uri" ); alert( $title.text() );
this code : 1. getting object in first alert , in 2nd alert blank ..
2. uri tag available in response xml
- this respones getting api.getallavailablemarkups(); nishant.com
if getting first alert undefined response not sent or response not received response. check out on server side if response if being sent. or create fiddle. otherwise, code . have done job their. check out api used.
Comments
Post a Comment