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

Href onclick isn't working on phone?

4 Answers 317 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.
Lasse
Top achievements
Rank 1
Lasse asked on 24 Mar 2016, 02:31 PM

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?

4 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 29 Mar 2016, 01:27 PM
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.

 
0
Jim
Top achievements
Rank 1
answered on 29 Mar 2016, 04:17 PM

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

 

0
Dimitrina
Telerik team
answered on 01 Apr 2016, 02:18 PM
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.

 
0
Jim
Top achievements
Rank 1
answered on 01 Apr 2016, 03:32 PM
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.
Tags
HTML5, CSS, JavaScript
Asked by
Lasse
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Jim
Top achievements
Rank 1
Share this question
or