Thread: Guestbook

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    16
    Rep Power
    0
    Ok,

    On my website I have a guestbook (provided by @home), ..when someone posts a message, and clicks "Submit", it goes to "/cgi-bin/guestbook.pl". Which has a WHITE background, but the left and top frame on my site has a BLACK background! (it kinda looks stupid) But I can't edit the ".pl" page in anyway!!

    Is there a way to skip the "guestbook.pl" page all together!!??

    Please Reply!!
    Thank You.

    -Ron

    oh, and...When someone enters the url to their site (in the URL feild), the link opens in the same frame! Can I change that so it opens in a new window??

    [This message has been edited by Ron (edited April 02, 2000).]
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    Hello Ron,

    You can edit guestbook.pl very easily.
    just open your guestbook.pl in notpad .In that you may see the <body> html tag.
    just cut and paste the following insted of <body> tag.

    print "<body bgcolor="#000000" text="#FFFFFF">n";

    If you are facing some problem just tell me i'll change for you.


    For opening a URL in a new window you can use -target="_blank" inside the form tag.

    see this eg:,

    <form method="POST" target="_blank">

    <p><input type="text" name="T1" size="20"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
    </form>




  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    16
    Rep Power
    0
    Thanks for your help...
    ...but I'm not that much of a "beginner"

    The "guestbook.pl" page is @ http://members.home.net/cgi-bin/guestbook.pl So I can't edit it... (It's used by ALL @Home members webpages)
    ...I was thinking of creating my own guestbook,...but @home doesn't support custom cgi scripts.
    I don't know what 2 do.

    I tried that before (using target="_blank") but it doesn't work...
    Here's part of the script...

    <!--start of form-->
    <form action="/cgi-bin/guestbook.pl" method="POST">

    <td>URL:</td>
    <td colspan="2"><input type="text" size="50" name="url" value="http://"></td>

    If I put target="_blank" in after value="http://" it doesn't work...and if I put it in the form tag, it opens "guestbook.pl" in a new window when clicking "Submit"...

    .oO(???)
    -Ron
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    16
    Rep Power
    0
    Nevermind...I did it!!

    I made the "addguest.html" page into 2 frames, (1 hidden frame), and targeted the "guestbook.pl" page to the hidden frame...

    But I STILL don't know how to make the links on my guestbook page open in a new window. Is there a script that will open ALL links on a page in a new window, without having to put a "target" for each one.
    Or is there something I can add in the the "form", that will do the same? (b/c adding target="blank" doesn't work...

    -Ron

    [This message has been edited by Ron (edited April 05, 2000).]
  8. #5
  9. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    Hi,
    sorry,i couldn't see your posting past 2-3 days.


    write a small javascript function for opening the html page in a new window.

    function call_new(url){
    window.open(url,300,400);
    }

    then call the function in form submit...

    probably you may pass value of the formfield.

    <form onSubmit="call_new(document.form1.field1.value);">


    ------------------
    SR -
    <A HREF="http://shiju.dreamcenter.net" TARGET=_blank>shiju.dreamcenter.net
    </A>


    [This message has been edited by Shiju Rajan (edited April 07, 2000).]
  10. #6
  11. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    16
    Rep Power
    0
    I figured it out, Thanks.

    I just added <base target="_blank"> in the <head> tag.

    -Ron
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    81
    Rep Power
    15
    [QUOTE]Originally posted by Ron:
    [B]Nevermind...I did it!!

    I made the "addguest.html" page into 2 frames, (1 hidden frame), and targeted the "guestbook.pl" page to the hidden frame...
    *********************************************
    Ron

    I noticed in this post you mentioned a hidden frame. I have a need to popup a hidden window. How do you do that?

    Thanks

    Russ

IMN logo majestic logo threadwatch logo seochat tools logo