473,692 Members | 2,141 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

post form data to a modal dialog window

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 (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.showModa lDialog("modald ialog.asp", params,
"dialogHeight:2 00px; dialogWidth:200 px;");

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 6515
Look at using window.resizeBy () in the onload method of your modal window -
and just post to it as per your first attempt below. Any other queries of
this type might be better asked in a client-side group.

Alan
"Matt" <ma*******@hotm ail.com> wrote in message
news:uJ******** ******@TK2MSFTN GP11.phx.gbl...
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 (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.showModa lDialog("modald ialog.asp", params, "dialogHeight:2 00px; dialogWidth:200 px;");

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
Hi,

As far as I remember, when using modal windows and the 'showModalDialo g' method, any info for the modal page/ASP must be passed either in the passed url or via the params parameter, don't think u can pass any submitted form content to it. You be better of submitting to a new window as mentioned and having client script to re-size it on_load.

Although (u didn't mention this, but) I'm not sure if you can get access to the '.opener' method this way, allowing the new/modal window to communicate with it's parent window to pass any info down/back on modal close etc! For this behaviour may need to use window.open method!

Stephen
..

"Matt" wrote:
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 (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.showModa lDialog("modald ialog.asp", params,
"dialogHeight:2 00px; dialogWidth:200 px;");

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
3889
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 open page2.asp. But I dont want to make page2.asp invisible. Any ideas?? Is it possible? Please advise. Thanks!!
2
5805
by: Matt | last post by:
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()">
1
3054
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 file. Essentially I am trying to emulate Internet Explorer functionality, wherein data is entered into a field on a page, a download button is clicked on, and a file saved by clicking on a button in a file download dialog box. For example, at...
1
2792
by: Matt | last post by:
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()">
2
3875
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 window. But I want modal dialog window, any ideas?? <form action="page2.asp" method="post" target="_blank"> <input type="text" name="username"> <input type="submit" name="submit"> </form>
2
7082
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 dialog window? 2. The dialog window in question was, in turn, created from a dialog window. I need to post data back to that one too (that which the user selected in the top-most dialog window). How do I send data back to this window?
11
4801
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 title='Off'><input type='hidden' value='Image' name='Action'><input type='hidden' value='hs.ExecX10ByName "Kitchen Espresso Machine", "Off", 100'></form> I've been trying this but I get a syntax error... params = urllib.urlencode({'hidden':...
1
2274
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 post to my page, the Java Client gets a 401 error. My own C# client works because I am setting the Credentials of the WebClient, but I have to support the existing Java Client as-is. What is the setup of my Web Page to allow a client to post form...
0
1046
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 page only....please help me out.
0
8538
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9083
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8961
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8801
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6459
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5819
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4324
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4557
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1957
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.