Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Toggle a button

Hi All

I have a button which 'adds to favourites'. I have an eventListener which then adds the details to a database and i want change the title to 'remove from favourites' and background image of the button when click. instant feedback.

However, if they click again it would remove it from the database.

What is the most efficient way to do this? query the favorites database on each click? and show either button base in the query results?

v tired today and not getting anywhere fast.

thanks in advance


— asked July 14th 2010 by Mark Pierce
  • createbutton
  • interface
  • ui

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.