400 Bad Request Newbie error

P

pincopallo_it

I have a frameset like this :

<FRAMESET FRAMEBORDER ="no" scrolling ="no" COLS="30%,*">
<FRAME name ="frameA" scrolling ="no" SRC="NHXNWI017b.jsp">
<FRAMESET FRAMEBORDER ="no" scrolling ="no" ROWS="15%,85%">
<FRAME scrolling ="no" SRC="NHXNWI017a.jsp">
<FRAME name ="frameB" noresize="noresize" scrolling ="no" SRC="../
pathjsp/map_36.html#C3">

In NHXNWI017b.jsp there is a :

<table width="40%" class="color" border="0" cellPadding="3"
cellSpacing="1">
<tr>
<td nowrap><span class="obbligatorio">Forecast:</span></td>
<td nowrap colspan ="2"><select
OnChange="parent.getSelect(this.options[this.selectedIndex].value)"
name="fore">
<option value="12"selected >12
<option value="24">24
<option value="36">36
<option value="48">48
<option value="60">60
<option value="72">72
</select></td>

What I want is that changing the select on th the frame frameb i
change the html to be in frame frameB

im able to see the value with an alert but if i change the frameset in
this way i get 400 bad request !!!


<FRAMESET FRAMEBORDER ="no" scrolling ="no" COLS="30%,*">
<FRAME name ="framea" scrolling ="no" SRC="NHXNWI017b.jsp">
<FRAMESET FRAMEBORDER ="no" scrolling ="no" ROWS="15%,85%">
<FRAME scrolling ="no" SRC="NHXNWI017a.jsp">
<FRAME name ="frameb" noresize="noresize" scrolling ="no" SRC="../
icone/map_
<SCRIPT>
function getSelect(s) { alert(s) }
document.write(s)
</script>
..html#C3">
</FRAMESET>



Any idea ?
 
B

Bart Van der Donck

I have a frameset like this :

<FRAMESET FRAMEBORDER ="no" scrolling ="no" COLS="30%,*">
<FRAME name ="frameA" scrolling ="no" SRC="NHXNWI017b.jsp">
<FRAMESET FRAMEBORDER ="no" scrolling ="no" ROWS="15%,85%">
<FRAME scrolling ="no" SRC="NHXNWI017a.jsp">
<FRAME name ="frameB" noresize="noresize" scrolling ="no" SRC="../
pathjsp/map_36.html#C3">

In NHXNWI017b.jsp there is a :

<table width="40%" class="color" border="0" cellPadding="3"
cellSpacing="1">
<tr>
<td nowrap><span class="obbligatorio">Forecast:</span></td>
<td nowrap colspan ="2"><select
OnChange="parent.getSelect(this.options[this.selectedIndex].value)"
name="fore">
<option value="12"selected >12
<option value="24">24
<option value="36">36
<option value="48">48
<option value="60">60
<option value="72">72
</select></td>

What I want is that changing the select on th the frame frameb i
change the html to be in frame frameB

im able to see the value with an alert but if i change the frameset in
this way i get 400 bad request !!!

<FRAMESET FRAMEBORDER ="no" scrolling ="no" COLS="30%,*">
<FRAME name ="framea" scrolling ="no" SRC="NHXNWI017b.jsp">
<FRAMESET FRAMEBORDER ="no" scrolling ="no" ROWS="15%,85%">
<FRAME scrolling ="no" SRC="NHXNWI017a.jsp">
<FRAME name ="frameb" noresize="noresize" scrolling ="no" SRC="../
icone/map_
<SCRIPT>
function getSelect(s) { alert(s) }
document.write(s)
</script>
.html#C3">
</FRAMESET>

Any idea ?

I'm afraid your code design is highly unusual and error-prone, but
I'll refrain from that now.

Error 400 ('Bad Request') is in HTTP/1.1 defined as follows (RFC2616):
"The request could not be understood by the server due to malformed
syntax. The client SHOULD NOT repeat the request without
modifications."

The following setup should get you started:

-------------------------------------------------------
Page FRAMESET.html
-------------------------------------------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/frameset.dtd">
<HTML>
<TITLE>My frameset</TITLE>
<FRAMESET COLS="30%,*">
<FRAME NAME="frameA" SRC="A.htm">
<FRAMESET ROWS="15%, 85%">
<FRAME NAME="frameX" SRC="X.htm">
<FRAME NAME="frameB" SRC="B.htm">
</FRAMESET>
</FRAMESET>
</HTML>

-------------------------------------------------------
Page A.htm
-------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Page A.html</TITLE>
<SCRIPT TYPE="text/javascript">
var pathHead = '../ cone/map_';
var pathFoot = '.html#C3';
function changeLoc(newUrl) {
parent.frames['frameB'].location.href =
pathHead + newUrl + pathFoot;
}
</SCRIPT>
</HEAD>
<BODY>
<FORM ACTION="A.htm" METHOD="GET" ONSUBMIT="return false;">
<P>
<SELECT SIZE="1"
ONCHANGE="changeLoc(this.options[this.selectedIndex].value);">
<OPTION VALUE="1" SELECTED>1</OPTION>
<OPTION VALUE="2">2</OPTION>
<OPTION VALUE="8">8</OPTION>
</SELECT>
</P>
</FORM>
</BODY>
</HTML>


-------------------------------------------------------
Pages B.htm and X.htm
-------------------------------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Blanco page</TITLE>
</HEAD>
<BODY><P>&nbsp;</P></BODY>
</HTML>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top