I'm trying to get a simple textbox and button combo to build a url and redirect the current browser window to this url. Here is what i have tried so far:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<script type="text/javascript" language="JavaScript">
function GoIntegrify(){
var obj = document.getElementById('rfcname');
alert(obj.value);
var key = obj.value;
if(key != "") {
url=" + key
document.location.href=url; //Nothing happens
window.location.replace(url); //Nothing happens
window.location.href = url; //Nothing happens
window,location = url; //Nothing happens
top.location.href = url; //Nothing happens
alert(url); //url has the correct path!!
}
}
</script>
<title>Start IT RFC</title>
</head>
<body>
<form id="form1">
Please enter the name you would like for the new Integrify request.
<br>
<input type="Text" name="rfcname" align="LEFT" size="27" maxlength="60">
<INPUT TYPE="SUBMIT" NAME="action" VALUE="Submit" onclick="javascript:GoIntegrify();"></form>
</body>
</html>
So far I get a whole lot of nothing happening. What am I doing wrong?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<script type="text/javascript" language="JavaScript">
function GoIntegrify(){
var obj = document.getElementById('rfcname');
alert(obj.value);
var key = obj.value;
if(key != "") {
url=" + key
document.location.href=url; //Nothing happens
window.location.replace(url); //Nothing happens
window.location.href = url; //Nothing happens
window,location = url; //Nothing happens
top.location.href = url; //Nothing happens
alert(url); //url has the correct path!!
}
}
</script>
<title>Start IT RFC</title>
</head>
<body>
<form id="form1">
Please enter the name you would like for the new Integrify request.
<br>
<input type="Text" name="rfcname" align="LEFT" size="27" maxlength="60">
<INPUT TYPE="SUBMIT" NAME="action" VALUE="Submit" onclick="javascript:GoIntegrify();"></form>
</body>
</html>
So far I get a whole lot of nothing happening. What am I doing wrong?