I’m very new to javascript & just starting to learn. In my company I created a small web page for our “Active Desktop” on our PCs that has links to common used programs & web pages.
We have a Intranet for our Staff Directory. What I’d like to do is create a small form on there that they can enter somoene last name & click submit & takes that & places it within a string to be searched. For example here is a search string.
[url]http://www.host.com?search=nametosearchhere%jklejleee
I want to have “
Here is what I have, found the script that used check boxs to select a few choices to take you to right spot, I tried to edit it but not doing it right.
[QUOTE]
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<SCRIPT LANGUAGE=”JavaScript”>
site1=”_command=list&
site2=”%3c%2fSubSearch%3e%3c_appid%3e206762%3c%2f_appid%3e%3c%2fclientInfo%3e”;
function combineMenus(frm, menu1) {
with (frm) {
for (var i = 0; i < document.menufrm.menu1.length; i++) {
if (document.menufrm.menu1[i].checked) {
str = document.menufrm.menu1[i].value;
break;
}
}
url = site1 + str + site2;
window.location.href = url;
}
}
// End –>
</script>
</head>
<body>
<FORM NAME=”menufrm”>
<INPUT type=”text” NAME=”menu1″>Name
<P>
<INPUT TYPE=”button” VALUE=”Select” onClick=”combineMenus(this.form, this.form.menu1)”>
</FORM>
</body>
</html>