Page 1 of 1

calling a rest service on expand event of collapsible block not working

Posted: Thu Mar 27, 2014 10:35 am
by Asif

Hi,
I am calling a service on the expand event of collapsible block. It was working fine previously but i think after the latest Appery update it stops working.
i have read in jquery mobile 1.4 update document that triggering of expand event is changed in this version.
Is this is the reason.

Pls help!!


calling a rest service on expand event of collapsible block not working

Posted: Thu Mar 27, 2014 11:05 am
by Maryna Brodina

Hello!

It's a known bug, sorry for inconvenience.
As a workaround try to add events manually (in a separate JS asset or on page Load). For instance pre$(document).off("collapsiblecollapse collapsibleexpand", '[name="mobilecollapsblock_7"]').on({
collapsiblecollapse: function() {
alert("collapse");
},
collapsibleexpand: function() {
alert("expand");
},
}, '[name="mobilecollapsblock_7"]');/pre


calling a rest service on expand event of collapsible block not working

Posted: Thu Mar 27, 2014 11:34 am
by Asif

i have my collapsible block inside a list and i have mapped rest service data to it. so there can be multiple collapsible blocks at page load. So instead of name can i use class name to trigger expand event.


calling a rest service on expand event of collapsible block not working

Posted: Thu Mar 27, 2014 1:12 pm
by Maryna Brodina

sure


calling a rest service on expand event of collapsible block not working

Posted: Thu Mar 27, 2014 1:31 pm
by Asif

can u send me a code snippet with the use of class name also


calling a rest service on expand event of collapsible block not working

Posted: Thu Mar 27, 2014 1:35 pm
by Maryna Brodina

Sorry, we don't have ready example and custom JS is outside the scope og our support.


calling a rest service on expand event of collapsible block not working

Posted: Thu Mar 27, 2014 8:14 pm
by Asif

No Problem Maryna,
Its working now thanks a lot..!!


calling a rest service on expand event of collapsible block not working

Posted: Sun Jul 06, 2014 10:56 pm
by bahar.wadia

I am having the same issue. Would you be so as kind to share with me code snippet to use with a class name. I have a CollapsibleSet and would also need to attach events to all the items in the set.

Thank you so much for your help.


calling a rest service on expand event of collapsible block not working

Posted: Sun Jul 06, 2014 10:56 pm
by bahar.wadia

I am having the same issue. Would you be so as kind to share with me the code snippet to use with a class name. I have a CollapsibleSet and would also need to attach events to all the items in the set.

Thank you so much for your help.