anchor tag problem

2 posts, 0 answers
  1. kavya
    kavya avatar
    1 posts
    Member since:
    Jul 2016

    Posted 25 Jul Link to this post

    hey, my achor tag is working in simulator but not on android device

    <a id='show' data-role='button' href='components/profile_page.html' onclick='authenticate()'>profile</a>

    when im runing in simulator function is trigerred.

    when im running in android device function is not trigerred.

  2. Preslav
    Admin
    Preslav avatar
    51 posts

    Posted 28 Jul Link to this post

    Hello Kavya,

    I checked the code snippet and was able to reproduce the issue. However, on my side, this code does not trigger the function neither in the simulator nor on a device.

    To fix the issue you can change the implementation to:
    <a id='show' data-role="button" href="components/profile_page.html" data-click="authenticate">profile</a>

    I hope this helps.
     
    Regards,
    Preslav
    Telerik by Progress
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top