Solved

Coldfusion - Cfdiv bind URL - onclick

Posted on 2009-04-03
2
2,451 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

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

Sometimes databases have MILLIONS of records and we need a way to quickly query that table to return the results me need. Sure you could use CFQUERY but it takes too long when there are millions of records. That is why SOLR was invented. Please …
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

624 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