template button mouseover

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

template button mouseover

#1

Postby HarryDeBoer » Tue Jan 21, 2014 5:29 pm

Hi

I added a new button property set to a presentation template. What I want is a mouseover effect so I coded in the HTML element properties Jquery tab

$(this).css("background-color","yellow");

It's not working however. Am I forgetting something/doing something wrong?
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Jan 22, 2014 8:56 am

Harry,

This works fine for me, with a jQuery mouseover event. Make sure you have the jQuery library attached. If it still doesn't work, start a debugger in your browser - I use Firebug in Firefox - and look for Javascript errors.

Regards
Jon
0 x

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

#3

Postby HarryDeBoer » Thu Jan 23, 2014 7:03 am

Jon,

I created a testproject for this and forgot to attach the jQuery lib. It's now working fine.
0 x
Kind regards,

Harry

Dave
Ebase Staff
Posts: 89
Joined: Mon Sep 10, 2007 11:48 am

#4

Postby Dave » Thu Jan 23, 2014 9:33 am

Hi Harry,

Might be worth adding the jQuery library to your default Presentation Template - doesn't get forgotten that way when you knock up test forms.

Dave
0 x

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

#5

Postby HarryDeBoer » Sun Jan 26, 2014 3:09 pm

Thanks Dave; good tip!
0 x
Kind regards,

Harry


Who is online

Users browsing this forum: No registered users and 3 guests