Href onclick isn't working on phone?

5 posts, 0 answers
  1. Lasse
    Lasse avatar
    1 posts
    Member since:
    Dec 2015

    Posted 24 Mar Link to this post

    Hello, I have this one link that's a link to to a local page, and it also has a onclick function that's supposed to refresh an iframe on the destination page.

    It works ok in appbuilder simulator, but when i try it at phone, nothing happens. How is that possible?

    Link is like this(example) <a href="components/home/view.html" onclick="refreshIframe();"> Link </a>

    I added alert("hello"); to that refreshIframe function so I could see if it is run, but nothing. Any help?

  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 29 Mar Link to this post

    Hi Lasse,

    We are currently not aware of issues on click of a button and I could not reproduce any after deploying my test app (with the button definition as yours) on Android phone. Would you please let me know if it is not working on any phone or on a specific vendor only? Does it work if you directly call alert("hello"); onclick (onclick="on();")? If so, then you may check if the script with the refreshIframe() function is being loaded?

    In case there is still an issue, would you open a new support ticket and share with us a small demo illustrating the problem which we could verify on our side? That way we will be able to advice you further.

    Regards,
    Dimitrina
    Telerik
     

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

     
  3. Jim
    Jim avatar
    12 posts
    Member since:
    Jan 2015

    Posted 29 Mar in reply to Dimitrina Link to this post

    Possibly related to this issue?

    http://9to5mac.com/2016/03/27/some-users-reporting-iphone-crashes-on-ios-9-3-when-tapping-links-in-safari-and-other-apps/

    http://www.independent.co.uk/life-style/gadgets-and-tech/news/ios-93-bug-makes-some-phones-break-if-people-click-on-links-users-claim-a6956036.html

    http://www.engadget.com/2016/03/28/ios-9-3-web-link-bug/

    https://discussions.apple.com/thread/7505840?start=0&tstart=0

     

  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 01 Apr Link to this post

    Hello Jim,

    Thank you for sharing the links, this could indeed be the reason. 

    @Lasse, in case there is still an issue with older versions or on a different OS and it seems not related to the links Jim shared, would you open a new support ticket and share with us a small demo illustrating the problem? That way we can verify it on our side.

    Regards,
    Dimitrina
    Telerik
     

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

     
  5. Jim
    Jim avatar
    12 posts
    Member since:
    Jan 2015

    Posted 01 Apr in reply to Dimitrina Link to this post

    Just a quick update to note that Apple has released iOS 9.3.1 which fixes this issue. It resolved the problem for me on a couple devices that were encountering the issue.
Back to Top