I've been wondering what js events are there applicable to Word type form-element?
I mean, i tried 'onclick', 'onfocus' to trigger some functionality on the form, but seems it doesn't work with Word/Label type, neither it does with say 'Display' or 'Calc' fields (perhaps because they not meant to take input).
So is there a way to make a WORD object clickable, to use it as some button for frontend manipulations (i needed something alike several times) ?
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
WORD object events available
Re: WORD object events available
Uzlander ,
If you have a Word Object called word_object you could place this on the Form's JavaScript before it loads...
OR
You could create a Object - Input::Button.
Flatten it out with CSS - so that it looks like just words.
And add an onclick event the same way as normal.
Steven
If you have a Word Object called word_object you could place this on the Form's JavaScript before it loads...
Code: Select all
$('#word_object').click(function() {
alert('Word object clicked!');
});
You could create a Object - Input::Button.
Flatten it out with CSS - so that it looks like just words.
And add an onclick event the same way as normal.
Code: Select all
background-color:transparent; border: none; color: black;background-color: transparent; border: none;color:black;outline: none;
Steven
You do not have the required permissions to view the files attached to this post.
A short post is a good post.
Buy Kev a Coffee
Buy Kev a Coffee