Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 236401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:20:32+00:00 2026-05-11T20:20:32+00:00

I have a question about how to collaborate auto complete with UI dialog: There

  • 0

I have a question about how to collaborate auto complete with UI dialog:

  1. There is an input text which enables autocomplete (the data is not a simple string array, so it needs to be parsed). This job is well done:

    <input type="text" id="styleno" name="styleno" >
    
    $("#styleno").autocomplete("${suggest}", {
                    parse:function(raw){
                 var parsed = [];
                 for (var i=0; i < raw.model.length; i++) {    
    
                    var row = raw.model[i];
                    parsed.push({
                        data: row,
                       value: row,
                      result: row.styleNo
                    });
                 }
                 return parsed;
    
            },
            formatMatch: function(row, i, max) {
                     return row.styleNo;
                    },
                    formatItem: function(data, i, n, value) {
                    //
    
                            return  data.id+data.styleNo;
                    }
            });
    
  2. When a result is selected from the suggested list, I want to open a dialog, populate somethings from the parsed the result. So I use the “result” function:

    $("#styleno").result(function(data,values){
            $('#itemDiv').dialog('open');
    }
    

    The dialog is opened, but the focus is kept on the auto suggested input field (<input type="text" id="styleno" name="styleno" >). So I use this code:

    $("#styleno").trigger("unautocomplete");
    

    Now the dialog is fine, but the input field lost its autosuggestion capability.

What shall I do? According to the selected item from suggestion list, then pop up a dialog with some input field. After user fills the field in the dialog, close it, get back to auto suggested field still use the auto suggestion function.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:20:32+00:00Added an answer on May 11, 2026 at 8:20 pm

    Not 100% sure it works like this, but you might try the following:

    $("#styleno").blur();
    

    Sounds like the event you are looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have question about interpreting strings as packed binary data in C++. In python,
i have question about YAJLiOS parser... I have next json data : {{ body
I have a question about SqlDataReader: Is there some way to modificated the values
I have question about my code which does the Hoare Partition Method. Here is
Hello I have question about android spinner I have spinner which is populated by
Hello I have question about android spinner I have spinner which is populated by
i have question about finding maximum x or y-value in text file. This is
I have question about grouping data into specific categories. Generally, if I have a
I have question about parsing a specific json string. I didn't find anything which
I have question about parsing in Html helper : I have sth like: @foreach

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.