Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How to get Element of Webpage

$
0
0

I was wondering how to only get an element of a webpage which I am parsing the data in.

Currently I am getting the whole webpage like this:

var con = Titanium.Network.createHTTPClient();
    con.open('GET', 'http://www.example.com/');
    con.onload = function()
    {
        Ti.API.info(this.responseText);
        $.label.text= this.responseText;
    };    
    con.send();
I am thinking that just getting part of the webpage would be quicker but if there is no performance difference using alternative methods as they still get the whole webpage but only return part then let me know.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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