View Full Version : Dynamic Ajax Content - CSS loading

06-22-2009, 01:40 PM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem:

I have a site I'm using the dynamic Ajax script for.
It's got the header at the top
the navigation right under that
and then the contentbox that the links change content for

I have multiple pages that load multiple css styles sheets.
I also have two background that I use on different pages, which are loaded with the <link href="css/global.css" rel="stylesheet" type="text/css" media="screen" /> at the top of each page, like normal.
But that didn't work. . . It kept the style sheet I have on the main page instead of loading the new one after I click a link.

SO I moved to load the css "loadobjs('css/global.css')"thing.

That worked for a little bit. . . But it's still buggy after visiting multiple pages.

What do I need to change in the ajax so it doesn't drag any other css with it when someone is visiting all of my pages?