Ajax'ed website and the left side menu

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
Hi guys,

I have a site (internal) that's based on Ajax loading (no graceful degradation, so shut-it, loving projects I have to take over)

Anyway, so the left menu is giving me ****. Obviously it work as it's suppose to. You click it, and it loads the content in a div without reloading the page.

The issue now comes in that the (anal) client wants the "normal" behavior of, when a link is clicked and is active, that it shows it's active.

Now obviously I did style the little SOB so that it has hover/active etc styles. Problem is, the link never stays activated (so it appears the CSS active definitions never run, probably due tot he ajax)

So I've been breaking my head on how I could do this, *click* *ajax loads* *link stays active color until another is clicked*

Any ideas? I'm out
 

stormwalkerza

Senior Member
Joined
Jun 10, 2005
Messages
521
Why not make it that when you click the link, it replaces the code in the nav bar aswell where the clicked link is highlighted ... Sure you know what i mean.
 

Raithlin

Executive Member
Joined
Jan 4, 2005
Messages
5,049
Why not make it that when you click the link, it replaces the code in the nav bar aswell where the clicked link is highlighted ... Sure you know what i mean.
Doesn't that kinda defeat the purpose of using AJAX in the first place?

AciD, you got some code to share so we get some idea of what's happening below? Perhaps how the AJAX call works, or what you're doing to set the link active?
 

stormwalkerza

Senior Member
Joined
Jun 10, 2005
Messages
521
Yes, it defeats the purpose, but as the person hes doing it is being anal about the state of the link...

Its an option ..
 
Top