For a prototype, I'm trying to get only a portion of a HTML page and display this to the user.
I know that JQuery will only get local data, so I'm using a proxy.php to get the html.
The result is pretty complex - it's .NET so it contains a lot of extra data - I'm only interested in a part of the data.
The web page is a national vehicle register and I'm tryiong to extract which car model, the registration number entered matches.
var _url = "http://selvbetjening.trafikstyrelsen.dk/Sider/resultater.aspx?Reg="+ regnr;
$("#bil").html( "Server responded..." );
var _div = $("*:contains('"+ regnr +"')").html();
console.log( _div ); // Return NULL - should tell me this is a Opel Astra
You can use this working URL and see the HTML for yourself:
Any help and pointers would be appreciated