473,382 Members | 1,775 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,382 software developers and data experts.

JavaScript/ASP Problem

I have a JavaScript function that is opening a new ASP page in a
window with specific parameters. I want to pass information from the
first page to the second. I can easily simulate the "post" method in
ASP by adding the information to the URL/QueryString but I don't want
the information displayed in the URL. Is there any other way to pass
the information from a form to a new window via JavaScript?

Feb 11 '07 #1
2 1297
Re****@hotmail.com said the following on 2/11/2007 1:50 PM:
I have a JavaScript function that is opening a new ASP page in a
window with specific parameters. I want to pass information from the
first page to the second. I can easily simulate the "post" method in
ASP by adding the information to the URL/QueryString but I don't want
the information displayed in the URL. Is there any other way to pass
the information from a form to a new window via JavaScript?
Have the new window read the form values directly from the opener page.

In the child(popup) page:
var someVar =
window.opener.document.forms['formID'].elements['elementNAME'].value;

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 12 '07 #2
dd
On Feb 11, 7:50 pm, Rev...@hotmail.com wrote:
I have a JavaScript function that is opening a new ASP page in a
window with specific parameters. I want to pass information from the
first page to the second. I can easily simulate the "post" method in
ASP by adding the information to the URL/QueryString but I don't want
the information displayed in the URL. Is there any other way to pass
the information from a form to a new window via JavaScript?
In addition to the way Randy suggested, if the .asp
page you're requesting is in the same domain, then
you could also set a session cookie. All requests to
to a server automatically pass the cookies in that
domain in the request. To make the cookie a session
cookie, don't put an expiration date on it, like this:

document.cookie = "myparams=foo&bar;";

You could do both methods for redundancy.

Feb 12 '07 #3

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

Similar topics

13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
6
by: Alex Rast | last post by:
First of all, this is not a programming question. I'm a user, not programming in JavaScript. I'm not, however, a novice user or even a power user - I certainly know programming intimately as well...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.