472,142 Members | 1,315 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

Variable Help

I have a quick lookup page that opens in a small window and when the
form on that page is submitted the results page is open in a smaller
window as well. I have everything working except passing the variable
to the results page. Hopefully someone can help me here:

Code...

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openMDialog(theURL,args,features) { //v2.0
var returnedValue = window.showModalDialog(theURL,args,features);
eval (returnedValue);
}
//-->
</script>

<form action="javascript:;" method="get" name="frmdte"
class="thinBorderGrey" id="frmdte"
onsubmit="MM_openMDialog('showsku.asp','','center: yes;help:no;resizable:no;scroll:yes;status:no;dial ogWidth:
450px;dialogHeight:300px')">
<table width="100%" border="0" cellpadding="6" cellspacing="0"
class="thinBorderGrey">
<tr>
<td><div align="center">
<input name="sku" type="text" id="sku" />
&nbsp; </div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<p>
<input type="submit" name="Submit" value="Submit"/>
</p>
</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"</td>
</tr>
</table>
</form>
The field "sku" will not pass to the next page, even if I add:

onsubmit="MM_openMDialog('showsku.asp?sku=<%=Reque st.Form("sku")%>'
Any suggestions?

Mar 16 '07 #1
1 1498
Mangler wrote:
I have a quick lookup page that opens in a small window and when the
form on that page is submitted the results page is open in a smaller
window as well. I have everything working except passing the variable
to the results page. Hopefully someone can help me here:

Code...

<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openMDialog(theURL,args,features) { //v2.0
var returnedValue = window.showModalDialog(theURL,args,features);
eval (returnedValue);
}
//-->
</script>

<form action="javascript:;" method="get" name="frmdte"
class="thinBorderGrey" id="frmdte"
onsubmit="MM_openMDialog('showsku.asp','','center: yes;help:no;resizable:no;scroll:yes;status:no;dial ogWidth:
450px;dialogHeight:300px')">
<table width="100%" border="0" cellpadding="6" cellspacing="0"
class="thinBorderGrey">
<tr>
<td><div align="center">
<input name="sku" type="text" id="sku" />
&nbsp; </div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<p>
<input type="submit" name="Submit" value="Submit"/>
</p>
</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"</td>
</tr>
</table>
</form>
The field "sku" will not pass to the next page, even if I add:

onsubmit="MM_openMDialog('showsku.asp?sku=<%=Reque st.Form("sku")%>'
Any suggestions?
Well, I am not an expert on ASP, but I have put together a couple of pages.

What I use is:
<form action="xxxxx.asp" method="post">

Submit should then open "xxxxx.asp" and pass to it the variables contained
in the form.

These can then be retrieved in "xxxxx.asp" by <%=Request("sku")or strictly
speaking <%=Request.Form("sku")>
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
----------------------------------------

Mar 17 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

83 posts views Thread by Alexander Zatvornitskiy | last post: by
134 posts views Thread by James A. Donald | last post: by
9 posts views Thread by ruca | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.