www.webdeveloper.com
Results 1 to 2 of 2

Thread: Issue with Listbox data refresh

Hybrid View

  1. #1
    Join Date
    Dec 2013
    Posts
    1

    Issue with Listbox data refresh

    Hi,
    Need some help with following JAVA Script
    I am facing issue with Listbox refresh.

    <script type="text/ng-template" id="editEMPID.html">
    <div style="padding: 10px;">
    <div style="display: inline-block; width: 99%;padding: 5px 0px;text-align: right;">
    <input type="button" name="X" class="close" ng-click="cancel()">
    </div>
    <p class="msg error" ng-show="errorsOccur">
    {{ errorMessages }}
    </p>
    <h1 class="popupAddHeading">Change EMPID</h1>
    <table border="0" cellspacing="0" cellpadding="0" class="popup-table">
    <tbody>
    <tr>
    <td>EMP ID : </td>
    <td align="left">
    <select class="selectBox" style="width: 250px;" ng-change="empidChanged()"
    ng-model="model.selectedEmpid"
    ng-options="empid.empid for empid in empids"></select>
    </td>
    </tr>
    <tr>
    <td>Name : </td>
    <td align="left">
    <select class="selectBox" style="width: 250px;" ng-change="NameChanged()"
    ng-model="model.selectedName"
    ng-options="name.name group by names.name for name in names"></select>
    </td>
    </tr>
    <tr>
    <td>Company : </td>
    <td align="left">
    <select class="selectBox" style="width: 250px;" ng-change="companyChanged()"
    ng-model="model.selectedCompany"
    ng-options="company.COMPANY for company in companies"></select>
    </td>
    </tr>
    <tr>
    <td colspan="2" align="center" valign="top">
    <input type="button" value="Save" class="buttonClass" ng-click="save()" />
    </td>
    </tr>
    </tbody>
    </table>
    </div>
    </script>


    - Application is running in IE8
    - 2nd listbox (NAME) is not getting refreshed properly - it retains the value from prior selection.

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles