Results 1 to 5 of 5

Thread: Dynamic Ajax Content - automatically load the first link

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

    Default Dynamic Ajax Content - automatically load the first link

    1) Script Title: Dynamic Ajax Content

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

    3) Describe problem:

    Site url: http://www.suzukibeautysalon.com/services.html

    Hi there,

    Is there any way to automatically load the content (haircare.html) of the first link (Hair Care & Styling) without clicking the link, so that content area is not empty when visitors first enter this page?

    Any suggestions would be much appreciated!

    Thanks,
    Judy

  2. #2
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Pop something like this inside the 'contentarea' div and see how you go.

    Code:
    <script type="text/javascript">
    javascript:ajaxpage('haircare.html', 'contentarea')
    </script>

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

    Default

    dcstow: Cool....it works! Thanks!! =)

  4. #4
    Join Date
    Jan 2008
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Body onload

    you can put the link in our body.
    With the body onload function.

    Like this
    Code:
    <body onload="javascript:ajaxpage('haircare.html', 'contentarea')">
    Last edited by Possemaster; 02-21-2008 at 02:36 PM. Reason: extra quote removed

  5. #5
    Join Date
    Feb 2008
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi guys,

    I have tried both ways, but neither one of them works for me...what am I doing wrong?

    this is what i have:

    <div id="rightcolumn"><script type="text/javascript">
    javascript:ajaxpage('about-content.html', 'rightcolumn')
    </script></div>

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
  •