Solved

Coldfusion - Cfdiv bind URL - onclick

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
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 make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …

785 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