473,503 Members | 2,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Does window.open use GET or POST?

Hi all,

I am new in javascript. And I would like to find out whether
window.open use GET or POST.

I have tried to find the FAQ but no finding.

Please enlighten me or direct me to any FAQ.

Thanks in advance for any inputs or ideas,

Earth
Jul 23 '05 #1
5 16580
On 26 May 2004 03:37:43 -0700, Earth wrote:
I am new in javascript. And I would like to find out whether
window.open use GET or POST.


Try opening it with address bar..

If the bit after '?' is there,
GET, else POST..

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #2
Andrew Thompson wrote:
On 26 May 2004 03:37:43 -0700, Earth wrote:
I am new in javascript. And I would like to find out whether
window.open use GET or POST.


Try opening it with address bar..

If the bit after '?' is there,
GET, else POST..


Not necessarily:

<form name="myForm" method="POST"
action="mypage.cgi?something=somethingelse">

However, I'm unsure why it matters if window.open() performs a GET
or POST (for the record, it does a GET). You can put stuff on the
URL which would be accessible to client-side Javascript even with
a POST. So to move information from one window to another, it's:

window.open('thenewpage.html?theKey=' + theValue, 'window_name',
'<attributes>');

regardless of whether window.open() performed a GET or POST.

--
| Grant Wagner <gw*****@agricoreunited.com>

* Client-side Javascript and Netscape 4 DOM Reference available
at:
*
http://devedge.netscape.com/library/...ce/frames.html

* Internet Explorer DOM Reference available at:
*
http://msdn.microsoft.com/workshop/a...ence_entry.asp

* Netscape 6/7 DOM Reference available at:
* http://www.mozilla.org/docs/dom/domref/
* Tips for upgrading JavaScript for Netscape 7 / Mozilla
* http://www.mozilla.org/docs/web-deve...upgrade_2.html
Jul 23 '05 #3
On Wed, 26 May 2004 14:18:29 GMT, Grant Wagner wrote:
If the bit after '?' is there,
GET, else POST..


Not necessarily:

<form name="myForm" method="POST"
action="mypage.cgi?something=somethingelse">


...took me a few moments to get what
you meant there.

The arguments are being 'post'ed
on from the mypage.cgi?

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #4
Lee
Andrew Thompson said:

On Wed, 26 May 2004 14:18:29 GMT, Grant Wagner wrote:
If the bit after '?' is there,
GET, else POST..


Not necessarily:

<form name="myForm" method="POST"
action="mypage.cgi?something=somethingelse">


..took me a few moments to get what
you meant there.

The arguments are being 'post'ed
on from the mypage.cgi?


There is no GET request in that case.
Values of form elements are posted to mypage.cgi.
The script can *also* see the value of QUERY_STRING.

Jul 23 '05 #5
JRS: In article <69*************************@posting.google.com> , seen
in news:comp.lang.javascript, Earth <ec******@yahoo.com> posted at Wed,
26 May 2004 03:37:43 :

I have tried to find the FAQ but no finding.

Please enlighten me or direct me to any FAQ.

Since the newsgroup FAQ is posted here three times a week, frequently
cited in the group in signatures and otherwise, and IIRC well-known to
search engines, ISTM that you should, as a matter of urgent expediency,
endeavour to improve your search techniques.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #6

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

Similar topics

2
8293
by: Richard Bell | last post by:
Newbie question ... please respond to group I'm trying to open/navigate to a url. How can I tell when the page is fully loaded? Testing suggest that window.open returns before the page is...
0
1291
by: Margaret | last post by:
I've got my forms more or less working - the login form now has a regular button instead of an asp:button, so I can attach the Window.Open call for the next page in the client code. I moved the...
2
3485
by: Samir Pandey | last post by:
Hello, I am using the following javascript code to open a new window. Somehow, IE always opens a new window. It doesn't open target url in the window name given. All i want is, if there is a...
3
3197
by: Scott | last post by:
Here is the scenario. I need to launch a popup using window.open, but can't pass everything i need to pass on the querystring. So I thought I would set a cookie. Basically I do: ...
3
2397
by: TM360 | last post by:
I realize this may not be the right group to post this, but I'm not having much success elsewhere so I thought I'd give it a try... In our application we have a link that opens a new window...
13
22146
by: tochiromifune | last post by:
Hello The window.open method brings my window to the top only if it is new. If it's being reused, the window does not come to the foreground (with IE 6 it does). Is there a new way in...
13
3215
by: Seth Grimes | last post by:
Hello all, I want to open a window when a user leaves my site. I set up a function called by onUnload. To skip the window.open if the user hasn't left my site, I set a variable in my links and...
1
7047
by: Weyus | last post by:
All, I have a tricky set of AJAX functionality that involves a popup window and in order to keep the synchronization issues straight, I need to be sure that I understand something about the...
16
615
by: CreativeMind | last post by:
hi, i have a page calendar.aspx which returns selected date i.e window.returnValue=selectedDate; window.close(); it works fine with IE but not for Firefox. i tried...
0
7205
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,...
0
7093
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...
1
7008
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
7467
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...
0
4688
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...
0
3177
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...
0
1521
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 ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
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...

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.