473,416 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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.asp 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.getElementById('cpList').value;
var url = 'deceasedToday.asp'
window.opener.location.href = url;
window.close();
}
</script>
<title>Pop Up Date</title>
</head>
<body>
<%
TodaysDate=Date
%>
<form name='Frm_DeceasedDate' method='Post'>
<table border='0' align='center'>
<tr><td>Enter Starting Date</td><td><input type='Text'
name='StartingDate' value="<%=TodaysDate%>"></td></tr>
<tr><td>Enter Ending Date</td><td><input type='Text' name='EndingDate'
value="<%=TodaysDate%>"></td></tr>
<tr><td><input type='button' value='Continue' name='selectAll'
onclick='upParent();'></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.asp NOT IN THE
SAME PAGE
<html>
<head>

<body>
<h2><center>DECEASED DATA SEARCH</center></h2>
<br><br>
<form name='deceasedsocial' id='deceasedsocial' method='POST'
onsubmit="return selectAllOptions()">
<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><input type="button" value="Add" onclick="return
loadList();"></select>
<input type="button" value="Delete" onclick="return deleteIt();"></
select>
<input type="submit" value="Process"
onClick="this.form.action='ProcessDeceased.asp'";>

</td></tr>
<tr><td><input type="submit" value='Todays Deceased'
onclick='openPopup();'>
</td></tr>

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

function openPopup() {
if (childPopup != null) {
if (childPopup.closed == false)
childPopup.close()
}
childPopup =
window.open('DeceasedDate.asp','child','width=400, height=200,top=100,left=100,location=no,menubar=no ,resizable=no,scrollbars=no,status=no,titlebar=no, toolbar=no,directories=no,fullscreen=no');
return childPopup;
}

function changeLocation(pURL) {
childPopup.close();
document.location = pURL;
}

function loadList() {
intCount = frm.lstSSN.length;
frm.lstSSN.options[intCount] = new
Option(frm.ssn.value,frm.ssn.value);

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

function deleteIt()
{
for (var i=(frm.lstSSN.options.length-1); i>=0; i--)
{
var o=frm.lstSSN.options[i];
if (o.selected) {
frm.lstSSN.options[i] = null;
document.getElementById('ssn').focus();
// return true;
}
}
return true;
}

function selectAllOptions() {
var ref = document.getElementById('lstSSN');
for(i=0; i<ref.options.length; i++)
ref.options[i].selected = true;
return true;
}

</script>
</body>

Mar 27 '07 #1
1 9307
<co*********@gmail.comwrote in message
news:11**********************@p15g2000hsd.googlegr oups.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.asp 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
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...
4
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
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...
7
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...
2
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...
3
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
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...
3
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...

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.