View Full Version : Dynamic Ajax Content: Nothing is loaded into my DIV

12-15-2006, 07:26 AM
Dynamic Ajax Content

This was just what I was looking for. I tested the ajaxcars.zip and it worked. I've then implemented the script exactly as described but so far I can't get it to load any content into my DIV.

The test page is here:


Clicking on the first 8 links should load content into the section below but nothing happens.

If anyone can help I would be grateful!


/ Michael Englyst | Bitboy

12-15-2006, 09:29 AM
put js file in your host????

you can see error of javascript with: fire fox >> tools >> java scripte consol

your error : ajaxpage is not define


<a href=javascript:ajaxpage('details/detail-egearterne.htm', 'detaljer'); loadobjs('css/iframestyles.css');>link </a>

change to :
<a href='javascript:ajaxpage('details/detail-egearterne.htm', 'detaljer'); ' onclick='loadobjs('css/iframestyles.css');'> Link </a>

12-15-2006, 09:32 AM
Well somehow it still won't load properly. The code I put it looks like this:

<a href="javascript:ajaxpage('details/detail-egearterne.htm', 'detaljer');'onclick='loadobjs('css/iframestyles.css');">Egearterne</a>

Still nothing. I checked the original code from the example and it looks allright.

12-23-2006, 03:36 AM
I'm having a similar problem with the script.

http://www.getstarstruck.us/nutshell/ <- is the site I am working on. It works PERFECTLY in Firefox, but it doesn't work in Internet Explorer. Now... The demo works in both, but using the same exact code my page will not work in Internet Explorer and I have no idea what I can do to fix it. I went through and it isn't loading behind anything, got rid of the onload command and it still acts the same when one of the links is clicked. The whole div just disappears.

Only the first two links work as of right now, haven't completed the others. But in Firefox they load just fine, but they will not run in Internet Explorer 7!

Can anyone help me figure this out?

12-23-2006, 06:12 AM
It works on my machine...

12-23-2006, 06:33 AM
In IE 7? It won't work on mine no matter what I do. The div disappears. It does it to my friend too.

EDIT: Since you said that, I went back and looked... all of a sudden it's working for us too. I wonder if it was just something with my hosting... Who knows, but it seems to have worked itself out.