You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org> on 2012/02/06 21:13:59 UTC

[jira] [Commented] (CB-33) tel links dont work

    [ https://issues.apache.org/jira/browse/CB-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201539#comment-13201539 ] 

Shazron Abdullah commented on CB-33:
------------------------------------

Setting tel links using document.location will not work. The workaround is use this function:
https://gist.github.com/1725083

{code:javascript}
function openInWebView(url)
{
    var anchor = document.createElement('a');
    anchor.setAttribute('href', url);
    anchor.setAttribute('target', '_self');
     
     var dispatch = document.createEvent('HTMLEvents')
    dispatch.initEvent('click', true, true);
    
    anchor.dispatchEvent(dispatch);
}
{code}
                
> tel links dont work
> -------------------
>
>                 Key: CB-33
>                 URL: https://issues.apache.org/jira/browse/CB-33
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>
> reported at: https://github.com/callback/callback-ios/issues/29
> possibly this happened since ios5,
> currently i have this plugin which allows me to make tel links, https://github.com/mcfedr/PhoneGap-ios-PhoneDialer, but there is still the underlying issue which i think might be because of something phonegap does.
> a simple phone does nothing and we get an error in the console.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira