SID-01905: Unexpected URL params from form
| Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
|
| Category: |
CategoryApplications |
Server OS: |
|
Last update: |
11 years ago |
We have some CSS magic that we are using to hide or show the left bar in our TWiki pages. (Yes, we could use
JavaScript; I'm not a JS expert; CSS is working; thanks).
It works.
My question is, why am I getting two extra URL params that I'm not (explicitly) sending? I've used HTML forms in other laces in FW and this is the first time I've seen unexpected URL params.
The code (
http://cfcl.com/twiki/bin/view/TWiki/WebTopBar
):
<table border="0" cellpadding="0" cellspacing="0" style="width:100%" summary="">
<tr><td valign="top"><form name="hideshow" action="%SCRIPTURLPATH{"view"}%/%INCLUDINGWEB%/%INCLUDINGTOPIC%" method="get">
<input type="image" src="%PUBURL%/%USERSWEB%/DocumentGraphics/%IF{ "$leftbar~'*Hide*'" then="showleftbar.png" else="hideleftbar.png" }%" title="%IF{ "$leftbar~'*Hide*'" then="Show Left Bar" else="Hide Left Bar" }%" name="leftbar" value="%IF{ "$leftbar~'*Hide*'" then="Show" else="Hide" }%" />
</form></td><td valign="middle"> <a href="%WEBLOGOURL%"><img src="%WEBLOGOIMG%" border="0" alt="%WEBLOGOALT%" style="border:none;" /></a></td>
<td align="right" valign="top" class="patternMetaMenu">
%IF{ "$leftbar~'*Hide*'" then="<link rel='stylesheet' type='text/css' href='%PUBURL%/Help/HideWebLeftBar/noleftbar.css'>" else="<link rel='stylesheet' type='text/css' href='%PUBURL%/Help/ShowWebLeftBar/showleftbar.css'>" }%
<noautolink>%INCLUDE{"%IF{"context can_login" then="%SYSTEMWEB%.WebTopBarLogin" else="<nop>"}%" warn="off"}%
</noautolink></td></tr></table>
The URL line that I see:
http://cfcl.com/twiki/...Web/Topic?leftbar.x=28&leftbar.y=8&leftbar=Hide
I don't understand why I'm getting
leftbar.x and
leftbar.y.
--
Vicki Brown - 2014-04-14
Discussion and Answer
The input type="image" sends x and y coordinates. This is HTML spec.
--
Peter Thoeny - 2014-04-15
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.