webOS Nation Forums >  webOS Discussion >  Open webOS General Discussion > redirect queston
redirect queston
  Reply
 
Thread Tools Display Modes
Old 02/22/2012, 08:51 AM   #1 (permalink)
Member
 
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() {
this.$.appManager.call({
'id': "com.palm.app.email",
'params':{
'summary':'test subject',
'text':'test email text',
recipients:[{
"type":"email",
"role":"1",
"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)
Member
 
twack's Avatar
 
Posts: 634
You're probable better off posting your question at:

https://developer.palm.com/distribution/index.php
__________________
TWack
On my 4G TouchPad, Pre3 or Panda-Veer.
If you like our patches, please consider donating to the cause.



|wackware|google+|facebook|twitter|shortcut|mylo|multiapp|flashfile|donate|
twack is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0