If I understand you correctly.
you could try to use fusionscript for this (See www.fusionscript.com)
it allows you to call cf templates and run querys and return info without
haveing to refresh your page.
it uses similary notation to CF
You have a dropdown list and want to fill in a form fields based on the
selection would look
something like
Example:
<!---The client side page----------------->
<!---starts the fusionscript and enters needed libraries--------->
<cf_fusionscript action="code" cachetimer="0000">
<cf_fs_api api="api.cacheEngine.deleteExpired">
<cf_fusionscript action="libraries">
array.arrayLen
form.*
list.*
query.*
date.*
string.len
string.trim
</cf_fusionscript>
<!----FS function to call server side page and run query and populate your
form----->
<cf_fs_function name="yourfunction">
<cf_fs_activeServer action="call"
page="yourpage.cfm"
<!---passes value from select list-->
selectvar ="form.yourselectlist"
>
<!---the returned values are then set to your form
fields--->
<!--if you returned single values------->
form.field1 = returnval1;
form.field2 = returnval2;
<!--and so on--->
<!---if you returnd the query----->
form.field1 = query.returnedquery.field1;
form.field2 = query.returnedquery.field2;
</cf_fs_function>
</cf_fusionscript>
<body>
<form>
<yourselect>
<input field1>
<input field2>
</form>
</body>
<!----your server side page would look somethinglike this-------->
<!---you can run any CF code you want on this page-------->
<!---gets all attributes passed to the server page --------->
<cf_fs_activeServer action="getAttributes">
<!---run your query------>
<CFQUERY>
WHERE id = #activeserver.selectvar#
</CFQUERY>
<!---returns single values--------->
<cf_fs_activeServer action="return" name="returnval1"
value="#Query.field1#">
<cf_fs_activeServer action="return" name="returnval2"
value="#Query.field2#">
<!---Or you can pass back the complete query--->
<cf_fs_activeServer action="return" name="returnquery" value="#Query#"
type="query">
-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 12:09 PM
To: CF-Talk
Subject: RE: Javascript/CF Tag to fill fields
a bit more clarification, may return better answers.....
.tony
Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337
-----Original Message-----
From: Eric Hoffman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 2:46 PM
To: CF-Talk
Subject: Javascript/CF Tag to fill fields
We have a drop down, and would like it to fill in row with that
recordset's info. Is there a custom tag to do such before I switch into
the wooly world of javascript. (the first field is drop down, next 4
fields to be filled need to be text input fields)
Thanks for any quick pointers...not finding it at DevEx.
Regards,
Eric J Hoffman
DataStream Connexion
www.datastreamconnexion.com
Delivering Creative Data Solutions
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists