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)'>"; ?> Link to comment https://forums.phpfreaks.com/topic/158012-ajax-param/ 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"... Link to comment https://forums.phpfreaks.com/topic/158012-ajax-param/#findComment-833498 Share on other sites More sharing options...
ohdang888 Posted May 14, 2009 Share Posted May 14, 2009 its window.location, not self.location Link to comment https://forums.phpfreaks.com/topic/158012-ajax-param/#findComment-834109 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 ; Link to comment https://forums.phpfreaks.com/topic/158012-ajax-param/#findComment-834426 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.