|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
>>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". |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
>>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? |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
>>If possible can you come into chat or give your email id to clear some doubts regarding this.
Sorry I can't. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Whether PERL supports Frames |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|