Hi.
For some reason I'm really struggling to pass a unique identifier to a function declared in the Change event of dynamically added sliders. After (document).ready I am pulling in a JSON object and parsing it to create panalbars (as well as other controls) based on data in the object. That all works fine, but when I dynamically create the slider and set the function I want to trigger on the Change event, any variable I set is shared between all the sliders (eventhough the values were unique at the time I initiated each slider in code) and I can't figure out how to reference the sender from the event function to reference a unique id.
In other words, what I am trying to do is dynamically create sliders with ids A, B, C.... that have their change events pointing to the same function that can not only pick up the unique value change per panelbar (e.value) but also capture the slider's unique id.
Can someone provide guidance please? I've been working on this problem much longer than I care to admit.
Thanks,
Mike
EDIT: sorry, I posted this to the wrong forum. I don't know how to move or delete posts.
For some reason I'm really struggling to pass a unique identifier to a function declared in the Change event of dynamically added sliders. After (document).ready I am pulling in a JSON object and parsing it to create panalbars (as well as other controls) based on data in the object. That all works fine, but when I dynamically create the slider and set the function I want to trigger on the Change event, any variable I set is shared between all the sliders (eventhough the values were unique at the time I initiated each slider in code) and I can't figure out how to reference the sender from the event function to reference a unique id.
In other words, what I am trying to do is dynamically create sliders with ids A, B, C.... that have their change events pointing to the same function that can not only pick up the unique value change per panelbar (e.value) but also capture the slider's unique id.
Can someone provide guidance please? I've been working on this problem much longer than I care to admit.
Thanks,
Mike
EDIT: sorry, I posted this to the wrong forum. I don't know how to move or delete posts.