Refuring to
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_21377760.html---
had posted a question priveously about how to make a "panel" with javascript while in use (div statment, tab and panel). I have post all the source for download at
http://myweb.cableone.net/mrlaird/au_dev.zip. I would like to add the ability for a user to save a tab layout. Perferably in a cookie. Unfortunatly my ability with java script is extreamly limited so i am fourced to seek help. Now, I have already got the function created to read the cookie using asp. This is not in the dloaded file as of yet, i will see about getting it in there on monday, untill then it looks like this (sorry, using VBscript below, i hope you dont all shun me for it).
<%
dim tabCount = request.cookie("tabs")
if tabCount = "" then
response.cookie("tabs") = 6
response.cookie("lbl1") = "My first link"
response.cookie("lnk1") = "
http://link1.com"
response.cookie("lbl2") = "My Second Link"
response.cookie("lnk2") = "
http://link2.com"
response.cookie("lbl3") = "My Third Link"
response.cookie("lnk3") = "
http://link3.com"
response.cookie("lbl4") = "My Fourth Link"
response.cookie("lnk4") = "
http://link4.com"
response.cookie("lbl5") = "My Fifth Link"
response.cookie("lnk5") = "
http://link5.com"
response.cookie("lbl6") = "My Sixth Link"
response.cookie("lnk6") = "
http://link6.com"
end if
%>
<html>
<!--all of this stuff is in that download at
http://myweb.cableone.net/mrlaird/au_dev.zip-->
<!--Here i will load the cookie-->
<%
dim i, lnk, lbl
response.write("<script language=javascript>" & vbcrlf>
for i = 1 to tabCount
lnk = request.cookie("lnk" & i) 'read link for cookie
lbl = request.cookie("lbl" & i) 'read lable from cookie
response.write("createPane
l('" & lnk & "', '" & lbl & "');") 'write javascript request to create the panel (its in panel2.js)
next
%>
In body of the page there is a button with value of Save Page. i would like this to collect all the "tabs" currently open and the iframe src of there counterpart panel. Then right then all into a cookie that would be readable my the APS stuff above. thank you for your help. 200pts