Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 2nd, 2000, 03:31 PM
Ron Ron is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 16 Ron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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).]

Reply With Quote
  #2  
Old April 4th, 2000, 02:05 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
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>





Reply With Quote
  #3  
Old April 4th, 2000, 07:09 AM
Ron Ron is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 16 Ron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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

Reply With Quote
  #4  
Old April 4th, 2000, 04:15 PM
Ron Ron is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 16 Ron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation 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).]

Reply With Quote
  #5  
Old April 7th, 2000, 07:18 AM
Shiju Rajan's Avatar
Shiju Rajan Shiju Rajan is offline
.Net Developer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: London
Posts: 987 Shiju Rajan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 26 m 22 sec
Reputation Power: 9
Send a message via MSN to Shiju Rajan Send a message via Yahoo to Shiju Rajan
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).]

Reply With Quote
  #6  
Old April 7th, 2000, 06:01 PM
Ron Ron is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2000
Posts: 16 Ron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I figured it out, Thanks.

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

-Ron

Reply With Quote
  #7  
Old May 31st, 2000, 02:00 AM
rkmarcks rkmarcks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 81 rkmarcks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to rkmarcks
[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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Guestbook


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway