Chung Nguyen
Posts: 0
Joined: Wed Jan 30, 2013 11:34 am

Call function javascript affer listitem binnding data from services

Hello

How i can call 1 function javascript after listitem binding data and show it?

Please help me!

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

Call function javascript affer listitem binnding data from services

Hello! You can use Success service event. Here is more information http://docs.tiggzi.com/documentation/...

Chung Nguyen
Posts: 0
Joined: Wed Jan 30, 2013 11:34 am

Call function javascript affer listitem binnding data from services

Hello

I did using it, but it not work

Because, I call jquery function

It not effect with element create after function jquery call

= I must call jquery function after element of list item binding and show on screen

How i can make it?

Please help me!

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

Call function javascript affer listitem binnding data from services

If I understand you correctly you need to add Click event on dinamically created List Item - you can use on() jquery method http://api.jquery.com/on/ (see Direct and delegated events section)

For example on success service use next JS code:

Tiggzi("mobilelistName").off(); /unset all event handlers from List with name 'mobilelistName'/
/*set delegated event handler */
Tiggzi("mobilelistName").on('click','a',function(){
alert(this.innerText);
})

Result - when you click on dynamically created List item - you'll see you'll get message with Item text

Return to “Issues”