This is a migrated thread and some comments may be shown as answers.

anchor tag problem

1 Answer 28 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
kavya
Top achievements
Rank 1
kavya asked on 25 Jul 2016, 01:13 PM

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.

1 Answer, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 28 Jul 2016, 02:14 PM
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.

 
Tags
HTML5, CSS, JavaScript
Asked by
kavya
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Share this question
or