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

history.go(-1) crashes phone emulator

2 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert
Top achievements
Rank 1
Robert asked on 02 Mar 2015, 03:40 PM
Hello, this line of code always crashes the phone emulator: <a href="#" data-icon="reply" onclick="history.go(-1);return false;">Back</a>
Not sure why.  I have tried data-binding the correct url, but it does not work either: http://stackoverflow.com/questions/28812805/data-bind-url-from-javascript-object

2 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 02 Mar 2015, 03:41 PM
Oops, I mean the Visual Basic plugin Phone Simulator
0
Martin Yankov
Telerik team
answered on 05 Mar 2015, 09:35 AM
Hello Robert,

Kendo UI Mobile provides a BackButton widget that does what you need. Here is how your anchor element should look like if you decide to use it:
<a data-role="backbutton">Back</a>

Try implementing this with the back button widget and let me know the results.

Regards,
Martin Yankov
Telerik
 
Test your Android and iOS apps against any device or browser with Telerik Mobile Testing. Part of the Telerik Platform.
 
Tags
General Discussions
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Martin Yankov
Telerik team
Share this question
or