|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I've defined the following CF form text box:
<Form> <input type="hidden" name="extext" onChange="javascript:buildmenuitem('#parm1#','#parm2#');"> </Form> The intent is that during a CFLoop Query= structure, the 'extext' value will be populated from the db recordset, firing the onChange event and passing dynamic parameter values to the jscript function. Any ideas why this doesn't work? |
|
#2
|
|||
|
|||
|
CFLOOP is processed on the server. Javascript isn't processed until it gets to the client, which is long after the loop has been processed.
__________________
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
|
|||
|
|||
|
so I'll rearrange the code...
Such that the onMouseOver will call the Javascript function passing the key of the caller and the js code will then have to query the db either internally or via a CF function.
|
|
#4
|
|||
|
|||
|
I not sure what you are saying. You can't use JS to call a CF function, unless you initiate a new http request to the server, and then all you're really doing is sending a url or form values back to CF...
I might be misreading you, but it seems like you are mixing up what Javascript and CF can do and how they can communicate with each other? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > CF 4: 'CFLoop Query' to programatically call a JScript function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|