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
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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.