Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CF Variable on rollover

Community Beginner ,
Jul 02, 2012 Jul 02, 2012

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'">TEST</a>

<cfoutput>

444
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 08, 2012 Jul 08, 2012
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources