Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Can javascript do this?

Reply
Thread Tools

Can javascript do this?

 
 
wikten
Guest
Posts: n/a
 
      09-01-2004
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


 
Reply With Quote
 
 
 
 
Nik Coughin
Guest
Posts: n/a
 
      09-01-2004
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>


 
Reply With Quote
 
 
 
 
wikten
Guest
Posts: n/a
 
      09-02-2004
I will give that a try. Thank You for your help.

Wikten

"Nik Coughin" <nrkn!no-spam!@woosh.co.nz> wrote in message
news:ljtZc.20677$...
> 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>
>
>



 
Reply With Quote
 
wikten
Guest
Posts: n/a
 
      09-02-2004
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>
>
>



 
Reply With Quote
 
Thomas 'PointedEars' Lahn
Guest
Posts: n/a
 
      09-05-2004
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.
 
Reply With Quote
 
wikten
Guest
Posts: n/a
 
      09-08-2004
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" <> wrote in message
news:...
>
> 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.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Docs Won't Open, Can't Be E-Mailed, Can't Be Deleted, Can't Be Copied, Etc. Martin Computer Support 16 02-24-2009 07:35 PM
Wireless can get internet but can't see network -- can when wired 02befree Computer Support 0 12-24-2007 09:10 PM
SOLVED - can't open file in windows media player / WMP. But can in VLC - video LAN .. Now can in WMP jameshanley39@yahoo.co.uk Computer Information 2 09-19-2007 02:53 AM
can run javascript can't run vbscript - WHY duncan ASP .Net 2 10-27-2004 09:31 AM
Javascript can get time, can it get milliseconds, or actually just tenths of seconds? Guy Javascript 2 12-05-2003 04:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57