Link to home
Start Free TrialLog in
Avatar of aja101498
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
Avatar of rajgn
rajgn

An IMG tag cannot have 'target' atribute unless it's a link. In your case it's not a link. Hence target will not work. If you want to make the image as a link, targetted to right, replace

<img src=../$jpgfile target="right">
      with
<A HREF='something.html' target='right'><img src=../$jpgfile></A>
Avatar of aja101498

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
Avatar of shchuka
shchuka

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
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.
thanks