Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

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

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!!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

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

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.

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

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

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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

Asif
Posts: 0
Joined: Tue Aug 13, 2013 12:56 pm

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

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

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

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

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.

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

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

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.

Return to “Issues”