|
Home > Archive > dBASE Web Applications > September 2005 > cgi
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Rick Miller 2005-09-08, 9:23 am |
| Hello,
Does anyone know if it is possible
to launch a new browser on a client
with a dBASE cgi executable ?
If so, any hints ?
Scenario is:
1) Client logs in with a static
webpage that calls a cgi.
2) cgi creates a webpage for client.
3) client selects a button on the page
created in 2 which calls a cgi
which creates a new webpage to be
displayed in a new browser window.
TIA,
Rick Miller
| |
| David Ball 2005-09-08, 8:23 pm |
| Hi Rick
> 1) Client logs in with a static
> webpage that calls a cgi.
> 2) cgi creates a webpage for client.
> 3) client selects a button on the page
> created in 2 which calls a cgi
> which creates a new webpage to be
> displayed in a new browser window.
If I understand correctly, yes, you can do that.
In the <form> code for the buttons on page 2, you will want to add
target="_blank"
which means 'open a new window when you generate the next page'. You can use
it in forms and also for regular HTML page links.
In your dBASE program, it would stream out something like this:
oCGI.fOut.puts('<form name="YourForm" action="/cgi-bin/ex2.exe"
method="POST" enctype="application/x-www-form-urlencoded" target="_blank">')
I have provided an example at:
http://www.ChelseaData.ca/tutorials/static1.php
The password field is not required; just there for looks.
Thank you
David Ball
www.ChelseaData.ca
| |
| Rick Miller 2005-09-09, 3:23 am |
| Hi David,
Got a chance to try this out and,
it does exactly what i was looking for, Great !!
"David Ball" <Thanks.But@NoSpam.4.me> wrote in
news:9cNg5yNtFHA.304@news-server:
> Hi Rick
>
> In your dBASE program, it would stream out something like this:
>
> oCGI.fOut.puts('<form name="YourForm" action="/cgi-bin/ex2.exe"
> method="POST" enctype="application/x-www-form-urlencoded"
> target="_blank">')
>
> I have provided an example at:
>
> http://www.ChelseaData.ca/tutorials/static1.php
>
> The password field is not required; just there for looks.
----
Well, sometimes You got a put a show on, ya know <g>.
This helps to move 1 of the current projects
closer towards an almost fully virtual website.
Thanks for the example and the help,
Rick Miller
|
|
|
|
|