#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Chennai,TamilNadu,India
    Posts
    33
    Rep Power
    15
    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. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>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/F...ML/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".
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Chennai,TamilNadu,India
    Posts
    33
    Rep Power
    15
    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.
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>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/F...ML/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?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Chennai,TamilNadu,India
    Posts
    33
    Rep Power
    15
    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.
  10. #6
  11. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>If possible can you come into chat or give your email id to clear some doubts regarding this.

    Sorry I can't.

IMN logo majestic logo threadwatch logo seochat tools logo