history.go(-1) crashes phone emulator

3 posts, 0 answers
  1. Robert
    Robert avatar
    4 posts
    Member since:
    Jan 2013

    Posted 02 Mar 2015 Link to this post

    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. Robert
    Robert avatar
    4 posts
    Member since:
    Jan 2013

    Posted 02 Mar 2015 in reply to Robert Link to this post

    Oops, I mean the Visual Basic plugin Phone Simulator
  3. Martin Yankov
    Admin
    Martin Yankov avatar
    177 posts

    Posted 05 Mar 2015 Link to this post

    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.
     
Back to Top