licorne
01-07-2003, 01:26 AM
undefined
Okay, I'm a newbie but I'm managing to get some things to work by reading tutorials etc. I've got this page on which I've place a form and a search engine java script. Now the forms show up okay but the submit buttons are not functioning. In addition to that I've got some stray javascript appearing at the top of the page. So here is the code:
<html>
<head>
<title>Need a translator?</title>
<script language="JavaScript"></script><!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Begin
function searchFunc() {
var newWindow = window.open("about:blank", "searchValue", "width=200, height=200, resizable=no, maximizable=no");
var searchValue = document.search.queryField.value;
var yahooSearch = document.search.yahoo.value;
var altavistaSearch = document.search.altavista.value;
var webcrawlerSearch = document.search.webcrawler.value;
var exciteSearch = document.search.excite.value;
newWindow.document.write("<html-->
</head>
<body>
\n\n\n \n"); newWindow.document.write("<a
href="+yahooSearchsearchValue+" target="main">Yahoo!</a><br>
<br>
\n"); newWindow.document.write("<a href="+altavistaSearchsearchValue+"
target="main">Altavista</a><br>
<br>
\n"); newWindow.document.write("<a href="+webcrawlerSearchsearchValue+"
target="main">WebCrawler</a><br>
<br>
\n"); newWindow.document.write("<a href="+exciteSearchsearchValue+"
target="main">Excite</a><br>
<br>
\n"); newWindow.document.close(); self.name = "main"; } // End;
<h1>Victor L Foster: Professional Translator & Terminologist</h1>
<form action="<a" href="mailto:%22" vlfoster@comcast.net=">
method="
post="">Describe the work you want here: <input type="text"
name="some_text" size="30" maxlength="350">
<p> Check here if it's a translation: <input type="checkbox"
name="box"> </p>
<p> Check here if it concerns terminology: <input type="checkbox"
name="box"> </p>
<p> Select a field:
<select name="choice">
<option selected="selected"> medical </option>
<option> software/hardware </option>
<option> scientific </option>
<option> technical </option>
</select>
</p>
<p> </p>
<p> </p>
<hr> Finally, click here to submit it: <input type="submit"
value="Send it"> or <input type="reset" value="Erase all">
<p> </p>
</form>
<form name="search"> <input type="hidden" name="yahoo"
value="http://search.yahoo.com/search?p="> <input type="hidden"
name="altavista"
value="http://www.altavista.com/cgi-bin/query?pg=q&what=web&fmt=.&q="> <input
type="hidden" name="webcrawler"
value="http://www.webcrawler.com/cgi-bin/WebQuery?searchText="> <input
type="hidden" name="excite"
value="http://www.excite.com/search.gw?trace=a&search="> Search the
internet for: <input type="text" size="25" name="queryField"> <br>
<input type="button" value="Search" onclick="searchFunc()"> <input
type="reset" value="Clear"> <br>
(A separate window will open where you can select a search engine.) </form>
<center> <font face="arial, helvetica" size="" -2="">Free JavaScripts
provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center>
<p><!-- Script Size: 2.49 KB --> </p>
</body>
</html>
So if someone could help me out I'd appreciate. On another page, I managed to get a ticker script to work but on the same page I have a drop down menu with a text box underneath. You click on one of the options in the text box and the text corresponding to the question should appear in the text box. That is not happening so that is confusing. I still won't know how to write my own script when this is over with but I'll be able to troubleshoot a little, I imagine. I'm trying to figure out how to add in these "onload=", "onclick=" tags that you place in the body tag but it's not always apparent what to put in to make the script do what it is designed to do.
thanks a lot in advance.
Okay, I'm a newbie but I'm managing to get some things to work by reading tutorials etc. I've got this page on which I've place a form and a search engine java script. Now the forms show up okay but the submit buttons are not functioning. In addition to that I've got some stray javascript appearing at the top of the page. So here is the code:
<html>
<head>
<title>Need a translator?</title>
<script language="JavaScript"></script><!-- This script and many more are available free online at --><!-- The JavaScript Source!! http://javascript.internet.com --><!-- Begin
function searchFunc() {
var newWindow = window.open("about:blank", "searchValue", "width=200, height=200, resizable=no, maximizable=no");
var searchValue = document.search.queryField.value;
var yahooSearch = document.search.yahoo.value;
var altavistaSearch = document.search.altavista.value;
var webcrawlerSearch = document.search.webcrawler.value;
var exciteSearch = document.search.excite.value;
newWindow.document.write("<html-->
</head>
<body>
\n\n\n \n"); newWindow.document.write("<a
href="+yahooSearchsearchValue+" target="main">Yahoo!</a><br>
<br>
\n"); newWindow.document.write("<a href="+altavistaSearchsearchValue+"
target="main">Altavista</a><br>
<br>
\n"); newWindow.document.write("<a href="+webcrawlerSearchsearchValue+"
target="main">WebCrawler</a><br>
<br>
\n"); newWindow.document.write("<a href="+exciteSearchsearchValue+"
target="main">Excite</a><br>
<br>
\n"); newWindow.document.close(); self.name = "main"; } // End;
<h1>Victor L Foster: Professional Translator & Terminologist</h1>
<form action="<a" href="mailto:%22" vlfoster@comcast.net=">
method="
post="">Describe the work you want here: <input type="text"
name="some_text" size="30" maxlength="350">
<p> Check here if it's a translation: <input type="checkbox"
name="box"> </p>
<p> Check here if it concerns terminology: <input type="checkbox"
name="box"> </p>
<p> Select a field:
<select name="choice">
<option selected="selected"> medical </option>
<option> software/hardware </option>
<option> scientific </option>
<option> technical </option>
</select>
</p>
<p> </p>
<p> </p>
<hr> Finally, click here to submit it: <input type="submit"
value="Send it"> or <input type="reset" value="Erase all">
<p> </p>
</form>
<form name="search"> <input type="hidden" name="yahoo"
value="http://search.yahoo.com/search?p="> <input type="hidden"
name="altavista"
value="http://www.altavista.com/cgi-bin/query?pg=q&what=web&fmt=.&q="> <input
type="hidden" name="webcrawler"
value="http://www.webcrawler.com/cgi-bin/WebQuery?searchText="> <input
type="hidden" name="excite"
value="http://www.excite.com/search.gw?trace=a&search="> Search the
internet for: <input type="text" size="25" name="queryField"> <br>
<input type="button" value="Search" onclick="searchFunc()"> <input
type="reset" value="Clear"> <br>
(A separate window will open where you can select a search engine.) </form>
<center> <font face="arial, helvetica" size="" -2="">Free JavaScripts
provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font> </center>
<p><!-- Script Size: 2.49 KB --> </p>
</body>
</html>
So if someone could help me out I'd appreciate. On another page, I managed to get a ticker script to work but on the same page I have a drop down menu with a text box underneath. You click on one of the options in the text box and the text corresponding to the question should appear in the text box. That is not happening so that is confusing. I still won't know how to write my own script when this is over with but I'll be able to troubleshoot a little, I imagine. I'm trying to figure out how to add in these "onload=", "onclick=" tags that you place in the body tag but it's not always apparent what to put in to make the script do what it is designed to do.
thanks a lot in advance.