• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Ajax question - driving me mad!!

New Here ,
Mar 02, 2009 Mar 02, 2009

Copy link to clipboard

Copied

Hi

I am still trying to get my head around the whole Ajax "game" perhaps someone can help me. I have a page which shows lets say 10 rows in a table representing different analyses the user has saved. rather than simply click thru to the page "produc.cfm" I want to show each row as

<tr><td><a href="product.cfm" onmouseover="getproductdetails('#databaseid#');"">R#reportnumber# #provider# #reporttitle#</a></td></tr>

with the idea that in a div I show the main results in a side part of the page as the user scrolls down like a preview. I have a cfc which seems to be working correctly:

<cfcomponent>
<cffunction name="getreportstructure" access="remote" returnFormat="json"
output="false">
<cfargument name="databaseid" required="no" type="string" default="0">
<cfset var mystruct=structnew()>
<cfquery name="getd" datasource="timm-spiraldatabase" maxrows="1">
select * from report
where databaseid =#databaseid#
</cfquery>
<cfset mystruct.closingdate=getd.closingdate>
<cfset mystruct.strikedate=getd.strikedate>
<cfreturn mystruct>
</cffunction>
</cfcomponent>

so when the user hovers over the row I want to show the closingdate and strikedate in the div

have tried a 100 cominations over the last 3 hours without success - help!!

Thanks

Tim
TOPICS
Advanced techniques

Views

219

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 03, 2009 Mar 03, 2009

Copy link to clipboard

Copied

LATEST
This,
onmouseover="getproductdetails('#databaseid#');"">

is looking for a javascript function called getproductdetails. Do you have one?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation