473,326 Members | 2,111 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,326 software developers and data experts.

How to post the data to a new window and control the new window's property?

When we submit the form data to another page, we usually do the following:

<form action="display.asp" method="post"> will submit the form data and open
display.asp in the current browser

<form action="display.asp" method="post" target="_blank"> will submit the
form data
and open display.asp in a new browser
Now, what I want is to open display.asp in a new browser, but control the
window's size,
and disable the status bar, title bar, and address bar of a new browser.

If I do this, it can only open a html page, but not post the data to
display.asp.

window.open('display.asp', "newWin",
"scrollbars=0,menubar=0,toolbar=0,location=0,statu s=0");

any ideas? thanks!!


Jul 19 '05 #1
3 5828
Matt wrote:
When we submit the form data to another page, we usually do the
following:

<form action="display.asp" method="post"> will submit the form data
and open display.asp in the current browser

<form action="display.asp" method="post" target="_blank"> will submit
the form data
and open display.asp in a new browser
Now, what I want is to open display.asp in a new browser, but control
the window's size,
and disable the status bar, title bar, and address bar of a new
browser.

If I do this, it can only open a html page, but not post the data to
display.asp.

window.open('display.asp', "newWin",
"scrollbars=0,menubar=0,toolbar=0,location=0,statu s=0");

any ideas? thanks!!


Submit to a page that contains client-side code to open an new window.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
Submit to a page that contains client-side code to open an new window.


Bob,

Do you mean <form action="process.asp" method="post" target="_blank"> in the
current page,

process.asp, which is a page that contains client-side code to open an new
window.

Then it will have 3 windows open. And also how the data transfer from
process.asp to display.asp? It still has problem.

Please advise. Thanks!
Jul 19 '05 #3
Matt wrote:
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
Submit to a page that contains client-side code to open an new
window.


Bob,

Do you mean <form action="process.asp" method="post" target="_blank">
in the current page,

process.asp, which is a page that contains client-side code to open
an new window.

Then it will have 3 windows open. And also how the data transfer from
process.asp to display.asp? It still has problem.

Please advise. Thanks!

No. Submit to a page that contains client-side code that opens a new window
(and closes itself).

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #4

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

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
2
by: Rob Richardson | last post by:
Greetings! I just developed a little control I've wanted for ages. It links a textbox and a label into a single control. At first, I gave it a property named LabelText and another named...
2
by: KathyB | last post by:
Hi, In the pageload of my aspx file I have the following (in both not in postback and is postback)... btnList.Attributes.Add("onclick", "window.open('Scanned.aspx', 'Serial Numbers',...
2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
12
by: MadCrazyNewbie | last post by:
Hey Group, Sorry but i`ve been searching everywhere for this even went out and bought a ADO book and still carn`t find what im looking for:( I have the following code for my postion changed: ...
19
by: Simon Verona | last post by:
I'm not sure if I'm going down the correct route... I have a class which exposes a number of properties of an object (in this case the object represents a customer). Can I then use this...
1
by: Bob Altman | last post by:
How do I bind a value from My.Settings to a property on a control on a Windows form? I've created a setting called My.Settings.Value1 of type String. Now I want to create a "Settings" dialog...
7
by: Jason | last post by:
Hello I've got a very simple C# app, that has a datagrid, a text box, and a button which when clicked opens a second form... Form2 frm2 = new Form2(); frm2.Show(); When I place a datagrid,...
4
by: Bosconian | last post by:
I have created a form tool page that consists of several dropdowns which allows a user to drill down and select a desired document for viewing in an external window. I need to post the form data to...
9
by: =?Utf-8?B?VGVycnk=?= | last post by:
Think it is great the way that you can set up a datsource, value member, and display member for a combobox, and map a 'code' to a 'description' and back again by binding the combobox to a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.