By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,187 Members | 1,041 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,187 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.