Posted on 30th October 2009No Responses
How to AJAX with jQuery

If you are frequently using calls in your website or application, ’s built-in functions come in handy. Say you want to dynamically load the contents of a PHP file into a DIV:

<div id="content"></div>
<button onclick=".post('getContent.php', { contentId: '1' });">get content</button>

When you click the button, calls getContent.php and passes contentId via PUT to it and stuffs the response into the content DIV. Neat, isn’t it?

Share this on:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Add to favorites
  • email
  • MisterWong
  • MySpace
  • Reddit
  • RSS
  • Yahoo! Bookmarks

Related posts

Comments
Leave a Response
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img src="">