473,385 Members | 1,597 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,385 software developers and data experts.

The missing button

I'm doing programming for my science prodject, and when I was
programming (I'm building an alphebatizer) I ran into this bug: I've
got an input box, but no button or output box. so I do some reaserch,
insert a button, and when I open it up, instead of the button being
added, I lost the input box. Can ANYONE PLEASE HELP ME!!!!!!!!!!!!!
I've included a copy of my code as it is:

<HTML>
<HEAD> Riehl's Alphebatizer
<SCRIPT LANGUAGE="JavaScript">
<!--beginning of JavaScript-
function alphebitize (inputText.value){
..split(" "); inputTextArray.sort(); result.join("
");result.send("outputText")
</HEAD>

<BODY> <document.bgcolor="blue">
type some words, separated by spaces, in here. to clear, click refresh.
<FORM>

<TEXTAREA name="inputText" rows=6 cols=85 wrap=on></TEXTAREA>
<INPUT NAME="submit" TYPE=Button VALUE="Alphebitize words"
onClick="alphebitize (form.inputText.value)")>

<TEXTAREA name="outputText" rows=6cols=85 wrap=on
readonly></TEXTAREA>

</FORM>

</BODY>
</HTML>
If you can help, please email me. My adress is : in******@prodigy.net

Apr 12 '06 #1
1 1831
inventor wrote on 13 apr 2006 in comp.lang.javascript:
I'm doing programming for my science prodject, and when I was
"prodject" ?? science ??
programming (I'm building an alphebatizer) I ran into this bug: I've
"alphebatizer" ??
got an input box, but no button or output box. so I do some reaserch,
insert a button, and when I open it up, instead of the button being
added, I lost the input box. Can ANYONE PLEASE HELP ME!!!!!!!!!!!!!
I've included a copy of my code as it is:

<HTML>
<HEAD> Riehl's Alphebatizer
<SCRIPT LANGUAGE="JavaScript">
<SCRIPT type='text/JavaScript'>
<!--beginning of JavaScript-
do not use <!-- [since 1998 about]
function alphebitize (inputText.value){
"alphebitize" ??

you cannot use inputText.value as an argument variable of a function

use alphebitize(myArgument)
.split(" ");
you did not state a with .., so the .split has no input
inputTextArray.sort();
you did not specify inputTextArray
result.join("");
you did not specify result
result.send("outputText")
what is .send() ??

you did not close the function with }

you did not close the superfluous <!--

you forgot </script>
</HEAD>

<BODY>
<document.bgcolor="blue">
That is not html, nor css style declaration syntax, nor javascript,
it is nothing
type some words, separated by spaces, in here. to clear, click refresh.
<FORM>
name the form <form name='myForm'>

<TEXTAREA name="inputText" rows=6 cols=85 wrap=on></TEXTAREA>
<INPUT NAME="submit" TYPE=Button VALUE="Alphebitize words"
type should be submit, not button.

Alphebitize ??
onClick="alphebitize (form.inputText.value)")>
do not use onclick of the submit button,
but insubmit of the <form>

document.forms['myForm'].elements['inputText'].value

or better:

<form onsubmit='alphebitize (this.inputText.value)'>

if you don't want to submit, include a "return false"

<TEXTAREA name="outputText" rows=6cols=85 wrap=on
insert a space in 6cols=85
readonly></TEXTAREA>
an empty readonly textarea will not help you much

</FORM>

</BODY>
</HTML>
Conclusion:
Start writing simpler scripts and test them again and again.
Perhaps you will learn to programme.

If you can help, please email me. My adress is : in******@prodigy.net


Certainly not. Question on usenet, answer on usenet!

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Apr 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: eltronic | last post by:
here is some code to add right click context menus. in the few apps I've edited sofar, it just works, once you run rCbinder with the root of the gui or bind B3 all present and future widgets will...
4
by: Stephanie Stowe | last post by:
You have a page. On top of the page, there are some search criteria and other input elements and a submit button. The submit button is clicked, sending a request to the server. Server-side code is...
0
by: hy | last post by:
Hi all, I got a problem to restore back the selected upload file after i fired a radio button that will call the server script to do the process. In my aspx page, i have an upload textbox to...
2
by: John Sutter | last post by:
I have a webpage which has a few asp:textbox's and an asp:button. I also have a few RequiredFieldValidators for these text boxes. When I click on the button while the textboxes are empty, I don't...
5
by: unwantedspam | last post by:
Hi All, What am I missing. I have trying to create a simple web based application. Basically there are three textboxes and two buttons (Save, Reset). I assume the code behind the save button...
3
by: Brett | last post by:
I'm using a third part component in a certain app. The component has methods and events. I noticed one particular event was not firing after a while but it should have been. The problem was the...
2
by: inventor | last post by:
I'm doing programming for my science prodject, and when I was programming (I'm building an alphebatizer) I ran into this bug: I've got an input box, but no button or output box. so I do some...
5
by: SimeonArgus | last post by:
Okay. I have the following situation. It is a basic case where a dynamic button needs to remove itself after an action, and handle some minor database flags. public partial class ReportFrame :...
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.