EasyUI Forum
September 18, 2025, 01:54:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Cancel all request made by Combobox remote mode before the last one [NOT SOLVED]  (Read 9809 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« on: December 02, 2015, 12:53:38 AM »

see this fiddle http://jsfiddle.net/nx7g756d/

If you write something fast example "12 34 56 78"
then there will be more than 3 request to the server



it will eat huge memory on server PC.  Undecided

or can i just cancel all AJAX request that combobox made except the last one?

see this autocomplete plugin https://github.com/devbridge/jQuery-Autocomplete
the plugin above they have smart system that cancell all request made before the last one so the server not be flooded by request



Thank you in advance
« Last Edit: February 03, 2016, 09:50:45 PM by aswzen » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: December 02, 2015, 01:23:27 AM »

Please try to set a bigger 'delay' value for the combobox.
Code:
<select 
        class="easyui-combobox"
        id="ITEM_ALIAS_ID"
        style="width:250px"
        data-options="
                      url:'google.com',
                      mode:'remote',
                      method:'post',
                      panelWidth:500,
                      delay:600,
                      valueField:'ITEM_ALIAS_ID',
                      textField:'ITEM_ALIAS_NAME'
                      "
        style="width:300px;">
</select>
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: December 02, 2015, 01:29:00 AM »

ok but i deal another problem

how to cancel all request made before the last request?
because if not all request will flood the server.

but thank you for the answer
« Last Edit: December 02, 2015, 03:44:15 AM by aswzen » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #3 on: January 27, 2016, 12:05:05 AM »

please consider to fix this problem in next update
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!