Solved

Coldfusion - Cfdiv bind URL - onclick

Posted on 2009-04-03
2
2,402 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 500 total points
Comment Utility
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
Comment Utility
Thanks Once Again!
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

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…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now