<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>Topic &#x27;JQuery - remote page code load&#x27; in forum &#x27;Webmasters and Developers&#x27; - dslreports.com</title>
<link>http://www.dslreports.com/forum/JQuery-remote-page-code-load-27685093</link>
<description></description>
<language>en</language>
<pubDate>Wed, 22 May 2013 17:59:44 EDT</pubDate>
<lastBuildDate>Wed, 22 May 2013 17:59:44 EDT</lastBuildDate>

<item>
<title>Re: JQuery - remote page code load</title>
<link>http://www.dslreports.com/forum/Re-JQuery-remote-page-code-load-27700926</link>
<description><![CDATA[dlsauers posted :  <BLOCKQUOTE><SMALL>said by <a href="/profile/386501" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=386501');">JAAulde</a>:</SMALL><HR>JavaScript, and therefore AJAX and jQuery, are limited to communication with the domain on which they're executed. This is a security precaution and cannot be overridden.<HR></BLOCKQUOTE><br><br>Well then then google and the various sites should quit listing this as a solution to this! Or prior versions allowed this and then changed it later... Now I know why I prefer PHP.<br><br> <BLOCKQUOTE><SMALL>said by <a href="/profile/1675513" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=1675513');">TuxRaiderPen</a>:</SMALL><HR>You might try <br><br>&raquo;<A HREF="http://simplehtmldom.sourceforge.net/" >simplehtmldom.sourceforge.net/</A><br> <HR></BLOCKQUOTE><br><br>THANKS!<br><br>Excellent! ! !<br><br>A PHP solution, no lame ECMAScript garbage! ! ! <br><br>Problem solved, pulled in the code, erased the garbage and displayed the page! Perfect!<br><br>Thanks!]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-JQuery-remote-page-code-load-27700926</guid>
<pubDate>Tue, 06 Nov 2012 19:07:47 EDT</pubDate>
</item>

<item>
<title>Re: JQuery - remote page code load</title>
<link>http://www.dslreports.com/forum/Re-JQuery-remote-page-code-load-27696822</link>
<description><![CDATA[TuxRaiderPen posted : You might try <br><br>&raquo;<A HREF="http://simplehtmldom.sourceforge.net/" >simplehtmldom.sourceforge.net/</A>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-JQuery-remote-page-code-load-27696822</guid>
<pubDate>Mon, 05 Nov 2012 18:02:26 EDT</pubDate>
</item>

<item>
<title>Re: JQuery - remote page code load</title>
<link>http://www.dslreports.com/forum/Re-JQuery-remote-page-code-load-27685151</link>
<description><![CDATA[cdru posted : <div class="bquote"><said>said by <a href="/profile/386501" onClick="this.blur(); return popup(event,'/uidpop?ajh=1&uid=386501');">JAAulde</a>:</said><p>The only exception is JSONP, which requires cooperation on the part of the remote server.<br> </p></div>Or <a href="http://en.wikipedia.org/wiki/Cross-origin_resource_sharing">Cross-origin resource sharing</a> also allows it, but also requires some cooperation. The other alternatives is server side proxy or DNS alias.  <br><br>There are limitations to all of the above, so there isn't one solution that fits all.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-JQuery-remote-page-code-load-27685151</guid>
<pubDate>Thu, 01 Nov 2012 21:06:41 EDT</pubDate>
</item>

<item>
<title>Re: JQuery - remote page code load</title>
<link>http://www.dslreports.com/forum/Re-JQuery-remote-page-code-load-27685111</link>
<description><![CDATA[JAAulde posted : JavaScript, and therefore AJAX and jQuery, are limited to communication with the domain on which they're executed. This is a security precaution and cannot be overridden.<br><br>The only exception is JSONP, which requires cooperation on the part of the remote server.<br><small>--<br><A HREF="https://www.yakabod.com/">The Yakabox</a> | <A HREF="http://www.jaaulde.com">My Development Sandbox</a> | <A HREF="http://www.linkedin.com/in/JimAuldridge">LinkedIn Profile</a></small>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-JQuery-remote-page-code-load-27685111</guid>
<pubDate>Thu, 01 Nov 2012 20:49:50 EDT</pubDate>
</item>

<item>
<title>JQuery - remote page code load</title>
<link>http://www.dslreports.com/forum/JQuery-remote-page-code-load-27685093</link>
<description><![CDATA[dlsauers posted : In order to complete a task, it appears that my only solution is to use jQuery... <br><br>I am trying to load web site (php/html) into a jQuery variable<br><br>I looked at several examples..which state that doing the below is possible for a remote site... but I have no joy..<br><br><pre class="brush: text"> &#012;&lt;html&gt;&#012;&lt;head&gt;&#012;&lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"&gt;&lt;/script&gt;&#012;&lt;/head&gt;&#012;&lt;body&gt;&#012;&lt;script type = "text/javascript"&gt;&#012;$.get("http://www.somedomain.invalid", function(data){&#012;alert("Data Loaded: " + data);&#012;});&#012;&lt;/script&gt;&#012;&lt;/body&gt;&#012;&lt;/html&gt;&#012; &#012;</pre><!--end code block--><br>The above does NOT work if the site is REMOTE to my server<br><br>The above WILL WORK if the site is local ie:<br><br><pre class="brush: text">$.get("http://www.mydomain.invalid", function(data){&#012;alert("Data Loaded: " + data);&#012; &#012;OR&#012; &#012;$.get("index.php", function(data){&#012;alert("Data Loaded: " + data);&#012; &#012; &#012;</pre><!--end code block--><br>php with remote access of data via fopen etc. is fine<br><br>Can jQuery not do this?? ? Several sites located via search, use the example above to do exactly what I am after to take the variable (data) and do what I need and then redisplay the web page in a new window.<br><br>I am after the source code of the page in the variable then to do my processing on parts and then redisplay it in a new window.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/JQuery-remote-page-code-load-27685093</guid>
<pubDate>Thu, 01 Nov 2012 20:44:41 EDT</pubDate>
</item>

</channel>
</rss>
