gmark Posted March 7, 2011 Share Posted March 7, 2011 The option chosen in my form disappears -- both the initial default and the option chosen are no longer visible after the value is chosen. I use an ajax call to refresh the page, if that's any clue. Perhaps there's a way I can save the value and write to the drop-down field or something? Mark Quote Link to comment https://forums.phpfreaks.com/topic/229922-option-chosen-disappears/ Share on other sites More sharing options...
cunoodle2 Posted March 7, 2011 Share Posted March 7, 2011 Without we cannot help. Post your code Quote Link to comment https://forums.phpfreaks.com/topic/229922-option-chosen-disappears/#findComment-1184250 Share on other sites More sharing options...
gmark Posted March 8, 2011 Author Share Posted March 8, 2011 I also need to move the drop-down option list to the right, abutted against the other list at the end of the line. CALLING FUNCTION: /** * Constructor of the Note class. */ function __construct($company_id = -1, $user_id = -1) { $this->company_id = ($company_id == -1) ? (int) $_SESSION['USER']['COMPANYID'] : (int) $company_id; $this->user_id = ($user_id == -1) ? (int) $_SESSION['USER']['USERID'] : (int) $user_id; if(isset($_POST['RecordsPerPage'])) { /* Set the number of Recors shows in the page. */ $this->pageRecords = $_POST['RecordsPerPage']; } else { $this->pageRecords = 5; } FORM CODE: <script type="text/javascript" src="http://localhost/test.js"></script> <div id="noteDiv" class='clsSucc' width="100%" align="right" style="display:none;"> </div> <form id="Contactpp" method="post"> <input type="hidden" name="action" value="contact" /> <input type="hidden" name="contactId" value="176" /> <select onchange="java script:form.submit();" action="__construct($company_id = -1, $user_id = -1)?RecordsPerPage=5" name="Re cordsPerPage" id="RecordsPerPage" > {html_options output=$module->records_per_page values=$module->records_per_page selected=$module->search.records_per_page} <option value=5>5</option> <option value=10>10</option> <option value=25>25</option> <option value=50>50</option> <option value=100>100</option> </select> </form> Records per page {include file="snippet_note_list.tpl"} </div> Quote Link to comment https://forums.phpfreaks.com/topic/229922-option-chosen-disappears/#findComment-1184347 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.