I am stuck and this is the last thing i need to accomplish before i can live a normal life again.
Heres the skinny:
I have a frameset with 3 frames(you dont have to give me a lecture on why to not use frames, i just am).
Top Frame is used for a logo, nothing more.
Middle frame is where all the action happens (name: synch_frame)
Bottom Frame refreshes every 30 seconds to check for the state the middle frame is SUPPOSED to be in. We’ll just say on(1)/off(2) even though there are more. I built an administration site which controls the state of the application via ASP and an SQL DB.
What is supposed to happen is when the page reloads, it checks to see the updated state, if there is one, if the state of the main frame is different from newly gotten state in the bottom frame, it reloads the main frame, which will show the updated info.
<CODE>
var CompStateID=<%=Session(“EventState”) %>;
function reloadFrame() {
self.location.reload();
}
if (CompStateID != parent.frames[‘synch_frame’].CompStateID) {
parent.frames[‘synch_frame’].location.reload();
<% Session(“EventState”) = State %>
}
</CODE>
And just for completness…
<CODE>
<body topmargin=’0′ leftmargin=’0′ marginheight=’0′ marginwidth=’0′ onload=”setTimeout(‘reloadFrame()’,30000);”>
</CODE>
What am I doing wrong? I appreciate any kind of help. Thank you very much.
~Rich