Sounds like the paths are being correctly interpreted. If you have a link like so:
HTML Code:
<a href="login.php">Login</a>
on a page in folder2, folder2 is here the browser should ordinarily look for it.
I'm not sure if this will work, but it is worth a shot. First off, you will need to specify the complete path to any pages, external css files, and external javascript files not to be loaded in the base path. With that in mind, try this - put a base href tag in the head of your 'top' page (just below the <title></title> tag, and if your page is organized correctly, after any meta tags which should immediately follow the title tag). I'm talking about on the page with the Ajax Content Script on it. From what you are saying, the base href tag should be like:
HTML Code:
<base href="http://www.domainname.com/folder1/>
Now, of course, any other hrefs and paths on that 'top' page that should not start with that href should have their complete paths spelled out. The only other alternative (short of moving your Ajax page to folder1) I can think of would be to make sure that all of the external pages have all of their links' complete paths spelled out on them.
Bookmarks