Get your own customer support community
 

how to make a command like "email" just that it sends SMS

Im making a personal sms sender for ubiquity, and need some help...

the thing i want to do is:

- have to type in: sms "text to sms" to "phone-number"
and press enter, and done. sms sent

This is what i have made:

name: "sms",
takes: {"sms": noun_arb_text},
preview: function( pblock, theSearch ) {
pblock.innerHTML = "Will SMS: " + theSearch.text;
},
execute: function( theSearch ) {
var msg = theSearch.text + "Whrite sms now";
var url = "https://www.gulesider.no/mypage/sendSms.c?recipients=" + theSearch.text;
Utils.openUrlInBrowser( url );
displayMessage( msg );

But this wil only bring me to the page shown in the image.

so how can i make it subit my message at the same time?

here is the important html for the sms page:(full html at bottom)



<form name="sendSmsForm">
<h1>Send SMS </h1>

Du har 51 SMS til gode

<table class="skjematabell">

<tr>
<th>Avsender</th>
<td>
<select name="sender">
</select><option value="48069930">
480 69 930
</option>

<option value="tlf.no">
tlf.no
</option>

Legg til eget nummer



</td>
</tr>

<tr>
<th>Send til mobilnummer</th>
<td>
<input name="recipients" class="txtnpt" type="text" value="90635939" />

</td>
</tr>

<tr>
<th>Tekst</th>
<td>
<textarea name="text"></textarea>



Meldingens lengde: 0 (maks. 459)


Belastes 1 SMS

</td>
</tr>

</table></form>
<input name="submit" class="submit" type="submit" value="Send" />

FULL:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html>
<head>
<meta name="Description" />
<meta name="keywords" />
<meta />
<meta />
<meta />
<meta />
<meta name="SKYPE_TOOLBAR" />
<title>
Telefonkatalogen™ Min Side
</title>
<link href="/css/minside/stilsett.css" rel="stylesheet" type="text/css" />
</head>

</html><body>



</body>






<form name="sendSmsForm">
<h1>Send SMS </h1>

Du har 51 SMS til gode

<table class="skjematabell">

<tr>
<th>Avsender</th>
<td>
<select name="sender">
</select><option value="48069930">
480 69 930
</option>
<option value="tlf.no">
tlf.no
</option>

Legg til eget nummer


</td>
</tr>

<tr>
<th>Send til mobilnummer</th>
<td>
<input name="recipients" class="txtnpt" type="text" value="48069930" />

</td>
</tr>

<tr>
<th>Tekst</th>
<td>
<textarea name="text"></textarea>


Meldingens lengde: 0 (maks. 459)


Belastes 1 SMS

</td>
</tr>

</table>
<input name="submit" class="submit" type="submit" value="Send" />


Din SMS konto vil bli belastet med én SMS per delmelding.

</form>







<!--See Bug # 9027 -->
<noscript></noscript>

<!-- End TNSMetrix -->

<noscript>

</noscript>
<!--//-->
<!-- End of IndexTools Code -->
 
silly I’m unsure
Inappropriate?
1 person has this question

User_default_medium