Results 1 to 5 of 5

Thread: Dynamic Ajax Content; open with default page

  1. #1
    Join Date
    Jul 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content; open with default page

    1) Script Title: Dynamic Ajax Content

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

    3) Describe problem: Is there a way that I can have a specific page load in the RightColumn when the whole page loads.

    Using the demo as an example: Instead of having "Choose a page to load." come up when you open the page; have a specific page like the Porsche page open by default?

  2. #2
    Join Date
    Aug 2006
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You could make anything the default home page. You don't need to have "Choose a page to load" as your home page. That's just a demo.

  3. #3
    Join Date
    Jul 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    can you help me with the code to have the first link on the menu open when the pageis loaded? I figured out how to change the text, but I can't seem to figure out how to put a webpage in there. Thanks.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    From the demo page:

    You can even load an external page without requiring the click of a link, by calling the function directly:

    Code:
    <script type="text/javascript">
    ajaxpage('test.htm', 'rightcolumn') //load "test.htm" into "rightcolumn" DIV
    </script>
    Change the above scriptlet's parameters to your desired page's location and loading area's id. Place it in the body section of your 'top' page, after the loading area's markup, ex:

    HTML Code:
    <div id="myarea"></div>
    <script type="text/javascript">
    ajaxpage('myinitial.htm', 'myarea')
    </script>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Fantastic!! That is exactly what I was trying to do. Thanks. You're awesome.

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
  •