ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

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 December 3rd, 2004, 09:37 PM
Alas's Avatar
Alas Alas is offline
Wickedwd.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: wickedwd.com
Posts: 186 Alas Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 17 h 22 m 55 sec
Reputation Power: 0
<CFSELECT> tag problem

ARGHHHHH!!!!

Im trying to get a popup error message to appear when a person leaves a dropdown box blank and submits a form. I accomplished this with <CFSELECT> by making a query of a table that is completely empty.

The problem is when i fill the table and leave one row blank so that itll be the first in the dropdown, when i choose that blank option in the dropdown and submit the form it goes right on ahead without throwing the popup error that it is blank.


My code:

First i create the mandatory query

<cfquery name="CFD" datasource="Alas">
SELECT Degree
FROM Education
</cfquery>

then inside of a <cfform> i put this

Code:
<cfselect name="Degree"
          query="CFD"
          display="Degree"
          Value="Degree"
          size="1"
          Required="Yes"
          Message="Hey enter your Degree">      
</cfselect>



Any ideas? im really grumpy, im getting a beer

i think my prob is how to properly fill the database, cause i can get the error popup when i leave the table completely empty, not sure though.


thx in advance

-Alas

Reply With Quote
  #2  
Old December 4th, 2004, 07:06 PM
Panther893's Avatar
Panther893 Panther893 is offline
MostarDesigns.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2004
Posts: 807 Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level)Panther893 User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 5 Days 18 h 38 sec
Reputation Power: 56
Send a message via MSN to Panther893
I think what you are looking for is a javascript to check that your form fields arent blank. Take a look around the net there are some really great ones out there.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > <CFSELECT> tag problem


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 2 hosted by Hostway