Generic-user-small Yako 1 post

Hello !

I was coming to this group, hoping that, maybe, you could help me…

So, I’m working with the ajax-autocompleter which works great.
My aim is to redirect between an editing function for an existing
item, or a creating function for a not-found item

I insert a specific id to each

  • , and I can therefore use it for
    the editing function with an afterUpdateElement option.

    But if no results are found, the list is empty, and I can’t find any
    way to tell my afterUpdateElement script that no results were found.

    Indeed, no update is made, since there is no selection. So afterUpdateElement is useless…

    I was thinking about testing the full value sent by the ajax request.
    But I didn’t find how to grab it…

    Would you have any tricks to help me ?

    Thank you very much

  • 1 post, 1 voice