Jump to content

Option Chosen Disappears!!


gmark

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/229922-option-chosen-disappears/
Share on other sites

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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.