c# - jquery ajax when again post clear data -


i have 2 script apart schedule.

 var kisi; $('#detaildatepickerend').datepicker({     dateformat: 'dd mm yy',     defaultdate: "+1w",     changemonth: true,     onselect: function (selecteddate) {         var dt = $("#detaildatepickerend").val();         $("#loadingimage").show();         var resultid = $('#resultid').val();         var datebegin = $('#detaildatepicker').val();         var price=$('#detailrates option:first').val();         var result = $('#detailmaxguest option:selected').val();         if (result != "select one") {             kisi= parseint(result);         } else {             kisi = null;         }         $.ajax({             url: '/product/getreservation',             type: 'get',             data: { 'lastdate': dt,'kisi':kisi,'resultid':resultid,'datebegin':datebegin,'price':price },             contenttype: 'application/json; charset=utf-8',             datatype: 'json',             success: function(data) {                 if (data.error) {                     $("#loadingimage").hide();                     $('#reservation-result').empty();                     $('#reservation-result').html(data.msg).fadein(2000);                     $('#btn_reservation').hide();                     $('#btn_liste').show();                 } if(data.success) {                     $("#loadingimage").hide();                     $('#reservation-result').empty();                     $('#reservation-result').show();                     if (kisi != null) {                         $('#pricedetails').show();                     } else {                         $('#pricedetails').hide();                     }                     $('#lbltotalprice').html(data.toplam).fadein(2000);                     $('#lbldeposit').html(data.deposit).fadein(2000);                     $('#lbltotal').html(data.totalsum).fadein(2000);                     $('#btn_reservation').show();                     $('#btn_liste').hide();                   }             },         });      }  }); $('#detailmaxguest').change(function () {      var result = $('#detailmaxguest option:selected').val();     $('#detailmaxguest option:selected').val(result).attr('selected', 'selected');     var resultparse = parseint(result);     var resultid = $('#resultid').val();     var datebegin = $('#detaildatepicker').val();     var dateend=$('#detaildatepickerend').val();     var price=$('#detailrates option:first').val();      var message = {         'resultid':resultid,          'data':resultparse,         'datebegin':datebegin,         'dateend':dateend,         'price':price     };     $("#loadingimage").show();     $.ajax({          type: 'get',         url: '/product/getmaxguest',         data: message,         datatype: 'json',         success: function (data) {             if (data.error) {                  $("#loadingimage").hide();                 $('#reservation-result').html(data.msg).fadein(2000);                 $('#btn_reservation').hide();                 $('#btn_liste').show();             } if(data.success) {                 $("#loadingimage").hide();                 $('#reservation-result').html(data.msg).fadein(1000);                 $('#pricedetails').show();                 $('#lbltotalprice').html(data.toplam).fadein(2000);                 $('#lbldeposit').html(data.deposit).fadein(2000);                 $('#lbltotal').html(data.totalsum).fadein(2000);                 $('#btn_reservation').show();                 $('#btn_liste').hide();              }         }      });  }); 

detaildatepicekerend no problem. check reservation , return results. when click detailmaxguest ı cant see result on page.... page html code below;

<div id="reservation-result" style="width: 100%; height: 80px; display: inline-block; text-align: left; font-size:12px; font-weight: bold; color:brown;">                                 <table id="pricedetails" style="display: none;">                                     <tr>                                         <td style="width: 75%;">toplam fiyat</td>                                         <td style="width: 25%; text-align: right;"><div id="totalprice">@html.label("lbltotalprice",new{id="lbltotalprice", name="totalprice"})</div></td>                                      </tr>                                     <tr>                                         <td>depozito</td>                                         <td style="width: 25%; text-align: right;">                                             <div id="deposit">@html.label("deposit",new{id="lbldeposit", name="deposit"})</div>                                         </td>                                     </tr>                                     <tr>                                         <td>genel toplam</td>                                         <td style="width: 25%; text-align: right;">                                             <div id="total">@html.label("total",new{id="lbltotal", name="grandtotal"})</div>                                         </td>                                     </tr>                                 </table>                                 <div id="loadingimage" style="display: none;">                                     <img src="@url.content("~/content/images/prettyphoto/dark_rounded/loader.gif")" alt="loading"/>                                 </div>                             </div> 

how can show result???? lot.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -