By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,030 Members | 1,207 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,030 IT Pros & Developers. It's quick & easy.

Can javascript do this?

P: n/a
I have a text pager, at http://sbc2way.com/web_instruct.html it sez.
The send message page will also take inline parameters from the URL that is

referenced with the page when it is loaded in your browser. You can supply
1,2 or 3

parameters in any order, depending on your needs. The parameters that are
accepted

are:
'pager=6305551212' where the number is the 10 digit pager number
'from=From Message' where the from message is limited to 16 characters
'text=body of text message...' where the body + from message is limited to
800

characters
In order to use this feature you need to make a link (shortcut) to the web
send

message page. An example link would look like this:

http://www.sbc2way.com/web_sendmsg.h...1212&from=From
Me&text=This is

the text of a test message.

If you click on the above like you can see how it fills in these values to
the web

send message page.

* * * *

Is it possable to us javascript on a webpage with forms to make this
work?

Wikten
Jul 23 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
wikten wrote:
An example link would look like this:

http://www.sbc2way.com/web_sendmsg.h...1212&from=From
Me&text=This is

the text of a test message.

Is it possable to us javascript on a webpage with forms to make
this work?

Wikten


You don't need JS, just this HTML:

<form action="http://www.sbc2way.com/web_sendmsg.html" method="post">
pager: <input type="text" id="pager"><br>
from: <input type="text" id="from"><br>
text: <input type="text" id="text"><br>
<input type="submit" value="Send"> <input type="reset">
</form>
Jul 23 '05 #2

P: n/a
I will give that a try. Thank You for your help.

Wikten

"Nik Coughin" <nr***********@woosh.co.nz> wrote in message
news:lj********************@news.xtra.co.nz...
wikten wrote:
An example link would look like this:

http://www.sbc2way.com/web_sendmsg.h...1212&from=From
Me&text=This is

the text of a test message.

Is it possable to us javascript on a webpage with forms to make
this work?

Wikten


You don't need JS, just this HTML:

<form action="http://www.sbc2way.com/web_sendmsg.html" method="post">
pager: <input type="text" id="pager"><br>
from: <input type="text" id="from"><br>
text: <input type="text" id="text"><br>
<input type="submit" value="Send"> <input type="reset">
</form>

Jul 23 '05 #3

P: n/a
I tryed this, here is the page http://home.att.net/~wikten/test.html .
it failed.

Method Not Allowed
The requested method POST is not allowed for the URL /web_sendmsg.html.
--------------------------------------------------------------------------------

Apache/1.3.22 Server at www.sbc2way.com Port 80
So what do you think, can javascript do it?
Wikten
You don't need JS, just this HTML:

<form action="http://www.sbc2way.com/web_sendmsg.html" method="post">
pager: <input type="text" id="pager"><br>
from: <input type="text" id="from"><br>
text: <input type="text" id="text"><br>
<input type="submit" value="Send"> <input type="reset">
</form>

Jul 23 '05 #4

P: n/a
Nik Coughin wrote:
wikten wrote:
An example link would look like this:

http://www.sbc2way.com/web_sendmsg.h...1212&from=From
Me&text=This is the text of a test message.

Is it possable to us javascript on a webpage with forms to make
this work?


You don't need JS, just this HTML:

<form action="http://www.sbc2way.com/web_sendmsg.html" method="post">
pager: <input type="text" id="pager"><br>
from: <input type="text" id="from"><br>
text: <input type="text" id="text"><br>
<input type="submit" value="Send"> <input type="reset">
</form>


1. A form element requires a _name_ (attribute value) to be submitted:
<http://www.w3.org/TR/html4/interact/forms.html#h-17.2>

2. To result in the above URL, the method must be GET (the default),
not POST.

3. Since this is tabular data, it is reasonable to use a table (element)
here.

Minimal CSS code:

th {
text-align:left;
}

Minimal HTML code:

<form action="http://www.sbc2way.com/web_sendmsg.html">
<table>
<tr>
<th>Pager:<th>
<td><input name="pager"></td>
</tr>

<tr>
<th>From:</th>
<td><input name="from"></td>
</tr>

<tr>
<th>Text:</th>
<td><input name="text"></td>
</tr>
</table>

<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
PointedEars
--
Never test the depth of the water with both feet.
Jul 23 '05 #5

P: n/a
Mr. Thomas Lahn:
That WORKED. I got to tweak it a little bit, but I am in the door.
Thank you for the help kind sir.
Wikten
--
http://wikten.home.att.net
"Thomas 'PointedEars' Lahn" <Po*********@web.de> wrote in message
news:11****************@PointedEars.de...

1. A form element requires a _name_ (attribute value) to be submitted:
<http://www.w3.org/TR/html4/interact/forms.html#h-17.2>

2. To result in the above URL, the method must be GET (the default),
not POST.

3. Since this is tabular data, it is reasonable to use a table (element)
here.

Minimal CSS code:

th {
text-align:left;
}

Minimal HTML code:

<form action="http://www.sbc2way.com/web_sendmsg.html">
<table>
<tr>
<th>Pager:<th>
<td><input name="pager"></td>
</tr>

<tr>
<th>From:</th>
<td><input name="from"></td>
</tr>

<tr>
<th>Text:</th>
<td><input name="text"></td>
</tr>
</table>

<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
PointedEars
--
Never test the depth of the water with both feet.

Jul 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.