aja101498
asked on
can't use target="right" in perl ?
This is part of a perl script. It is in a left frame but I want result in right frame. Can I do that . Thanks
print &PrintHeader;
print<<"print_tag";
<html>
<head>
<title> output</title>
</head>
<body>
<img src=../$jpgfile target="right">
</body>
</html>
print_tag
print &PrintHeader;
print<<"print_tag";
<html>
<head>
<title> output</title>
</head>
<body>
<img src=../$jpgfile target="right">
</body>
</html>
print_tag
ASKER
No, I don't want a link. Is there a way to display the image in the right frame witout clicking anything. Do the calcualtion and immediately place the image in th desired frame . thanx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, good. If I copy & past your code in a PERL script, it is going to work provided that there is a frame called right. Is that right ?
I have n't seen a javascript in a perl program before. I hope that is feasible. Thanks
I have n't seen a javascript in a perl program before. I hope that is feasible. Thanks
Yes - I tested my code before pasting it here.
My main html page looked like this:
<html>
<frameset cols="50%,50%">
<frame name="left" src="left.html">
<frame name="right" src="right.html">
</frameset>
the left.html file had something like this:
<html>
<form method=post action="test.pl">
<input type=submit value="submit">
</form>
</html>
And finally my test.pl file contained the code that I pasted in my answer.
Hope, this helps,
-Aleks.
My main html page looked like this:
<html>
<frameset cols="50%,50%">
<frame name="left" src="left.html">
<frame name="right" src="right.html">
</frameset>
the left.html file had something like this:
<html>
<form method=post action="test.pl">
<input type=submit value="submit">
</form>
</html>
And finally my test.pl file contained the code that I pasted in my answer.
Hope, this helps,
-Aleks.
ASKER
thanks
<img src=../$jpgfile target="right">
with
<A HREF='something.html' target='right'><img src=../$jpgfile></A>