473,387 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Can javascript do this?

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
5 1207
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: vishnu mahendra | last post by:
i am new to javascript. Can any one please tell me how to connect javascript to oracle in windows 98 using apache.where i could get information on connecting? thank you in advance, vishnu
31
by: manno | last post by:
Hi all, more or less just out of curiosity... I had a short 'discussion' about JavaScript in different borwsers. The other guy said that there's differeces in JavaScript accross browsers (I...
2
by: Bernhard Georg Enders | last post by:
After issuing the command (apache httpd.conf file) AddType application/x-httpd-php .php .htm .html any attempt to include javascript code <script src="file.js" type="text/javascript"></script>...
9
by: gleverett | last post by:
I have been searching the 'Net, and I can't find the right solution here. I am writing some PHP pages that utilize some Javascript. The script works in Mozilla/Netscape, but fails in IE. I don't...
13
by: John Smith | last post by:
I am using IE 6.0 from http://www.javaworld.com/javaworld/jw-07-1996/jw-07-javascript-p2.html I gather that "If you need to test a number of command lines, you can reduce the keystrokes by...
41
by: Rene Nyffenegger | last post by:
Hello everyone. I am not fluent in JavaScript, so I might overlook the obvious. But in all other programming languages that I know and that have associative arrays, or hashes, the elements in...
10
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - Which newsgroups deal with javascript? ----------------------------------------------------------------------- ...
12
by: pantagruel | last post by:
Hi, I'm thinking of making a WScript based JavaScript library, I can think of some specific non-browser specific scripting examples that should probably make it in, like Crockford's little...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.