david_stev
12-02-2003, 11:54 AM
I have a nav system that sits in a frame.
Yes I do knkow how bad frames are but this is what I have to work with.
This is set out as below
_________________
| nav |
|________________|
| |
| |
| main |
| |
| |
----------------------------
What I need to do is get the name of the main page search the string for a folder name then use that to determine what section the user is in. The appropriate navigation item can then be highlighted using this information.
This should be easy enough using
Request.ServerVariables("SCRIPT_NAME")
This howevr returns the value of the nav frame and I want the value in the main frame.
Is there a way to do this in .asp whithout having to
put .asp code on every page loaded in to the main frame of the site to pull in the SCRIPT_NAME value.
Or would I be better
A. Use Javascript completely
B. Use Javascript but pass the value to .asp (not sure how I would do this)
Thank You for any help in advance.
Yes I do knkow how bad frames are but this is what I have to work with.
This is set out as below
_________________
| nav |
|________________|
| |
| |
| main |
| |
| |
----------------------------
What I need to do is get the name of the main page search the string for a folder name then use that to determine what section the user is in. The appropriate navigation item can then be highlighted using this information.
This should be easy enough using
Request.ServerVariables("SCRIPT_NAME")
This howevr returns the value of the nav frame and I want the value in the main frame.
Is there a way to do this in .asp whithout having to
put .asp code on every page loaded in to the main frame of the site to pull in the SCRIPT_NAME value.
Or would I be better
A. Use Javascript completely
B. Use Javascript but pass the value to .asp (not sure how I would do this)
Thank You for any help in advance.