Not sure but if I had to guess it would be that the double quotes are interpolating the output. Of course, not sure why this wouldn't also happen in Linux. My recommendation is try using single quotes instead.
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Dhivya Arasappan/O/VCU
Sent: Tuesday, September 19, 2006 3:47 PM
To: perl-unix-users@listserv.ActiveState.com
Subject: [Perl-unix-users] embedding _javascript_ in cgi perl

Hi,

I've been using a perl script for a while now on  for a button which when clicked opens up another site (through a _javascript_ function embedded in the perl). Its been working fine, but recently I opened the site in windows and tried hitting the button. It didnt work. It doesnt open up the other site.

Any idea why it seems to work only in Linux and not in windows ?

The code snippet is as below:


print "<input type = button value = 'Input file format' >";

print "<script>";

print "function inputformat(){";
   
    #print "alert('going to see input format');";
    print "var url = '';";
    print "newwindow=window.open(url, 'input format','height=600, width=700');";
    print "if(window.focus){";
    print "newwindow.focus()";
    print "}";

print "}";

any help would be great.

thanks
dhivya


 


This message was scanned by ATX
3:47:02 PM ET - 9/19/2006
_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to