Hi - being totally ignorant to ASP, I’m having problems with what I’m sure should be a simple task, which I’ll try to describe as best as I can. Apologies in advance for a lengthy post; also, I’m bracing myself just in case I’m asking really obvious questions, or posting in the wrong place…
I have a flash-based homepage with 5 buttons that links to a frameset divided into a flash-based header nav and html body content.
The idea is for the flash header nav to change colors dynamically based on which page you linked to from the homepage. For instance, if you clicked on “bio”, the header nav on the inside page should be orange; if you clicked on “contact” it should be green, etc.
I’m currently attempting to write the name of the section that was clicked from the homepage to an asp file on the server, then load the section name from that asp file when the header nav opens, and set the color based on that variable. It’s just not working - it seems like the value that’s being sent to the asp file isn’t being written correctly or something.
Here’s how I’m sending the variable via my actionscript:
var headerScript = “http://derricklbriggs.com/staging/sectionHeader.asp”;
function sendCurrentHeader( section, page ) {
theHeader = new LoadVars();
theHeader.sectionHeader = section;
theHeader.send(headerScript, null, "POST");
getURL(page+".htm");
}
Here’s a look at what I have in my asp file:
<%@language = “VBScript” %>
<% OPTION EXPLICIT %>
<%
Dim theHeader
theHeader = Request.Form(“sectionHeader”)
%>
<%
Response.Write “currentHeader=” &theHeader
%>
If I explicitly set “currentHeader=bio”, then the header sets itself to the header color. But that’s no good, because I want to be able to set that value dynamically.
I’m sure there’s a better (simpler?) approach - any ideas?
You can see what I’m working on here:
http://derricklbriggs.com/staging/