Solved

can't use target="right" in perl ?

Posted on 1998-10-14
6
173 Views
Last Modified: 2012-05-04
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
0
Comment
Question by:aja101498
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

by:rajgn
ID: 1205341
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>
0
 

Author Comment

by:aja101498
ID: 1205342
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
0
 
LVL 2

Accepted Solution

by:
shchuka earned 100 total points
ID: 1205343
Yes, you can do it with javascript.  You can do the following to achive your goal (the code assumes that you have a frame named "right"):

print &PrintHeader;
print<<"print_tag";
<html>
<head>
<script language="JavaScript">
<!--
top.right.location="../$jpgfile";
//-->
</script>
</head>
</html>
print_tag

0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:aja101498
ID: 1205344
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
0
 
LVL 2

Expert Comment

by:shchuka
ID: 1205345
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.
0
 

Author Comment

by:aja101498
ID: 1205346
thanks
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now