|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 , |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
Quote:
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!!! |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
Thanks, I'll try using ur suggestion
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Create form on Fly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|