facebook

Click for touchscreen devices

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #347587 Reply

    hardsofft
    Member

    Hi, i got a button with a click doing some function. The click is working fine on web browser but when i tested on my ios touch device its working but with delay.

    $("#button").click(function() {
    )};

    i replaced click with touchstart,touchend,etc but none works

    $("#button").touchend(function() {
    )};
    
    #347588 Reply

    Brandon
    Member

    Your best result will come from calling the function in the buttons Run Javascript property.

    or try something like this:

    $( “#button” ).on( “click”, function() {
    alert( “Clicked”);
    });

    #347591 Reply

    hardsofft
    Member

    Hi Cincy, thanks for the reply. i am attaching my .mobi file. when run in simulator its working fine but when run on my iphone/ipod, there is delay with touch and score. if i touch button continuously fast its not responding… please guide me…

    Attachments:
    You must be logged in to view attached files.
    #347594 Reply

    Brandon
    Member

    I can check it later today for you.
    Like I said, I only use the Run Javascript for the widget, if not, there may not be anything you can do about the delay.

    #347595 Reply

    hardsofft
    Member

    i completely changed my code and attached it in my previous reply named “Button.mobi”. i just used HTML in the design. you can have a look when ever u feel free.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Click for touchscreen devices

You must be logged in to post in the forum log in