Skip navigation
Currently Being Moderated

CF Variable on rollover

Jul 2, 2012 12:31 PM

I have a CFdiv  that is binded to a query. I have a word that is has a rollover on it that queries the database.  How can I change a varialbe on rollover of the button? Has anyone done this?  This is what I am starting with below.

 

<a href="#" onMouseOver="#session.wordDef# = 'Cohesion'" onClick="document.getElementById('theDiv').style.display='block'" onMouseOut="document.getElementById('theDiv').style.display='none'">T EST</a>

<cfoutput>

 
Replies
  • Currently Being Moderated
    Jul 8, 2012 11:21 AM   in reply to TheScarecrow

    Hi there.

     

    Just in case...

    onmouseover is client-side while session.wordDef is server-side.

     

    If you are trying to change what happens onmouseover, then you'll need to find and change the value of the session variable 'wordDef.' You may want to check for it in application.cfc

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points