Javascript for a navigational bar
Moderator: General Moderators
- jdhorton77
- Forum Commoner
- Posts: 56
- Joined: Tue Nov 07, 2006 3:29 pm
- Location: Charlotte, NC
Javascript for a navigational bar
I'm trying to come up with a navigation bar and I have a good idea for the logic, but I'm coming up with a kink in my plan. Here's my situation. I want to populate an array with anchor tags of the history object. I know that you can go back previous pages with history.go(-2) but I'm not sure how to check the url of the history without it loading the page. I'm trying to check the url of the history to reference a list of url's so I can write whether it's the home page, gallery, or what have you on the navigation bar. Anyone got any ideas?
- jdhorton77
- Forum Commoner
- Posts: 56
- Joined: Tue Nov 07, 2006 3:29 pm
- Location: Charlotte, NC
- jdhorton77
- Forum Commoner
- Posts: 56
- Joined: Tue Nov 07, 2006 3:29 pm
- Location: Charlotte, NC
Yeah, I actually just found a tutorial stating how to creat a "Breadcrumb Trail" using the directories to the current page. I guess I could do this, but the problem is that if a page goes from an http to https protocol the directories are two different locations. For instance, lets say a user logs in and is located at the user home page within the https directory. If the user wants to view the image gallery, within the http directory. Then move to customer check out, which is back in the https directory, then the navigation links will be all screwed up. Any comment on this perdicament?
Also, I have thought about placeing the majority of the pages within the https directory to fix this problem. What are the consequenses of this. Is there a great difference in transfer time between https and http? And what other problems do you see arising from this?
Also, I have thought about placeing the majority of the pages within the https directory to fix this problem. What are the consequenses of this. Is there a great difference in transfer time between https and http? And what other problems do you see arising from this?