Another possible cause is the direction of the slashes in this
statement:
print "var url
= '';";
Just a
thought.
-----Original Message-----
From: Peter Eisengrein
Sent: Tuesday, September 19, 2006 5:35 PM
To: 'Dhivya Arasappan/O/VCU'; perl-unix-users@listserv.ActiveState.com
Subject: RE: [Perl-unix-users] embedding _javascript_ in cgi perlNot 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-----Hi,
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
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