English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to place a DropDownBox on Settings.html

but It will need to send the values to index.html

How can I do that?

Example:

Settings.html:



Index.html :
script type="text/javascript">
function chkcookie(){
var grabcookies = document.cookie;
var pos = grabcookies.indexOf("mthbkg=");
if (pos !=-1){
var st= pos+7;
var en= grabcookies.indexOf(";",st);
if (en ==-1) en = grabcookies.length;
var val = grabcookies.substring(st,en);
document.body.style.background="scroll url(mthImage/"+val+".jpg)";
}else{
document.body.style.background="scroll url(mthImage/1pm.jpg)";
document.cookie = "mthbkg=Apr"
}
}
function chg_bkg(x){
if (x=="1"){document.body.style.background="scroll url(mthImage/1am.jpg)";}
document.cookie = "mthbkg="+x;
}


(Not Full Script)

2007-05-20 21:49:21 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

I think you are missing the point of the index.htm page.
This is the default starting page and the format of the frames.

Say you have two frames windows. The dropdown menu is in on frame and the detail is in another.

So why not have the dropdown menu open a new page in the other frame. It can send data to that page using the get option of the action tag. The index.html page is not involved.
The new page now has to parse the data in the url to get the information it needs to correctly display the new window.

2007-05-20 22:25:58 · answer #1 · answered by AnalProgrammer 7 · 0 0

fedest.com, questions and answers