Forums

event (onclick) on Slider title

Luca91 07 May, 2015
Hi all,
I've a slider container in my form. When that slider is clicked, an event is fired and a div inside a custom code (that is placed inside the slider) is filled using ajax.
The problem is that in this custom code I've an input field, and everytime I click this input field the slider event is fired.
I don't want that.. I want that the slider event is fired only when I click the slider's title.

Is possible to create an onclick event that is fired ONLY on the Slider title ?

Many thanks
GreyHead 07 May, 2015
1 Likes
Hi Luca91,

Hard to tell what is happening when you post no details of your code :-(

I suggest that you can use a more specific selector to limit the click to the slider; or you could modify the code to check what is being clicked and do nothing if it is the input.

Bob
Luca91 07 May, 2015
Well there ins't much code to post sorry😟 it is basically JS function call event placed on Events in the desinger.
That JS function make an ajax request and fill the custom code inside the slider.

How can I specify to do nothing when the input field is clicked ? I tried to use an onclick on the field, but the slider event is still fired.

Many thanks Grey😉
GreyHead 07 May, 2015
1 Likes
Hi Luca91,

Sorry, it's pretty much impossible to say anything more from the information here :-(

Bob
Luca91 07 May, 2015
I've solved by editing the "Code" manually. I've lost the ability to use the designer, but well, it works
This topic is locked and no more replies can be posted.