?
Solved

Coldfusion query result variable into innerHTML variable

Posted on 2006-06-07
1
Medium Priority
?
484 Views
Last Modified: 2013-12-24
How can I store my query result into an innerHTML variable?

<cfstoredproc procedure="PK.SP_GET_INFO" datasource="dsn">      
      <cfprocparam type="in" cfsqltype="cf_sql_varchar" value="#session.mySession#">            
      <cfprocresult name="resultSet">
</cfstoredproc>

<cfset variables.firstname =   resultSet.firstname>

txt_firstname.innerHTML = variables.firstname;

 
Firstname: <span id="txt_firstname"></span>
0
Comment
Question by:parikaa
1 Comment
 
LVL 18

Accepted Solution

by:
Plucka earned 2000 total points
ID: 16857677
parikaa,

You need to do it using javascript

<script language="javascript">
    txt_firstName.innerHTML = '#variables.firstname#';
</script>

Regards
Plucka
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question