Hi Cycloneous Echevarria,
Thanks for your help. I tried your suggestion, but I still can't get my
page to work. (I don't know javascript!). Here is all the script in the
head.
I pasted your script in at the bottom.
<SCRIPT language="JavaS cript" TYPE="text/javascript">
<!--
var NSWindows;
var is = new Object();
is.agent = navigator.userA gent.toLowerCas e();
is.ie55 = (is.agent.index Of("msie 5.5") != -1);
is.ie6 = (is.agent.index Of("msie 6") != -1);
is.ns6x = (is.agent.index Of("netscape6" ) != -1);
is.moz = (is.agent.index Of("gecko")!= -1);
is.win = (is.agent.index Of("win") != -1);
function NSWindowOpen(pa th, winName, dimensions, scrollbars,
toolbar, properties, loc_left, loc_top) {
if (NSWindows == null) {
NSWindows = new Array();
}
var index = NSWindows.lengt h;
for (var i = 0; i < NSWindows.lengt h; i ++) {
if (NSWindows[i] == null) {
index = i;
break;
}
if (winName == null) {
if (NSWindows[i].closed) {
index = i;
break;
}
} else {
if (NSWindows[i].closed) {
index = i;
} else if (NSWindows[i].name == winName) {
NSWindows[i].close();
index = i;
break;
}
}
}
if (winName == null) {
winName = "nswin" + index;
}
if (dimensions == null) {
dimensions = "width=780,heig ht=540";
}
if (properties == null) {
properties = "resizable=yes" ;
if ((scrollbars == null) || (scrollbars == true)) {
properties += ",scrollbars=ye s";
}
if (toolbar == true) {
properties += ",toolbar=y es";
}
} else {
if (properties.ind exOf("resizable =") == -1) {
properties += ",resizable=yes ";
}
if ((properties.in dexOf("scrollba rs=") == -1) &&
((scrollbars == null) || (scrollbars == true))) {
properties += ",scrollbars=ye s";
}
if ((properties.in dexOf("toolbar= ") == -1) &&
(toolbar == true)) {
properties += ",toolbar=y es";
}
}
if (loc_left && loc_top) {
properties += ",top=" + loc_top + ",left=" + loc_left;
} else if (loc_left) {
var loc_x = Math.floor((scr een.availLeft || 0) + (loc_left / 100 *
screen.availWid th));
var loc_y = Math.floor((scr een.availTop || 0) + (loc_left / 100 *
screen.availHei ght));
properties += ",top=" + loc_y + ",left=" + loc_x;
}
var offsite = false;
if( (path.indexOf(' http') != -1 && path.indexOf('n etschools') == -1)
||
path.indexOf('o ffsite') != -1 ) {
offsite = true;
}
properties += "," + dimensions;
NSWindows[index] = window.open(pat h, winName, properties);
return false;
}
function NSWindowOpenNoF alse(path, winName, dimensions, scrollbars,
toolbar, properties, loc_left, loc_top) {
NSWindowOpen(pa th, winName, dimensions, scrollbars, toolbar,
properties, loc_left, loc_top);
}
function NS_openWindow(p age) {
NSWindowOpen(pa ge, 'NSWindow', null, null, null,
'menubar=yes');
}
function NS_swapImageSim ple( image, pos ) {
document.images[pos].src = image;
}
function MM_openBrWindow (theURL,winName ,features) { //
v2.0
if (objWindow && !objWindow.clos ed){
objWindow.close ();
}
objWindow = window.open(the URL,winName,fea tures);
objWindow.focus ();
}
function NSbutton_preloa dImages() { //v3.0
var d=document; if(d.images){ if(!d.NSbutton_ p)
d.NSbutton_p=ne w Array();
var
i,j=d.NSbutton_ p.length,a=NSbu tton_preloadIma ges.arguments; for(i=0;
i<a.length; i++)
if (a[i].indexOf("#")!= 0){ d.NSbutton_p[j]=new Image;
d.NSbutton_p[j++].src=a[i];}}
}
function doSubmit() {
****var i = document.regFor m.standardcode. selectedIndex;
****var url = document.regFor m.standardcode. options[i].value;
****
****document.re gForm.action = url;
****document.re gForm.submit();
****// second option
****// uncomment to activate
****
****// location.href = url;
****
}
//-->
</SCRIPT>
And here's what's in the body.
<TD CLASS="form-item-label"> </TD>
<TD> </TD>
<TD CLASS="form-item"><TABLE BORDER="0" CELLPADDING="0"
CELLSPACING="0" >
<TR>
<TD CLASS="form-item"> Standard</TD>
</TR>
<TR>
<TD>
<form name = "regForm"><sele ct name="standardc ode" size="10"
onChange="doSub mit();" tabindex="4">
****<option value="0" selected>-- Select a standard--</option>
<option value="../Teacher/MySchool/Reports/SampleReports/AL/AL
curr cov.htm">Alabam a</option>
Can anyone see my problem here?
When I select the state, the htm file will not load.
thanks!
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!