Link to home
Start Free TrialLog in
Avatar of parikaa
parikaaFlag for United States of America

asked on

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>
ASKER CERTIFIED SOLUTION
Avatar of Plucka
Plucka
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial