Results 1 to 3 of 3

Thread: Linking to pages within the Dynamic AJAX script

  1. #1
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Linking to pages within the Dynamic AJAX script

    1) Script Title:
    Dynamic AJAX Content

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem:
    I really don't have any problems just more of a question.

    Situation: The layout of my site a static navigation menu and static styling graphics and a dynamic content area. I use this script to dynamically load the text articles and other features of the site into a content area when someone clicks on a navigation link. It does this task well.

    Problem: With the above setup I am unable to deep link within the site. Occasionally we publish newsletters where we want to point people to pages within the site. We can't do this though because the page the see has no navigation or styling. Is there a way to use this script and link to pages within the site. To give an example when you look at the demo page on dynamic drive is there a way to make a link that will direct you to the Ferrari page instead of the "choose a page to load" text?

  2. #2
    Join Date
    Apr 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The website is at http://www.thelearningnetwork.tv/ if anyone is interested in looking at the code.
    Last edited by thetestingsite; 04-17-2007 at 02:45 AM.

  3. #3
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Sorry for the delayed response, but in the containerdiv you could simply make a link that has this:

    Code:
    <a href="javascript: ajaxpage('page.html','container');">Click here for the ajax page</a>
    change page.html (or the part in red above) to your page, and the part in blue (container) to the div id that you want the ajax page to load into (in this case, the same div that the above link is in).

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

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
  •