ssi in popup window, please help!!! 
Author Message
 ssi in popup window, please help!!!

I have a javascript, generated by my cgi, looks like this:
---[snip]---
$js_view = "
<script language=\"Javascript\">\n
function preview(post) {
   var args = post.options[post.selectedIndex].value.split(\" - \");
   var date = args[0];
   var id = args[1];

   win = window.open(\"$news_cgi?action=view&date=\" + date + \"&id=\" + id,
         \"previewWin\", \"location=no, status=no, toolbar=no, width=550, height=300\");
   win.focus();

Quote:
}

</script>";
------
(NOTE: $news_cgi contains the name of my cgi in my cgi-bin directory)
And the popup comes up which has the <!--#include virtual="/cgi-bin/test.cgi" --> in it but it doesnt replace it with the
output from from my ssi-called test.cgi, which does this:
---[Snip]---
print "<b>TEST</b>";
------

When I look at the source for the popup page I see that its writen <!--#include virtual="/cgi-bin/test.cgi" --> in there but
it didnt replace it. This works if I put the statement in a .shtml file. How can I use <!--#include
virtual="/cgi-bin/test.cgi" --> ssi calls in a popup window writen that gets writen by a cgi script (window pops up with its
url pointing to a script that outputs html with an ssi call).

I hope I'm not asking too much. Thanks sooo much for any help!!!



Fri, 28 Nov 2003 12:01:12 GMT  
 ssi in popup window, please help!!!

Quote:

> I have a javascript, generated by my cgi, looks like this:
> ---[snip]---
> $js_view = "
> <script language=\"Javascript\">\n
> function preview(post) {
>    var args = post.options[post.selectedIndex].value.split(\" - \");
>    var date = args[0];
>    var id = args[1];

>    win = window.open(\"$news_cgi?action=view&date=\" + date + \"&id=\" + id,
>          \"previewWin\", \"location=no, status=no, toolbar=no, width=550, height=300\");
>    win.focus();
> }
> </script>";
> ------
> (NOTE: $news_cgi contains the name of my cgi in my cgi-bin directory)
> And the popup comes up which has the <!--#include virtual="/cgi-bin/test.cgi" --> in it but it doesnt replace it with the
> output from from my ssi-called test.cgi, which does this:
> ---[Snip]---
> print "<b>TEST</b>";
> ------

> When I look at the source for the popup page I see that its writen <!--#include virtual="/cgi-bin/test.cgi" --> in there but
> it didnt replace it. This works if I put the statement in a .shtml file. How can I use <!--#include
> virtual="/cgi-bin/test.cgi" --> ssi calls in a popup window writen that gets writen by a cgi script (window pops up with its
> url pointing to a script that outputs html with an ssi call).

> I hope I'm not asking too much. Thanks sooo much for any help!!!

I would suggest posting this to a newsgroup that has something to do
with what you are doing, like:comp.infosystems.www.authoring.cgi

and check that you have the right number of --

dave



Fri, 28 Nov 2003 21:17:04 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help Please - Can't Locate Popup.pm

2. Help - popup window option

3. newbe help please sending arguments to a cgi script via ssi

4. SIMPLE: counter question, SSI, please help

5. popup windows...

6. Perl Batch Job without DOS window popup

7. Popup Window in Tk

8. Can perl make popup window like Javascript

9. CGI.pm on NT: assigning labels to popup via hash changes popup values

10. PERL/PWS DOS Window popup problem SOLVED !!!

11. PERL/PWS DOS window popup problem ...

12. pTk 8.4.24 patch - document Popup(), make dialogs use Popup()

 

 
Powered by phpBB® Forum Software