473,700 Members | 2,699 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="JavaS cript" type="text/JavaScript">
<!--
function MM_openMDialog( theURL,args,fea tures) { //v2.0
var returnedValue = window.showModa lDialog(theURL, args,features);
eval (returnedValue) ;
}
//-->
</script>

<form action="javascr ipt:;" method="get" name="frmdte"
class="thinBord erGrey" id="frmdte"
onsubmit="MM_op enMDialog('show sku.asp','','ce nter:yes;help:n o;resizable:no; scroll:yes;stat us:no;dialogWid th:
450px;dialogHei ght:300px')">
<table width="100%" border="0" cellpadding="6" cellspacing="0"
class="thinBord erGrey">
<tr>
<td><div align="center">
<input name="sku" type="text" id="sku" />
&nbsp; </div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFF F"><div align="center">
<p>
<input type="submit" name="Submit" value="Submit"/>
</p>
</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFF F"</td>
</tr>
</table>
</form>
The field "sku" will not pass to the next page, even if I add:

onsubmit="MM_op enMDialog('show sku.asp?sku=<%= Request.Form("s ku")%>'
Any suggestions?

Mar 16 '07 #1
1 1542
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="JavaS cript" type="text/JavaScript">
<!--
function MM_openMDialog( theURL,args,fea tures) { //v2.0
var returnedValue = window.showModa lDialog(theURL, args,features);
eval (returnedValue) ;
}
//-->
</script>

<form action="javascr ipt:;" method="get" name="frmdte"
class="thinBord erGrey" id="frmdte"
onsubmit="MM_op enMDialog('show sku.asp','','ce nter:yes;help:n o;resizable:no; scroll:yes;stat us:no;dialogWid th:
450px;dialogHei ght:300px')">
<table width="100%" border="0" cellpadding="6" cellspacing="0"
class="thinBord erGrey">
<tr>
<td><div align="center">
<input name="sku" type="text" id="sku" />
&nbsp; </div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFF F"><div align="center">
<p>
<input type="submit" name="Submit" value="Submit"/>
</p>
</div>
</td>
</tr>
<tr>
<td bgcolor="#FFFFF F"</td>
</tr>
</table>
</form>
The field "sku" will not pass to the next page, even if I add:

onsubmit="MM_op enMDialog('show sku.asp?sku=<%= Request.Form("s ku")%>'
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.a sp" 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

83
6488
by: Alexander Zatvornitskiy | last post by:
Hello All! I'am novice in python, and I find one very bad thing (from my point of view) in language. There is no keyword or syntax to declare variable, like 'var' in Pascal, or special syntax in C. It can cause very ugly errors,like this: epsilon=0 S=0 while epsilon<10: S=S+epsilon
11
3345
by: doltharz | last post by:
Please Help me i'm doing something i though was to be REALLY EASY but it drives me crazy The complete code is at the end of the email (i mean newsgroup article), i always use Option Explicit and Response.Expires=-1,
134
7871
by: James A. Donald | last post by:
I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that means that if I misspell a variable name, my program will mysteriously fail to work with no error message. If you don't declare variables, you can inadvertently re-use an variable used in an enclosing context when you don't intend to, or
9
2538
by: ruca | last post by:
How can I declare a global variable in my .js file, that I can preserve her value each time I need to call any function of .JS file in my ASP.NET application? Example: var aux=null; function myFunction1() { ...
3
1836
by: markaelkins | last post by:
Hi. I am trying to enter a variable in the treenodesrc of a treenode. I am basically trying to send an ID variable into sql to return different records. I've searched everywhere and cannot find the answer. I'd appreciate and help. Thanks. What I'm doing is creating a treeview with the structure as follows (this is the expanded view): - Item Status - Item Status Details
0
8643
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8968
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7805
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6558
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5900
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4401
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4654
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2389
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2025
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.