Results 1 to 4 of 4

Thread: Ajax dynamic content

  1. #1
    Join Date
    Jan 2007
    Posts
    58
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default Ajax dynamic content

    Hi,

    I'm trying to make my site more dynamic, its all php with connections to mssql to retrieve data, now, i would like to make it to won't refresh the whole page when i click a link or submit a form or whatever, i would like to only refresh a part of the page, lets say the content, the header, menu and footer won't change.

    I saw this: http://www.dhtmlgoodies.com/scripts/...c-content.html

    but doesn't seem to do what i want, whenever i submit a form on the content div, or press a link or whatever, it refreshes the whole page, i need smth that whatever i do on that content div, it will only affect that div, and not the rest of the page.

    BTW. Here's an example: http://www.darksideofmu.com/
    Check how only the content (middle part of the site) changes when moving thru the site and the rest of the site, header, menu, footer, etc, stays the same.

    Thank you.
    Last edited by nicksalad; 03-24-2009 at 01:34 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    I'd suggest looking into jQuery, the jQuery form plugin and the jQuery AJAX API.

    The form plugin will do almost all of the heavy lifting in the case of submitting forms.

  3. #3
    Join Date
    Jan 2007
    Posts
    58
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Medyman View Post
    I'd suggest looking into jQuery, the jQuery form plugin and the jQuery AJAX API.

    The form plugin will do almost all of the heavy lifting in the case of submitting forms.
    Thanks... but i still don't know how to do it.. The form part is ok, but that is only part of the problem, only the form would be "dynamic", whenever i do something else it would still refresh the whole site.

  4. #4
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    This might be helpful.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •