How add text to sender sms | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through June 02, 2006 ⬆ |
◄ ► |
Author | Message | |||
Balinenis New member Username: Baline Post Number: 1 Registered: 03-2006 |
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 |
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 |
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 |
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 |