| Subject: | pass query result as parameter to javascript |
|---|---|
| From: | "biene22" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Tue, 29 Jul 2008 12:43:20 +0000 (UTC) |
| Newsgroups: | macromedia.coldfusion.cfml_general_discussion |
Hello,
I'm a beginner with javascript, so (maybe) sorry for this question.
Is it possible to use a query result as parameter in a javascript function
for example like this?
<cfquery name="select_data">
select name from user_table
</cfquery>
<script language="javascript">
function(#select_data.name#)
{
...
}
</script>
Background is: I have to validate an input field with some values which are
saved in a database table.
This values can be dynamic , so I don't want to put this values into the
cfm-file.
Any ideas?
Claudia
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Easy <cftry> question, Adam Cameron |
|---|---|
| Next by Date: | Re: Form fields not being passed in IE 6, dmorand17 |
| Previous by Thread: | Detect image type, idesdema |
| Next by Thread: | Re: pass query result as parameter to javascript, Dan Bracuk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |