 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Doug Munday Guest
|
Posted: Wed Feb 04, 2004 10:13 pm Post subject: How to open new browser window & populate with data from ISA |
|
|
This has me stumped. It seems like it should be easy, and it probably is,
but my brain is not cooperating today. Here is what I need to do. When the
user fills in some information and clicks on a particular button on a form
page, have the 'post' submit to the ISAPI app as normal. But I want the
ISAPI app to open a NEW browser window (a popup) and fill this new window
with ISAPI generated data based on the previous form, rather than retuning
the new page to the same browser window.
I know how to cause a 'standard' popup to appear when a button is pressed
while waiting for the ISAPI to return a new main page, but the challange
here is to get the ISAPI to create the new popup window with data submitted
from the previous main window page.
Now that I think about this more, it may not be something that can be done
with webbroker, it may require client side jave script. Hmmm.
Thanks for any ideas out there.
Doug Munday
[email]nospam (AT) eims-inc (DOT) com[/email]
sub dougmunday for nospam
BTW, this is not for commercial advertising popups. It is for an Intranet
business application.
|
|
| Back to top |
|
 |
EggMan Guest
|
Posted: Wed Feb 04, 2004 11:02 pm Post subject: Re: How to open new browser window & populate with data from |
|
|
Try setting the target="otherwindowname" in the html form
-Bill
http://www.eggcentric.com/
"Doug Munday" <dmunday (AT) eims-inc (DOT) com> wrote
| Quote: | This has me stumped. It seems like it should be easy, and it probably is,
but my brain is not cooperating today. Here is what I need to do. When the
user fills in some information and clicks on a particular button on a form
page, have the 'post' submit to the ISAPI app as normal. But I want the
ISAPI app to open a NEW browser window (a popup) and fill this new window
with ISAPI generated data based on the previous form, rather than retuning
the new page to the same browser window.
I know how to cause a 'standard' popup to appear when a button is pressed
while waiting for the ISAPI to return a new main page, but the challange
here is to get the ISAPI to create the new popup window with data submitted
from the previous main window page.
Now that I think about this more, it may not be something that can be done
with webbroker, it may require client side jave script. Hmmm.
Thanks for any ideas out there.
Doug Munday
[email]nospam (AT) eims-inc (DOT) com[/email]
sub dougmunday for nospam
BTW, this is not for commercial advertising popups. It is for an Intranet
business application.
|
|
|
| Back to top |
|
 |
Doug Munday Guest
|
Posted: Thu Feb 05, 2004 10:29 pm Post subject: Re: How to open new browser window & populate with data from |
|
|
Bill,
Thanks for your reply. What you suggested with the target is one way, but I
guess I was trying to dictate the target from within the Delphi app. I
didn't fully explain the situation. I have one form, with two submit
buttons on it. I use logic in the Delphi app to detect which button is
pressed. If the 'Total' button is pressed, I want to compute some totals
based on the data that was entered in the form, and displayed the totals in
a new popup window. If the 'Post' button is pressed, the app will post the
data entered into another process and redisplay in the original window with
some other results. So what I was looking for was a way to redirect the
output from within the Delphi app, based on which button was clicked, using
the same form and data.
I realize that the total could be done with javascript on the client, but I
have all the logic already developed in Delphi and was hoping to do it in
Delphi.
Thanks!
Doug
"EggMan" <offtopic (AT) eggcentric (DOT) com> wrote
| Quote: | Try setting the target="otherwindowname" in the html form
-Bill
http://www.eggcentric.com/
"Doug Munday" <dmunday (AT) eims-inc (DOT) com> wrote in message
news:40216e42$2 (AT) newsgroups (DOT) borland.com...
This has me stumped. It seems like it should be easy, and it probably
is,
but my brain is not cooperating today. Here is what I need to do. When
the
user fills in some information and clicks on a particular button on a
form
page, have the 'post' submit to the ISAPI app as normal. But I want the
ISAPI app to open a NEW browser window (a popup) and fill this new
window
with ISAPI generated data based on the previous form, rather than
retuning
the new page to the same browser window.
I know how to cause a 'standard' popup to appear when a button is
pressed
while waiting for the ISAPI to return a new main page, but the challange
here is to get the ISAPI to create the new popup window with data
submitted
from the previous main window page.
Now that I think about this more, it may not be something that can be
done
with webbroker, it may require client side jave script. Hmmm.
Thanks for any ideas out there.
Doug Munday
[email]nospam (AT) eims-inc (DOT) com[/email]
sub dougmunday for nospam
BTW, this is not for commercial advertising popups. It is for an
Intranet
business application.
|
|
|
| Back to top |
|
 |
Perry Way Guest
|
Posted: Thu Feb 05, 2004 11:14 pm Post subject: Re: How to open new browser window & populate with data from |
|
|
This is a client side particular.... only.
"Doug Munday" <dmunday (AT) eims-inc (DOT) com> wrote
| Quote: | Bill,
Thanks for your reply. What you suggested with the target is one way, but
I
guess I was trying to dictate the target from within the Delphi app. I
didn't fully explain the situation. I have one form, with two submit
buttons on it. I use logic in the Delphi app to detect which button is
pressed. If the 'Total' button is pressed, I want to compute some totals
based on the data that was entered in the form, and displayed the totals
in
a new popup window. If the 'Post' button is pressed, the app will post
the
data entered into another process and redisplay in the original window
with
some other results. So what I was looking for was a way to redirect the
output from within the Delphi app, based on which button was clicked,
using
the same form and data.
I realize that the total could be done with javascript on the client, but
I
have all the logic already developed in Delphi and was hoping to do it in
Delphi.
Thanks!
Doug
"EggMan" <offtopic (AT) eggcentric (DOT) com> wrote in message
news:40217a00$1 (AT) newsgroups (DOT) borland.com...
Try setting the target="otherwindowname" in the html form
-Bill
http://www.eggcentric.com/
"Doug Munday" <dmunday (AT) eims-inc (DOT) com> wrote in message
news:40216e42$2 (AT) newsgroups (DOT) borland.com...
This has me stumped. It seems like it should be easy, and it probably
is,
but my brain is not cooperating today. Here is what I need to do.
When
the
user fills in some information and clicks on a particular button on a
form
page, have the 'post' submit to the ISAPI app as normal. But I want
the
ISAPI app to open a NEW browser window (a popup) and fill this new
window
with ISAPI generated data based on the previous form, rather than
retuning
the new page to the same browser window.
I know how to cause a 'standard' popup to appear when a button is
pressed
while waiting for the ISAPI to return a new main page, but the
challange
here is to get the ISAPI to create the new popup window with data
submitted
from the previous main window page.
Now that I think about this more, it may not be something that can be
done
with webbroker, it may require client side jave script. Hmmm.
Thanks for any ideas out there.
Doug Munday
[email]nospam (AT) eims-inc (DOT) com[/email]
sub dougmunday for nospam
BTW, this is not for commercial advertising popups. It is for an
Intranet
business application.
|
|
|
| Back to top |
|
 |
Dmeister Guest
|
Posted: Fri Feb 06, 2004 3:20 am Post subject: Re: How to open new browser window & populate with data from |
|
|
Doug,
You can achieve your goal by using client side javascript. Unfortunately, I
don't have any sample code I can provide legally.
"Doug Munday" <dmunday (AT) eims-inc (DOT) com> wrote
| Quote: | Bill,
Thanks for your reply. What you suggested with the target is one way, but
I
guess I was trying to dictate the target from within the Delphi app. I
didn't fully explain the situation. I have one form, with two submit
buttons on it. I use logic in the Delphi app to detect which button is
pressed. If the 'Total' button is pressed, I want to compute some totals
based on the data that was entered in the form, and displayed the totals
in
a new popup window. If the 'Post' button is pressed, the app will post
the
data entered into another process and redisplay in the original window
with
some other results. So what I was looking for was a way to redirect the
output from within the Delphi app, based on which button was clicked,
using
the same form and data.
I realize that the total could be done with javascript on the client, but
I
have all the logic already developed in Delphi and was hoping to do it in
Delphi.
Thanks!
Doug
"EggMan" <offtopic (AT) eggcentric (DOT) com> wrote in message
news:40217a00$1 (AT) newsgroups (DOT) borland.com...
Try setting the target="otherwindowname" in the html form
-Bill
http://www.eggcentric.com/
"Doug Munday" <dmunday (AT) eims-inc (DOT) com> wrote in message
news:40216e42$2 (AT) newsgroups (DOT) borland.com...
This has me stumped. It seems like it should be easy, and it probably
is,
but my brain is not cooperating today. Here is what I need to do.
When
the
user fills in some information and clicks on a particular button on a
form
page, have the 'post' submit to the ISAPI app as normal. But I want
the
ISAPI app to open a NEW browser window (a popup) and fill this new
window
with ISAPI generated data based on the previous form, rather than
retuning
the new page to the same browser window.
I know how to cause a 'standard' popup to appear when a button is
pressed
while waiting for the ISAPI to return a new main page, but the
challange
here is to get the ISAPI to create the new popup window with data
submitted
from the previous main window page.
Now that I think about this more, it may not be something that can be
done
with webbroker, it may require client side jave script. Hmmm.
Thanks for any ideas out there.
Doug Munday
[email]nospam (AT) eims-inc (DOT) com[/email]
sub dougmunday for nospam
BTW, this is not for commercial advertising popups. It is for an
Intranet
business application.
|
|
|
| Back to top |
|
 |
William Egge Guest
|
Posted: Fri Feb 06, 2004 3:52 pm Post subject: Re: How to open new browser window & populate with data from |
|
|
Hi Doug,
It is still not nessesary to use the backend to make the popup window.
Within the click event of the Total button you can use java script to set
the target of the form and then use javascript to submit the form after the
target is set. The other button would not use javascript and would not set
the target, thus the form submit button in that case would not create a new
window.
Does that help?
Btw - My assumption is that setting the target will create a new window, you
should check this - I would but I am too busy.
-Bill
|
|
| Back to top |
|
 |
Mike Mader Guest
|
Posted: Mon Feb 09, 2004 2:26 pm Post subject: Re: How to open new browser window & populate with data from |
|
|
"Doug Munday" <dmunday (AT) eims-inc (DOT) com> wrote
| Quote: | Bill,
Thanks for your reply. What you suggested with the target is one way, but
I
guess I was trying to dictate the target from within the Delphi app. I
didn't fully explain the situation. I have one form, with two submit
buttons on it. I use logic in the Delphi app to detect which button is
pressed. If the 'Total' button is pressed, I want to compute some totals
based on the data that was entered in the form, and displayed the totals
in
a new popup window. If the 'Post' button is pressed, the app will post
the
data entered into another process and redisplay in the original window
with
some other results. So what I was looking for was a way to redirect the
output from within the Delphi app, based on which button was clicked,
using
the same form and data.
I realize that the total could be done with javascript on the client, but
I
have all the logic already developed in Delphi and was hoping to do it in
Delphi.
Thanks!
Doug
|
This really should be done with JavaScript, your app will run more
efficiently. Here is some sample HTML w/javascript that will accomplish
what you are doing.
<form method="post">
<input type="button" name="button1" onclick="this.form.target='newwindow'"
value="Submit in new window">
<input type="button" name="button2" onclick="this.form.target=''"
value="Submit in this window">
</form>
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|