jQuery Get remote site’s Response client-side

jQuery Get remote site’s Response client-side

Recuperare la Response di un sito remoto lato client con jQuery

E’ possibile ottenere lato-client il contenuto della Response di un sito remoto utilizzando la funzione $get di jQuery.

<html> <head> <script src="jquery-1.4.2.min.js" type="text/javascript"></script> <script language="javascript"> $.get("http://www.google.it", function(data){ document.write(data); }); </script> </head> <body> </body> </html>

Enjoy snippet!

1 COMMENT

comments user
tingon

firefox 3.6.8 su mac nn funge!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you human? Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.