Jump to content

zozoa

Members
  • Posts

    3
  • Joined

  • Last visited

zozoa's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Hey, Thanks for that. So now I have an HTML page and a PHP page: Z.html <!DOCTYPE html><html><head><meta charset="UTF-8"><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><script type="text/javascript">$(document).ready(function(){ $("#Go").click(function(){ $("#div1").load("proxy.php #yw1"); });});</script></head><body><p>Please insert URL:</p><input id="url" type="text" size="100"><br><br><button type="button" id="Go">Go</button><div id="div1">Data will be displayed here</div></body></html> proxy.php <?php $url = 'http://www.transfermarkt.com/zlatan-ibrahimovic/detaillierteleistungsdaten/spieler/3455'; $htm = file_get_contents($url); echo $htm;?> I want to pass the text from <input id="url" ...> to $url on proxy.php. I've read it can be done by passing the control to proxy.php. Is it possible to do it but staying on Z.html?
  2. No code so far, this is the page target. I wrote the code that inject the data I want once I have the page data (I tested it by adding script to the required web page). Can you explain how do I do that? I'm quite newbie in web developing.
  3. Hello all, I'm trying to create a web page that user will insert a URL of external site's web page and then the user gets some data from the specific web page. I've read it can be done using jQuery, using the load function, but it doesn't work cross-domain. Here is how my page looks like: I will appreciate any help, thanks.
×
×
  • Create New...