jtsage/jquery-mobile-simpledialog

Using a dialog for an ajax search list does not work

andybotting opened this issue · 1 comments

This might be an invalid issue, but I'm trying to basically create a dynamic list which can be updated via a search field.

I've got a JS fiddle here which might explain it better
http://jsfiddle.net/ubGCv/1/

I'm trying to create a dialog in which a list of items can be selected, and the result sent back to the originating page. The list will populated by an AJAX request, optionally by a search string. The look of the dialog will be basically the same as a standard JQM 'filter' demo - but encapsulated in a dialog.

What I am finding is that the list is not being update by the AJAX functions. I am using the 'inline' method of creating the dialog - and I can see everything working if the inline div display is visible on the origin page. I have a keyup and change events bound, which seem to trigger, but after the AJAX call, the ul does not receive the new li entries as it should.

Not sure if this is the intended behaviour or not.

It is not - any chance you can set up a test page somewhere? jsFiddle does not always play well with the chrome console.