The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Programming Languages
> Perl Programming
|
Whether PERL supports Frames
Discuss Whether PERL supports Frames in the Perl Programming forum on Dev Shed. Whether PERL supports Frames Perl Programming forum discussing coding in Perl, utilizing Perl modules, and other Perl-related topics. Perl, the Practical Extraction and Reporting Language, is the choice for many for parsing textual information.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

August 28th, 2000, 02:45 AM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Chennai,TamilNadu,India
Posts: 33
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
Hi All
Can anyone tell me how to embed Frames in PERL Script.
I've used the following lines in my PERL script.
print "<frameset rows='100%' cols='145,*', frameborder=0 border=0 framespacing=0>";
print "<frame name='myframemenu' src='1.html'
scrolling='auto' marginheight=1 noresize>";
print "<frame name='myframemain' src='xyz.pl'
marginheight=1 marginwidth=10>";
print "</frameset>";
It works exactly in HTML, but not when embedded in PERL.
TA
Raghu.
|

August 28th, 2000, 03:36 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
>>It works exactly in HTML, but not when embedded in PERL
You need to add this line ->
print "Content-type: text/htmlnn";
Check this out -> http://www.devshed.com/Talk/Forums/Forum6/HTML/000354.html
If you need to find out more about frame in Perl, click the search link on this page, type "frame" as "Search Word", then enter my username at "Search by User Name".
|

August 29th, 2000, 04:36 AM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Chennai,TamilNadu,India
Posts: 33
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
Hi freebsd
As per your suggestion, I've used
print "Content-type: text/htmlnn";
at the top of my script as
print "Content-type: text/htmlnn";
print "<frameset rows='100%' cols='145,*', frameborder=0 border=0 framespacing=0>";
print "<frame name='myframemenu' src='1.html'
scrolling='auto' marginheight=1 noresize>";
print "<frame name='myframemain' src='xyz.pl'
marginheight=1 marginwidth=10>";
print "</frameset>";
But I'm not getting the result what i've expected. I'm getting the
Content-type: text/html
printed on the page.
Can you recommend me more how to do it.
TA
Raghu.
|

August 29th, 2000, 06:22 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
>>But I'm not getting the result what i've expected
How about running xyz.pl alone?
What your script supposed to do?
What do you expect it to do?
What is the name of your script?
>>print "<frame name='myframemain' src='xyz.pl'
Make sure you don't named your script xyz.pl as specified above, otherwise you are executing your script twice.
If you checked out -> http://www.devshed.com/Talk/Forums/Forum6/HTML/000354.html , then copy my script example and named it xyz.pl, then run it and see.
(Note: You don't need any STATIC pages prepared prior to running xyz.pl)
>>I'm getting the Content-type: text/html
On which frame page?
|

September 2nd, 2000, 07:55 AM
|
|
Contributing User
|
|
Join Date: Aug 2000
Location: Chennai,TamilNadu,India
Posts: 33
Time spent in forums: < 1 sec
Reputation Power: 13
|
|
|
Thanx freebsd. Frames work fine in PERL now. Now i stuck up in another problem. I've posted my problem in the forum as new topic.
Plz read that topic and post the reply.
If possible can you come into chat or give your email id to clear some doubts regarding this.
TA
Raghu.
|

September 2nd, 2000, 02:37 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
>>If possible can you come into chat or give your email id to clear some doubts regarding this.
Sorry I can't.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|