Results 1 to 2 of 2

Thread: Dynamic Page questions

  1. #1
    Join Date
    Mar 2010
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Dynamic Page questions

    Hi all,

    So i just learning JS and i have a couple questions on where and how i should get started.

    I have a site, on this site i have a small side menu. I have 7 other divs setup. Each of these divs holds content, text, images, links, etc for a specific item. Now i have done some php and the page loads semi-dynamicly, the page has to refresh every time a menu button is selected. What i want to do is learn how to use java-script so the page does not have to reload. I already have all the other html pages setup with the desired content, i just need to get javascript to get that info and change it on the page.

    Does that sound like something that can be done?

    Thanks,

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    The method to load external content without reloading the page is called Ajax. Lots of info should be available with a search for that and there are several scripts here for it also. However, remember to always to have a non-javascript backup so that you don't lose visitors who can't/don't see Ajax content.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •