473,725 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

pass the two textbox values in the new page

Hi: Can any one please tell me that how to i pass the two textbox
values in the new page. If i use the form action in the popup window
page then the new page is open in the same popup window as i need to
open the new page in the main page window with passing the two textbox
parameters into the new page. Program opens the new page but dont know
how to pass the two textboxes values into the new page name
deceasedToday.a sp Needs help in JavaScript

POPUP WINDOW PAGE FROM WHERE I AM TRYING TO PASS THE TWO TEXTBOXES
INTO NEW PAGE
<html lang="en">
<head>
<script type="text/javascript">
function upParent() {
// var url = document.getEle mentById('cpLis t').value;
var url = 'deceasedToday. asp'
window.opener.l ocation.href = url;
window.close();
}
</script>
<title>Pop Up Date</title>
</head>
<body>
<%
TodaysDate=Date
%>
<form name='Frm_Decea sedDate' method='Post'>
<table border='0' align='center'>
<tr><td>Enter Starting Date</td><td><input type='Text'
name='StartingD ate' value="<%=Today sDate%>"></td></tr>
<tr><td>Enter Ending Date</td><td><input type='Text' name='EndingDat e'
value="<%=Today sDate%>"></td></tr>
<tr><td><inpu t type='button' value='Continue ' name='selectAll '
onclick='upPare nt();'></td></tr>
</table>
</form>
</body>

</html>

MAIN WINDOW PAGE FROM WHERE THE POPUP OPEN. I AM TRYING TO PASS THE
TWO TEXBOXES BUT IN THE NEW PAGE NAME deceasedToday.a sp NOT IN THE
SAME PAGE
<html>
<head>

<body>
<h2><center>DEC EASED DATA SEARCH</center></h2>
<br><br>
<form name='deceaseds ocial' id='deceasedsoc ial' method='POST'
onsubmit="retur n selectAllOption s()">
<table border='0' align='center'>

<tr>
<td valign="bottom" >Enter Social Security Number</td></td><td><input
type='text' name='ssn' id='ssn'>&nbsp& nbsp<select id="lstSSN"
name="lstSSN"

multiple></select></td></tr>
<tr><td><inpu t type="button" value="Add" onclick="return
loadList();"></select>
<input type="button" value="Delete" onclick="return deleteIt();"></
select>
<input type="submit" value="Process"
onClick="this.f orm.action='Pro cessDeceased.as p'";>

</td></tr>
<tr><td><inpu t type="submit" value='Todays Deceased'
onclick='openPo pup();'>
</td></tr>

</table>
</form>
<script language="JavaS cript">
var childPopup = null;
var frm = document["deceasedsocial "];

function openPopup() {
if (childPopup != null) {
if (childPopup.clo sed == false)
childPopup.clos e()
}
childPopup =
window.open('De ceasedDate.asp' ,'child','width =400,height=200 ,top=100,left=1 00,location=no, menubar=no,resi zable=no,scroll bars=no,status= no,titlebar=no, toolbar=no,dire ctories=no,full screen=no');
return childPopup;
}

function changeLocation( pURL) {
childPopup.clos e();
document.locati on = pURL;
}

function loadList() {
intCount = frm.lstSSN.leng th;
frm.lstSSN.opti ons[intCount] = new
Option(frm.ssn. value,frm.ssn.v alue);

// Get textbox, clear it then focus onto it.
var textbox = document.getEle mentById('ssn') ;
textbox.text = "";
textbox.focus() ;
document.getEle mentById('ssn') .value=""
document.getEle mentById('ssn') .focus();
return true;
}

function deleteIt()
{
for (var i=(frm.lstSSN.o ptions.length-1); i>=0; i--)
{
var o=frm.lstSSN.op tions[i];
if (o.selected) {
frm.lstSSN.opti ons[i] = null;
document.getEle mentById('ssn') .focus();
// return true;
}
}
return true;
}

function selectAllOption s() {
var ref = document.getEle mentById('lstSS N');
for(i=0; i<ref.options.l ength; i++)
ref.options[i].selected = true;
return true;
}

</script>
</body>

Mar 27 '07 #1
1 9370
<co*********@gm ail.comwrote in message
news:11******** **************@ p15g2000hsd.goo glegroups.com.. .
Hi: Can any one please tell me that how to i pass the two textbox
values in the new page. If i use the form action in the popup window
page then the new page is open in the same popup window as i need to
open the new page in the main page window with passing the two textbox
parameters into the new page. Program opens the new page but dont know
how to pass the two textboxes values into the new page name
deceasedToday.a sp Needs help in JavaScript
<snip>

Assuming I understand you correctly:

"How do I POST a form to a new window?"
http://www.jibbering.com/faq/#FAQ4_37

-Lost
Mar 27 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2025
by: Murali Inguva | last post by:
Hi Guys, Couple Questions 1. Is there any way that i can pass client Side Objects to Server Side. 2. Can i validate the data of serverside text boxes / combo box in client side? If you know the answers please let me know. Thanks
4
4802
by: tom | last post by:
Hi Experts, I want to pass the selectedDate value from my calender form to another web form or a web user control. Could you please show me how to do this? Thanks in advance.
2
1387
by: Bob Lehmann | last post by:
I have a web form (Form1) that I would like to pass to a function, iterate through it, and retrieve the values of the input elements. I am able to retrieve the element IDs (function below), but keep hitting a wall trying to get the values. Public Function send(ByVal TheForm As System.Web.UI.HtmlControls.HtmlForm) Dim c As Control For Each c In TheForm.Controls
7
2235
by: Peter D.C. | last post by:
Hi I want to update data hold in several textbox controls on an asp.net form. But it seems like it is the old textbox values that is "re-updates" through a stored procedure who updates a SQL tabel. I know the SP works, because a smalldatetime-field in the database is changed. I've tried to disable viewstate on all textbox controls. Any ideas to solve this problem.
2
12360
by: macyp | last post by:
I have to pass values from one aspx page to another. The controls I have in the first page are: a textbox, 3 drop down lists, and 2 check boxes, and a submit button. It is a search page, and the users need not enter values in all the controls. they can leave the textbox blank, and select values from one drop down, or any other combinations. I am trying to pass values with the help of session variables. But I have multiple if else...
3
2218
by: Martin | last post by:
I have a calendar form that sends the inputted date back to a text box . Using the GET method, I would like to pass the date as a variable to another asp page. How do I do this? Thanks.
0
3007
by: colleen1980 | last post by:
Hi: There are two textboxs in my main form. One is bound and another is unbound. There is no entry in the unbound textbox as values come into automatically after entering some information in the subform. My question is how to i pass values from unbound textbox to bound textbox every time when the value change in unbound textbox i need to change the value in the bound textbox. When the form load there is already value in the bound textbox...
3
1819
by: Sharon | last post by:
hello all, I was successfull in passing one value from first webpage to second webpage, but not sure how to pass three textbox values from the first page to the second page. Below is the code i was using to pass a single value First WebPage: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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,...
0
9113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8097
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...
0
6011
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
4519
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
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.