BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to open new browser window & populate with data from ISA

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
Doug Munday
Guest





PostPosted: Wed Feb 04, 2004 10:13 pm    Post subject: How to open new browser window & populate with data from ISA Reply with 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
EggMan
Guest





PostPosted: Wed Feb 04, 2004 11:02 pm    Post subject: Re: How to open new browser window & populate with data from Reply with quote



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





PostPosted: Thu Feb 05, 2004 10:29 pm    Post subject: Re: How to open new browser window & populate with data from Reply with 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

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





PostPosted: Thu Feb 05, 2004 11:14 pm    Post subject: Re: How to open new browser window & populate with data from Reply with quote

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





PostPosted: Fri Feb 06, 2004 3:20 am    Post subject: Re: How to open new browser window & populate with data from Reply with quote

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





PostPosted: Fri Feb 06, 2004 3:52 pm    Post subject: Re: How to open new browser window & populate with data from Reply with quote

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





PostPosted: Mon Feb 09, 2004 2:26 pm    Post subject: Re: How to open new browser window & populate with data from Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.