ajax-chosen icon indicating copy to clipboard operation
ajax-chosen copied to clipboard

Simple AJAX call freezes browser

Open performancewanted opened this issue 12 years ago • 3 comments

Using jQuery 1.6.4, this causes an infinite loop somewhere deep inside jQuery and eventually gets terminated by the browser (Firefox). This is very simple data retrieval of only a few items, so I'm surprised this plugin is broken. I'm using the latest zipball Chosen and the latest zipball of this project. Chosen worked fine by itself (but sluggishly) so I was looking for possible AJAX solutions. This seemed like it would fit the bill perfectly but it unfortunately freezes. Firebug confirms that valid JSON data is being returned from the server. I followed the example demo you provided pretty closely.

performancewanted avatar Apr 13 '12 00:04 performancewanted

I'll look into it, but if you're looking for something more robust, I would check out select2.

meltingice avatar Apr 13 '12 00:04 meltingice

select2 looks really nice. (The AJAX example has photos - woot!). I'll try that. Thanks.

performancewanted avatar Apr 13 '12 16:04 performancewanted

Can select2 do multiple selects through ajax?

I have a element (only <input type="hidden" ..>. In that regard select2 is better.

However, I am running into a lot of weird issues with ajax-chosen on the ipad. Most of it is due to the fact list:updated clears the field so the cursor would jump back and forth when you type. Is there a more efficient way to update the list so we don't have this problem on the ipad?

Either solution works: a fix that would allow it to work well with iPad or a good workaround with select2.

Thanks!

perryzheng avatar Jun 06 '12 22:06 perryzheng