View Full Version : Dynamic Ajax Content - automatically load the first link

02-21-2008, 12:06 AM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.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!


02-21-2008, 12:50 AM
Pop something like this inside the 'contentarea' div and see how you go.

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

02-21-2008, 01:02 AM
dcstow: Cool....it works! Thanks!! =)

02-21-2008, 02:35 PM
you can put the link in our body.
With the body onload function.

Like this

<body onload="javascript:ajaxpage('haircare.html', 'contentarea')">

03-16-2008, 08:33 AM
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')