i am creating a webapp using html css php and mysql

i am executing an sql query and displaying an image when i click on
this image i am passing a value to a jquery method my php code is

echo '<img src="images/image1.jpg" class="statusimage" id='; echo
$rows['no']; echo ' />';

and in jquery

$(".statusimage").click(function() {

$(this).attr("src", "images/image2.jpg");

var id1 = $(this).attr("id");

        $.ajax({
                type: "POST",
                url:    "update.php",
                data:   {update: (id1)},
                success:        done
        });
});

in a browser this click is working but in iphone 2g i am using this is
not working so i changed php code to

echo '<a href="javascript:void();" class="statusimage"><img
src="images/image1.jpg" id='; echo $rows['no']; echo ' /></a>';

and in jquery


$(".statusimage").click(function() {
alert("");
});


this is also not working

what method can i use in the php echo code for an image that will be
detected on the iphone when i click on the image being generated from
the php code


-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to