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

post form data to a modal dialog window with desired height and width

I want to post the form data (http://server/page1.asp) to a modal dialog
window (http://server/modaldialog.asp) with a desired height 200px by width
200px.

Here's my attempts and problems:

Attempt #1) In http://server/page1.asp, it has code <form
action="http://server/modaldialog.asp" method="post" target="_blank">

In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">

It can produce modal dialog window modaldialog.asp, but I want to set the
width and height of modaldialog.asp.

Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params,
"dialogHeight:200px; dialogWidth:200px;");

This is the effect I want. But this is not posting the form data to
modaldialog.asp.

Any workarounds to my problems??

Thanks!!


Jul 19 '05 #1
2 5794
Have you tried;

<form method="post"
action="javascript:window.showModalDialog('modaldi alog.asp', params,
'dialogHeight:200px; dialogWidth:200px;');">

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Matt" <ma*******@hotmail.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
I want to post the form data (http://server/page1.asp) to a modal dialog
window (http://server/modaldialog.asp) with a desired height 200px by width 200px.

Here's my attempts and problems:

Attempt #1) In http://server/page1.asp, it has code <form
action="http://server/modaldialog.asp" method="post" target="_blank">

In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the
width and height of modaldialog.asp.

Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params, "dialogHeight:200px; dialogWidth:200px;");

This is the effect I want. But this is not posting the form data to
modaldialog.asp.

Any workarounds to my problems??

Thanks!!


Jul 19 '05 #2
Steven:

I just tried your method. It pops up modal dialog. But the problem is it
cannot get the post data in modaldialog.asp.
For example: Request.Form("id"); cannot get data in modaldialog.asp

any ideas??

"Steven Burn" <pv*@noyb.com> wrote in message
news:Oh**************@TK2MSFTNGP12.phx.gbl...
Have you tried;

<form method="post"
action="javascript:window.showModalDialog('modaldi alog.asp', params,
'dialogHeight:200px; dialogWidth:200px;');">

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Matt" <ma*******@hotmail.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
I want to post the form data (http://server/page1.asp) to a modal dialog
window (http://server/modaldialog.asp) with a desired height 200px by

width
200px.

Here's my attempts and problems:

Attempt #1) In http://server/page1.asp, it has code <form
action="http://server/modaldialog.asp" method="post" target="_blank">

In http://server/modaldialog.asp, it has code <body onBlur =

"self.focus()">

It can produce modal dialog window modaldialog.asp, but I want to set the width and height of modaldialog.asp.

Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp",

params,
"dialogHeight:200px; dialogWidth:200px;");

This is the effect I want. But this is not posting the form data to
modaldialog.asp.

Any workarounds to my problems??

Thanks!!



Jul 19 '05 #3

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

Similar topics

6
by: Matt | last post by:
Is it possible to post form data and open an invisible window? For example, in page1.as <form action="page2.asp" method="POST" It will post the form data from page1.asp to the server, and...
2
by: Matt | last post by:
I reposted this question because I really want to accomplish this task. Please advise!! I want to post the form data (http://server/page1.asp) to a modal dialog window...
1
by: mehlin | last post by:
I am a novice with respect to ASP.NET, and I would appreciate any pointers on how to use VBA (from within EXCEL) to post form data to a .aspx. file on a website, and download an associated data...
2
by: Matt | last post by:
I want to know how to submit the form data to a modal dialog window? The following is page1.asp, and when the user clicks submit button, it will post the form data to page2.asp by opening a new...
2
by: John | last post by:
Hi all, I have a modal dialog window from which a user selects a few rows from a datagrid and then clicks on an image button. My question is two-fold: 1. How do I post data back to the same...
11
by: livin | last post by:
I need to post form data to an ASP page that looks like this on the page itself... <form method='POST'><input src=\icons\devices\coffee-on.gif type='image' align='absmiddle' width=16 height=16...
1
by: jjouett | last post by:
I'm trying to setup an ASPX web page such that an existing Java Client can post form data, and I'm running into a problem. The existing Java Client doesn't set any credentials, and when I try to...
0
by: esateesh | last post by:
HI, i have a .aspx page with a hyperlink button and from this page it is nagivating to a show modal dialog window i want to set that page as A4 size and when print is given i should get in one...
1
by: Techhead | last post by:
Does anybody have the syntax to post form data to a CSV file? On submit, my form page will post to another asp page that will actually handle the data being dumped to a CSV file. I just can't seem...
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.