05-30-2012 07:25 AM
05-30-2012 12:02 PM - edited 05-30-2012 07:26 PM
Thanks for the help icq.
I just tried:
<script>
function launchMail() {
var remote = new blackberry.transport.RemoteFunctionCall("blackberr y/invoke/invoke");
remote.addParam("appType", "mailto:?Subject=SubjectStr&body=" + encodeURIComponent(BodyStr));
remote.makeAsyncCall();
}
</script>
<img src="img/messages.png" onclick="launchMail()" />
and still no go. :confused:
Yes, I have <feature id="blackberry.invoke" required="true" version="1.0.0"/> in the config.
Not sure what's going on.
(edit - added the () to the launchMail command, left it out of the forum post by mistake)
05-30-2012 12:11 PM - edited 05-30-2012 12:17 PM
your onClick shoud be onClick="launchMail()" let me know if that helps.
and I assume you are defining BodyStr somewhere right?
05-30-2012 01:43 PM
Ah right, yeah in the code it is "onClick="launchMail()", that was a forum post typo on my end.
I'm not defining a body string, actually in a more recent attempt I just tried to launch "mailto:email@email.com" and it was no go.
05-30-2012 01:56 PM
05-30-2012 02:32 PM - edited 05-30-2012 02:37 PM
On your PlayBook or in the simulator?
05-30-2012 03:39 PM
On the PlayBook. There's no email client on the simulator is there?
05-30-2012 04:05 PM
That's right.
I'll have a look at my setup when I get home.
05-30-2012 10:06 PM - edited 05-30-2012 10:50 PM
In my config.xml I use
<feature id="blackberry.invoke" />
Your code (with body=Test as suggested by icq782443) runs as expected on my PB. You need to make sure the makeAsyncCall() statement is reached.
05-30-2012 11:19 PM