Jump to content
COMFIED

Integrating Phonegap plugin to Send SMS

Recommended Posts

I figured it out.

It's as simple as creating a HTML <form> with variables and then submitting it.

 

For example

 

implementation
function document: variant; external "document" property;
 
 

var

SMS_RECIEPIENT, MESSAGE_STRING: string

 

 

W3LabelREG.Caption:=
'<form name="RegForm" id="RegForm">'+
'<input type="text" id="number" value="+ SMS_RECIEPIENT+ '"/>'+
'<input type="text" id="message" value="'+ MESSAGE_STRING+ '"/>'+
'<input type="submit" value="SEND SMS" id="sendMessage" />'+
'</form>';
 
document.RegForm.submit();
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×