Solved

Coldfusion - Cfdiv bind URL - onclick

Posted on 2009-04-03
2
2,408 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
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…

910 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

20 Experts available now in Live!

Get 1:1 Help Now