zang8027 Posted May 13, 2009 Share Posted May 13, 2009 anyone see why this is not working? Its supposed to take whatever is entered into the input and put it in the url <SCRIPT language="JavaScript"> function reload(form) { var val=form.quan.value; self.location='towels.php?quan=' + val ; } </script> </head> <body> <? echo "Quantity: <input name='quan' type='text' onkeyup='reload(this.form)'>"; ?> Quote Link to comment Share on other sites More sharing options...
jackpf Posted May 13, 2009 Share Posted May 13, 2009 This isn't ajax. And define "not working"... Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted May 14, 2009 Share Posted May 14, 2009 its window.location, not self.location Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 14, 2009 Share Posted May 14, 2009 its window.location, not self.location They're the same except for the word. Synonyms really. It should be - self.location.href='towels.php?quan=' + val ; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.