|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
Anyone looking for a way to modernize legacy data or easily migrate to a more cost-effective database without sacrificing functionality will benefit from this seminar. View the Intro to Advantage Database Server now! |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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> |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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).] |
|
#5
|
||||
|
||||
|
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).] |
|
#6
|
|||
|
|||
|
I figured it out, Thanks.
I just added <base target="_blank"> in the <head> tag. -Ron |
|
#7
|
|||
|
|||
|
[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 |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Guestbook |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|