homepage Welcome to WebmasterWorld Guest from 54.211.34.105
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Javascript base href problem
Stupid Fireworks drop down menu!
djriches



 
Msg#: 226 posted 12:07 pm on Nov 14, 2002 (gmt 0)

I have a site which uses a drop down menu in the header which was generated using Fireworks. It has worked well in the past but I have just installed a PHP script to send out a newsletter.

The problem is that when the confirmation etc. screens load after the newsletter signup, the URLs in the drop down menu become mydomain.com/mailscript/page.htm instead of mydomain.com/page.htm. The other static URLs on the page are fine as they are reset by the BASE tag.

I'm no javascript guru but I read something about using document.write to add the base tag to the javascript (but this hasn't worked either). I'm using SSI to serve the header and footer on the confirm page and they look fine to me.

Any suggestions on this would be appreciated.

PS This only happens in IE6, Netscape 6 is fine - menu never worked in Opera but that's a whole other post ;)

 

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 226 posted 3:10 pm on Nov 14, 2002 (gmt 0)

I've run into a similar situation with a perl script mailer in the past. If I remember correctly, we fixed the problem by using absolute paths for the scripted menu choices.

djriches



 
Msg#: 226 posted 11:20 pm on Nov 14, 2002 (gmt 0)

Thanks Tedster - I think that is what I will have to do. I'm close to ditching the whole drop-down menu thing as it doesn't work at all in Opera and gets a bit unwieldy when you want to create a new menu category. I think the best menus are the ones that go across the top of the page like Webmaster World - simple but intuitive.

Thanks again. ;)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved