webOS Nation Forums >  webOS Discussion >  Open webOS General Discussion > redirect queston
redirect queston
Thread Tools Display Modes
Old 02/22/2012, 08:51 AM   #1 (permalink)
Posts: 1
Hello, I am working on a webview app, and so far I have the newBrowsercard, newEmailcard working. What I would like to do is make a new card for calling as well. Although i am completely unsure how to do that. So when a telephone number is clicked in my webview, it opens my phone app. Below is my code for the email redirect, does anyone have the code for the phone redirect? I am a nooby completely at this, so please keep it simple. I should mention this is an enyo touchpad app 3.0.5 SDK. Thanks!

kind: "WebView",
name: "myWebView",
layoutKind: "HFlexLayout",
url: "http://www.cayuga-cc.edu/iphone",
onUrlRedirected: "redir",
redirects: [

// Intercept and redirect any link with 'mailto' in the url to our redir function
{regex: "mailto", cookie: "newEmailCard", enable: true}

openEmail:function() {
'id': "com.palm.app.email",
'summary':'test subject',
'text':'test email text',
"value":"[email protected]",
"contactDisplay":"Your Name",

Last edited by childofthekorn1318; 02/22/2012 at 08:58 AM.
childofthekorn1318 is offline   Reply With Quote
Thanked By: pattyland
Old 02/22/2012, 09:43 AM   #2 (permalink)
twack's Avatar
Posts: 634
You're probable better off posting your question at:

On my 4G TouchPad, Pre3 or Panda-Veer.
If you like our patches, please consider donating to the cause.

twack is offline   Reply With Quote


Thread Tools
Display Modes


Content Relevant URLs by vBSEO 3.6.0