Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: How to use the XMLHttpRequest object to Grag info in the HTML "h1" tag on the Response.

$
0
0

Hi Bob,

 

You could use regular expressions. Another option is using jQuery and constructing html elements from the string and then parsing dom:

 

var html = $.parseHTML( xmlhttp.response);

var el = $('<div/>').append(html).find('h1').get();

var value = el[0].innerHTML;

 

Regards,

Kimmo


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>