Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Coldfusion - Cfdiv bind URL - onclick

Posted on 2009-04-03
2
Medium Priority
?
2,472 Views
Last Modified: 2013-12-20
I have recently discovered the cfdiv bind url and have used it with some applications. In the code below i have a image that when mouseover I would would like to bind the
cfdiv which will place a form in the div.  It s but its buggy. it works onload insead of onmouseover of the image id=product. The value attribute is passed fine.


<div align="right"><img src="<cfoutput>#imagepath#</cfoutput>/go_button.gif" width="39" height="19" border="0" id ="product" value="creditcard"></div>	
<!--- i want this to bind when they mouseover the image id= product --->
 
<cfdiv bind="url:additionalinfoForm.cfm?product={product@onmouseover}" />
 
<!----What happens now is that it binds when loaded --->

Open in new window

0
Comment
Question by:LeadCo
2 Comments
 
LVL 27

Accepted Solution

by:
azadisaryev earned 2000 total points
ID: 24066422
try 'mouseover' instead of 'onmouseover' as the bind even:

<cfdiv bind="url:additionalinfoForm.cfm?product={product@mouseover}" />

to prevent binding firing off on pageload you can try adding bindonload="false" to your <cfdiv> tag

Azadi
0
 

Author Closing Comment

by:LeadCo
ID: 31566514
Thanks Once Again!
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

916 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