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!
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello
How i can call 1 function javascript after listitem binding data and show it?
Please help me!
Hello! You can use Success service event. Here is more information http://docs.tiggzi.com/documentation/...
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!
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