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:
  #1  
Old September 13th, 2005, 12:35 PM
cfsri cfsri is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 3 cfsri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 31 sec
Reputation Power: 0
Question Create form on Fly

Hi,
I need help in figuring out which route is the best route.

Please let me know what is the best way to display in coldfusion for onclick in radio buttons. Currently I am using layers and <cfoutput>. But its frustuating as I have mulitple checks and also database checks with different messages.

Thanks ,

Reply With Quote
  #2  
Old September 13th, 2005, 01:44 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,742 kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 20 h 59 m 14 sec
Reputation Power: 62
I'm not sure what you mean. onClick is a Javascript event, meaning it only matters within the browser (client side). CF only applies on the server side. They are two separate things.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old September 13th, 2005, 04:27 PM
cfsri cfsri is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 3 cfsri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 31 sec
Reputation Power: 0
Quote:
Originally Posted by kiteless
I'm not sure what you mean. onClick is a Javascript event, meaning it only matters within the browser (client side). CF only applies on the server side. They are two separate things.


I am using Javascript for the onclick. But what I am not sure is- Is Layers the best option to use if you have different messages or forms to display -- to what the user clicks?

For eg. If the user clicks yes then I display a form with a textbox and check for a studentID. If the student ID exists then it goes to a action page otherwise another layer is displayed with another form.

Need some help!!!

Reply With Quote
  #4  
Old September 13th, 2005, 04:46 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,742 kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level)kiteless User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 20 h 59 m 14 sec
Reputation Power: 62
The problem is you are mixing client and server-side processing. You're saying you want to pop something up onClick. That's fine. But then you say "check for an ID"...that is something that must happen on the server. The only way to do this is to execute another HTTP request to let CF do something, either as a normal browser request or using the Javascript XMLHTTPRequest() method.

It seems to me that you understand how to have ColdFusion check for an existing record, that is just a simple query. The problem is the UI complexity necessary to do it in the way you describe.

The easiest way is the "standard" way, just forget the onclick stuff and have the user load new pages when they click links or submit forms. Triggering server-side processing from Javascript without doing a full page reload is going to be much more complicated.

Reply With Quote
  #5  
Old September 13th, 2005, 05:06 PM
cfsri cfsri is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 3 cfsri User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 50 m 31 sec
Reputation Power: 0
Thanks, I'll try using ur suggestion

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Create form on Fly


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 5 hosted by Hostway
Stay green...Green IT