ovillasmil
New Member
Hi,
I wonder if you can help me and guide me to where the problem is.
I created a custom plugin based on the Slider demo.
Following are the files and folders:
*****
Folder: plugin / fabrik_element / tristate
PHP: class plgFabrik_ElementTristate
function elementJavascript --> return new fbTristate
in the HTML of the element, there is a onclick="changeValue()" call --> console error: changeValue is not defined
Min-JS, JS: class fbTristate
in function initialize, I'm executing a call to "alert("asasasa")" --> is not executed
created a function changeValue, executing "location.reload(true)"
*****
Can you let me know, why the alert is not executed when initialize? and why changeValue is not executed from onclick event in the element?
Thanks in advance
I wonder if you can help me and guide me to where the problem is.
I created a custom plugin based on the Slider demo.
Following are the files and folders:
*****
Folder: plugin / fabrik_element / tristate
PHP: class plgFabrik_ElementTristate
function elementJavascript --> return new fbTristate
in the HTML of the element, there is a onclick="changeValue()" call --> console error: changeValue is not defined
Min-JS, JS: class fbTristate
in function initialize, I'm executing a call to "alert("asasasa")" --> is not executed
created a function changeValue, executing "location.reload(true)"
*****
Can you let me know, why the alert is not executed when initialize? and why changeValue is not executed from onclick event in the element?
Thanks in advance