How add text to sender sms

How add text to sender sms SearchSearch
Author Message
Balinenis
New member
Username: Baline

Post Number: 1
Registered: 03-2006
Posted on Thursday, March 23, 2006 - 08:02 am:   

hi, how add some text to sender sms;
user send sms:text text text text text
text text text text text
text text text text text
"add my some text in sms"
Balinenis
New member
Username: Baline

Post Number: 2
Registered: 03-2006
Posted on Thursday, March 23, 2006 - 09:05 am:   

it works
http://localhost:8801/?PhoneNumber=%2B44xxxxxxx&Text=hi+"my text"
but how to do on http://localhost:8801/Send Text Message.htm form, add my text in sms

Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5704
Registered: 10-2002
Posted on Friday, March 24, 2006 - 05:21 pm:   

Hi,

You would need to modify the "Send Text Message.htm" form.

I'd probably suggest adding a JavaScript to append your data in the form submission.

Change the submit button from TYPE="SUBMIT" to TYPE="BUTTON" and add an onClick JavaScript option to the button, like this:

<INPUT TYPE="BUTTON" NAME="Submit" VALUE="Submit" onclick="submitForm()">

JavaScript functions are defined in the "<head>" section of the HTML. This form already has some JavaScript, so you need to add a submitForm() function that appends your text.

I didn't try this myself, so I might have made a stupid mistake, but here's what I think should work:

function submitForm() {
document.forms[0].Data.Text = document.forms[0].Data.Text + " (My Text)";

document.forms[0].submit();

}

Balinenis
New member
Username: Baline

Post Number: 3
Registered: 03-2006
Posted on Thursday, March 30, 2006 - 08:01 am:   

Bryce thx, but it didn't worked, me modify:
function submitForm() {
document.forms[0].Text.value = document.forms[0].Text.value + " (My Text)";
document.forms[0].submit();
}
<INPUT NAME="submit" TYPE="submit" onclick="submitForm()" id="submit" Value="Send>
and it works