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

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 7th, 2000, 10:43 AM
nickg nickg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Reading, UK
Posts: 31 nickg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Help!! I urgently need (by EoD tomorrow) need to find out how to invoke pop up alert windows. I've never really used perl but am doing for a contract. I've managed to get the rest of the stuff I need working but I can't find out about alert windows anywhere. You know what I mean, those annoying little boxes that pop up and tell you when something has gone wrong.

Can anybody tell me how I would do the following:

I have a fill out form and I need a alert window to appear when the user hasn't entered a mandatory field. On pressing ok I need the form page to still be displayed with the already entered text.

Any help would be REALLY appreciated.

Thanks.

Nick Gushlow.
Email: nickg@dynamicweb.co.uk

Reply With Quote
  #2  
Old August 7th, 2000, 11:12 AM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 234 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 46 sec
Reputation Power: 9
Is the form HTML? If so, then just use javascript...here is an example of a function that will check if the field is empty or not:
function check_null(form) {
if(form.CompSearch.value < 1)
{alert('Enter a part to search for!');
document.Searcher.CompSearch.focus();
return false}
else
return true
}
Note: you might want to change form.CompSearch.value < 1

Reply With Quote
  #3  
Old August 7th, 2000, 11:23 AM
nickg nickg is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: Reading, UK
Posts: 31 nickg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Yeah the form is HTML, and the data collection is Perl. I hadn't thought of using Javascript, which I suppose was a bit narrow-minded of me, thanks.

Reply With Quote
  #4  
Old August 7th, 2000, 12:44 PM
JonLed JonLed is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2000
Location: Indiana
Posts: 614 JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level)JonLed User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 h 49 m 49 sec
Reputation Power: 9
Yes, especially since that can't be done in perl.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Alert Windows - How To


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


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





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