Rachel Posted March 5, 2011 Share Posted March 5, 2011 i have a function that im trying to get. it looks like its refreshing rather than sending data to the next page. im very new to java so dobt no what im looking for. the code looks ok to me. thanks for any help function change() { var selectedList = getSelectedList('Change Layout'); if (selectedList) { if (confirm('Do you want to not display the seat/s ' + selectedList + '?')) { document.forms[0].newDisplayCode.value=N; document.forms[0].action='layout.php?table=<?php echo $table; ?>&seat=<?php echo $seat; ?>'; document.forms[0].submit(); } else { clearSelection(); } } } php side is <input type='button' value='Change Display' onclick='change()'/> Quote Link to comment Share on other sites More sharing options...
trq Posted March 5, 2011 Share Posted March 5, 2011 Sorry, what is the problem? Quote Link to comment Share on other sites More sharing options...
Rachel Posted March 5, 2011 Author Share Posted March 5, 2011 ffs. was thinking about the code and i forgot the question. looks like the code is refreshing to itself rather than going to the page required. all its doing is asking for confirmation (button) then does nothing 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.