Coldfusion query result variable into innerHTML variable

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>
LVL 5
parikaaAsked:
Who is Participating?
 
PluckaConnect With a Mentor Commented:
parikaa,

You need to do it using javascript

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

Regards
Plucka
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.