You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use html_data to dynamically retrieve child nodes as parents are opened, this works fine, however, when I want to return NOTHING, I ran in to the following, which seems like a bug to me:
html_data: {
...
ajax: {
...
success: function (data) {
...
if ($('#someid', data).length==0) return;
This causes all sorts of mayhem (in my case infinite reloading of the ajax call), I found out that by returning ' ' (i.e. any number of spaces), it behaves as expected. I'd expect this to also work if null or undefined or '' is returned.
The text was updated successfully, but these errors were encountered:
This is because many people do not modify the returned data, and just use the success function for some other logic. If null values are treated as nothing to load this would break a lot of code out there (it simply means - use the same code that the server returned, I do not want to modify).
So just return an empty string with a space. I will think of a workaround for the next version.
Version: 1.0-rc3
When I use html_data to dynamically retrieve child nodes as parents are opened, this works fine, however, when I want to return NOTHING, I ran in to the following, which seems like a bug to me:
This causes all sorts of mayhem (in my case infinite reloading of the ajax call), I found out that by returning ' ' (i.e. any number of spaces), it behaves as expected. I'd expect this to also work if null or undefined or '' is returned.
The text was updated successfully, but these errors were encountered: