.load() method with external pages
Hello,
I'm trying to include a page with load() method, but it doesn't work.
The page I try to load is on a remote server
This is my code:
- <html>
- <head>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $("button").click(function(){
- $("div").load('http://www.miosito.it/jsprova/remoto.php');
- });
- });
- </script>
- </head>
- <body>
- <div><h2>Clicca per cambiare</h2></div>
- <button>Cambia contenuto</button>
- </body>
- </html>
I used jquery latest version, but it didn't work, so, searching, I found that some problems were solved using jquery 1.4.1.
Now, clicking on button, text "Clicca per cambiare" disappears, but nothing else happens.
With latest version of jquery nothing at all changes.
Can you help me?
Thanks!
(P.S.: sorry for my English, I know it isn't good...)