Note that there are some explanatory texts on larger screens.

plurals
  1. POGet html cross site, display it and get an element value
    primarykey
    data
    text
    <p>I need to get the complete output from an aspx site. When the user leaves I will save what's in some specific elements in cookies. The problem is that the aspx is on a domain I don't have access to. I want the output to behave as in an iframe so links need to be clickable but it won't leave my page.</p> <p>I think of either AJAX with PHP-proxy or an iframe that I can modify content in. Is this possible? If it is possible and it involves server-side code I would like to know if there are any free web hosts that support the full code( for example almost every free web host has safe_mode on for PHP).</p> <p>EDIT: I want to display this page : <a href="http://www.novasoftware.se/webviewer/%28S%28lv1isca2txx1bu45c3kvic45%29%29/design1.aspx?schoolid=27500&amp;code=82820" rel="nofollow">School scheme</a>. The URL doesn't to change, it just sends requests to the server (think via JavaScript). When the user leaves I will see what's in the select box id="TypeDropDownList" and what's in the select box id="ScheduleIDDropDownList".</p> <p>When the user returns to my page I will print those values to the page via URL like this <code>"http://www.novasoftware.se/webviewer/(S(lv1isca2txx1bu45c3kvic45))/design1.aspx?schoolid=27500&amp;code=82820&amp;type=" + type + "&amp;id=" + id + "</code></p> <p>I tried several php proxy scripts on 000webhost before I posted here. for example this :</p> <pre><code>&lt;?php ob_start(); function logf($message) { $fd = fopen('proxy.log', "a"); fwrite($fd, $message . "\n"); fclose($fd); } ?&gt; &lt;? $url = $_REQUEST['url']; logf($url); $curl_handle = curl_init($url); curl_setopt($curl_handle, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_USERAGENT, "Owen's AJAX Proxy"); $content = curl_exec($curl_handle); $content_type = curl_getinfo($curl_handle, CURLINFO_CONTENT_TYPE); curl_close($curl_handle); header("Content-Type: $content_type"); echo $content; ob_flush(); ?&gt; </code></pre> <p>But it returns Warning: curl_setopt(): supplied argument is not a valid cURL handle resource in /home/a5379897/public_html/ajax-proxy.php on line 16</p> <p>I tried to contact them about this because they say they have cURL enabled but they haven't responded yet.</p> <p>I think it would be possible to just display the two select boxes when the user first visit the page. When options is selected it will make an iframe show the right page by passing "http://www.novasoftware.se/webviewer/(S(lv1isca2txx1bu45c3kvic45))/design1.aspx?schoolid=27500&amp;code=82820&amp;type=" + type + "&amp;id=" + id + " to the src attribute. The problem with that is that I will need to retrieve the select boxes someway and I will have the same problem.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload