473,779 Members | 2,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.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 5807
Have you tried;

<form method="post"
action="javascr ipt:window.show ModalDialog('mo daldialog.asp', params,
'dialogHeight:2 00px; dialogWidth:200 px;');">

--

Regards

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

Keeping it FREE!
"Matt" <ma*******@hotm ail.com> wrote in message
news:eW******** ******@TK2MSFTN GP12.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.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
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("i d"); cannot get data in modaldialog.asp

any ideas??

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

<form method="post"
action="javascr ipt:window.show ModalDialog('mo daldialog.asp', params,
'dialogHeight:2 00px; dialogWidth:200 px;');">

--

Regards

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

Keeping it FREE!
"Matt" <ma*******@hotm ail.com> wrote in message
news:eW******** ******@TK2MSFTN GP12.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.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
3894
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
6521
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 (http://server/modaldialog.asp) with a desired height 200px by width 200px. Here's my attempts and problems:
1
3058
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...
2
3884
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
7089
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
4807
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
2278
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
1049
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.
1
4700
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 to find the correct ASP syntax for this.
0
9636
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
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
10306
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
10139
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
8961
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6727
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
5373
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...
2
3632
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2869
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.