SMS Anchors in WebApp

16 views
Skip to first unread message

Ara

unread,
Jan 2, 2009, 1:18:40 PM1/2/09
to iPhoneWebDev
Ok, so I've searched all over here and I know you can set an HTML <a>
to send an sms image like so:

<a href="sms:123-555-1234">Text Me</a>

This works great, however I need to also put something in the body of
the text message, I've tried all the syntax's below, but can't come up
with anything, in each of the cases below the sms app just puts in all
the text after 'sms:' into the "To:" field of the SMS app, not in the
body.

<a href="sms:123-555-1234?text=text body">Text Me</a>
<a href="sms:123-555-1234&text=text body">Text Me</a>
<a href="sms:123-555-1234?msg=text body">Text Me</a>
<a href="sms:123-555-1234&msg=text body">Text Me</a>
<a href="sms://123-555-1234&msg=text body">Text Me</a>

Anyone else run into this and have a solution?

Thanks!

Bruno Alexandre

unread,
Jan 3, 2009, 5:46:56 AM1/3/09
to iPhoneWebDev
Web Apps are not as rich as SDK apps and you don't have the control of
such things, no buther to look for a solution, there is none.

all you can do is: mailto: sms: tel: and use Google Maps app instead
Google Maps web site, it is all explain in Professional iPhone
Application Development from Wrox - Building application for Mobile
Safari (ISBN: 978-0-470-25155-3)

and always attach the onclick event to your links so they don't fire
up an application or error if not using the iPhone like:

<a class="serviceButton" target="_self" href="tel:(978) 555-1211"
onclick="return (navigator.userAgent.indexOf('iPhone') != -1)">Call
User</a>

David Mark

unread,
Jan 5, 2009, 3:36:22 PM1/5/09
to iPhoneWebDev


On Jan 2, 1:18 pm, Ara <AYapej...@gmail.com> wrote:
> Ok, so I've searched all over here and I know you can set an HTML <a>
> to send an sms image like so:
>
> <a href="sms:123-555-1234">Text Me</a>

That will work with some agents. It would be more robust to use a
form and send the message with server side script.

>
> This works great, however I need to also put something in the body of
> the text message, I've tried all the syntax's below, but can't come up
> with anything, in each of the cases below the sms app just puts in all
> the text after 'sms:' into the "To:" field of the SMS app, not in the
> body.

Stabbing around in the dark rarely works in programming. Even if you
stumble upon a likely solution, it may only work by coincidence.

>
> <a href="sms:123-555-1234?text=text body">Text Me</a>

For one, learn HTML.

> <a href="sms:123-555-1234&text=text body">Text Me</a>

That goes double for this one.

> <a href="sms:123-555-1234?msg=text body">Text Me</a>
> <a href="sms:123-555-1234&msg=text body">Text Me</a>

Ditto and ditto.

> <a href="sms://123-555-1234&msg=text body">Text Me</a>

Rearranging characters until you get a "hit" on your test device of
choice is not a viable design strategy.

[snip]

Chrilith

unread,
Jan 6, 2009, 4:36:21 AM1/6/09
to iPhoneWebDev
Well David, it seems that you don't really understand the purpose of
this group and do not have any idea of the price of a professional SMS
service - why waste money if you can do it for free?

Also, if the only purpose of your posts is to denigrate, just go away
and do not polute this group.

Roger

unread,
Jan 7, 2009, 12:59:03 AM1/7/09
to iPhoneWebDev


On Jan 6, 4:36 am, Chrilith <chril...@gmail.com> wrote:
> Well David, it seems that you don't really understand the purpose of

And that purpose is what (as you see it?)

> this group and do not have any idea of the price of a professional SMS
> service - why waste money if you can do it for free?

Seeing as the posted alternative doesn't work and you have nothing to
add, what is your point?

>
> Also, if the only purpose of your posts is to denigrate, just go away
> and do not polute this group.

You clearly don't understand enough to judge what is helpful. Perhaps
*you* should refrain from poluting (sic) this group.

Chrilith

unread,
Jan 7, 2009, 4:20:05 AM1/7/09
to iPhoneWebDev
Well seems that Roger is another "David Mark" clone... I give up.

David Vance

unread,
Jan 7, 2009, 9:51:57 AM1/7/09
to iphone...@googlegroups.com
It seems David and Roger have their own JS library which apparently no one else uses. Whether or not this has anything to do with their attitude on this list I'll leave for others to speculate on.

http://groups.google.com/group/my-library-general-discussion/about
http://www.cinsoft.net/mylib.html

Roger

unread,
Jan 7, 2009, 11:25:28 AM1/7/09
to iPhoneWebDev


On Jan 7, 4:20 am, Chrilith <chril...@gmail.com> wrote:
> Well seems that Roger is another "David Mark" clone... I give up.

Seems you have an endless fascination with David. And what are you
giving up? I think he posted 9-10 messages and you've posted more
than that talking *about* those messages. Are you kidding?

Roger

unread,
Jan 7, 2009, 11:35:07 AM1/7/09
to iPhoneWebDev


On Jan 7, 9:51 am, "David Vance" <datva...@gmail.com> wrote:
> It seems David and Roger have their own JS library which apparently no one

Wrong. David has his own JS library and has never taken the time to
promote it as anything more than a counterpoint to incompetence like
jQuery, Prototype. Despite that, people are starting to discover it a
year later.

> else uses. Whether or not this has anything to do with their attitude on
> this list I'll leave for others to speculate on.

Attitude? In other words, any point you disagree with is bad. And
you want others to speculate about how clever you are for
inadvertently plugging David's library.

>
> http://groups.google.com/group/my-library-general-discussion/abouthttp://www.cinsoft.net/mylib.html

LOL. Those tired of using junk like iUI and iWebKit should stop
over. Thanks!
Reply all
Reply to author
Forward
0 new messages