Hi Sam,
I don't know about iphone specifically, but on android about 80% of all
the apps are task list apps. There's thousands of them. Given that
iphone has been around longer and has more apps available, I'd be
surprised if you couldn't find a good task list app that suits unless
there's some custom feature that you are designing around.
To answer your question though, your approach sounds fine. I'd use the
jquery ajax functions to update the state when you press a button -
these are well documented and pretty easy to use.
Harvey.
On 18/01/2011 5:57 p.m., Sudhakar wrote:
i want to create a simple iphone webapp as a to do list using html,
css and javascript
the way i want the webapp is i will list about 10 tasks and each task
will have an off and on image, the title will be on the left edge and
image on the right edge
by default when i load the app for first time i want all the task
images to show as off.jpg when i tap on an off image after completing
a task i want this off image to change to on.jpg and after this when i
load the app later if i have tapped on any off image i want the
updated image which should be on and the others which were not tapped
to show off.jpg
should this change of images be done using php and ajax using onPress
method and how do i change the state of an image after it is tapped
should i execute an sql query and initially set it to off and onPress
should i execute an update query and change the column value to on and
read this value back and set the image to be on.jpg
which is the best way to go about
--
Harvey Kane
Phone:
- Auckland: +64 9 950 4133
- Wanaka: +64 3 746 8133
- Mobile: +64 21 811 951
Email: [email protected]
If you need to contact me urgently, please read my email policy
www.ragepank.com/email/
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]