I'm trying to do a simple test.
On a javascript element, I create the code
I think the problem is around here
On a javascript element, I create the code
function testFunc() {On a dropdown I go the the Events tab, then I select Function within the Actions options, then I write [testFunc]. This is not working. I also tried [testFunc()] without success. Many months ago, I've created a topic explaining a bug. Is this still happening?
alert('test');
}
I think the problem is around here
event_targets = jQuery.merge(event_targets, jQuery(ident));jQuery("[testFunc()]") returns an error and jQuery("[testFunc]") returns nothing (I can see that because event_targets remains empty).
Yes, and you can refer to the old topic. If I doesn't use brackets, it will try to select a input, like input[name=testFunc], what is wrong.
I'm sorry, you are absolutely right. I have a small different function and thought that the problem was with the component. A simple function like that indeed works.
But now I ask: how can I pass variables in the Events tab?
testFunc being that:
But now I ask: how can I pass variables in the Events tab?
testFunc being that:
function testFunc(variable) {I tried calling testFunc('hey') but I get Error: Syntax error, unrecognized expression: testFunc('hey')
alert(variable);
}
This topic is locked and no more replies can be posted.