I want to include only the google results (Div id="ires") for the given URL part. I encountered for example the "No 'Access-Control-Allow-Origin'"- Problem and I wonder how to solve this.
I started a JSfiddle here with my try: http://jsfiddle.net/23z7w3xp/1/
HTML:
<div id="results">Waiting for results</div>
<input type="button" id="btn" value="Show results">
JS:
$("#btn").click(function () {
var requesthtml = "https://www.google.de/?gfe_rd=cr&ei=pXVyVKCDJKeK8QfkkoDYCg#q=test";
$.get( requesthtml, function( data ) {
var htmlcontent = data;
$('#results').html(htmlcontent.find('#ires').text());
alert( "Load was performed." );
});
});