In order to complete a task, it appears that my only solution is to use jQuery...
I am trying to load web site (php/html) into a jQuery variable
I looked at several examples..which state that doing the below is possible for a remote site... but I have no joy..
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
</head>
<body>
<script type = "text/javascript">
$.get("http://www.somedomain.invalid", function(data){
alert("Data Loaded: " + data);
});
</script>
</body>
</html>
The above does NOT work if the site is REMOTE to my server
The above WILL WORK if the site is local ie:
$.get("http://www.mydomain.invalid", function(data){
alert("Data Loaded: " + data);
OR
$.get("index.php", function(data){
alert("Data Loaded: " + data);
php with remote access of data via fopen etc. is fine
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.
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.