AJAX with jQuery – using the load() method

You may also like...

  • You can actually work around the limitation that doesn’t let you use load() with content from another domain:
    1. you need a pure server side script that fetch the remote content that you want to load (e.g. with curl if you’re using PHP, see some examples here: http://davidwalsh.name/curl-download), say load_content.php
    2. use the load() method tho load your server side script

    • Hi Elia,
      Thank you for pointing this out.
      In one of the next post I will try to describe how to load some dynamic content from a Web Service (i.e: REST), and it is exactly where it becomes really interesting.
      Cheers:)

cornelymelania@mailxu.com bacurin@mailxu.com