Jacob Lenn Posted May 19, 2013 Share Posted May 19, 2013 Hello guys, it's me again. I'm writing item system and i dunno how can i write 1 thing. I'm saving items by using sqlite. And here i my question, how can i move all items from server to client and put them to the scrollpane? I know about triggering but i don't have idea how to do this. And 1 more, can i set some data on object? Link to comment
Castillo Posted May 19, 2013 Share Posted May 19, 2013 You must use: triggerClientEvent then on the client side: addEvent addEventHandler It has an example on the wki. Link to comment
Jacob Lenn Posted May 19, 2013 Author Share Posted May 19, 2013 I mean dat i know how to trigger, but do i have to use only trigger in the getting items loop from sql or sth else? Link to comment
Castillo Posted May 19, 2013 Share Posted May 19, 2013 Just send the items table returned from the SQLite query and loop it client side. Link to comment
Jacob Lenn Posted May 19, 2013 Author Share Posted May 19, 2013 Okey thanks, and what about setting data to da object? Link to comment
Castillo Posted May 19, 2013 Share Posted May 19, 2013 You mean a object created by createObject? if so, then you can use element data, or a table. Link to comment
Jacob Lenn Posted May 19, 2013 Author Share Posted May 19, 2013 Thanks for all. If i have any problems i'll write about them here. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now