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 8897237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:17:17+00:00 2026-06-15T00:17:17+00:00

error in autoComplete combo Box I think it may gets called after xmlHttprequest finishes

  • 0

error in autoComplete combo Box
I think it may gets called after xmlHttprequest finishes
please provide me a solution near a code line this $("#isUsedCombo").combobox

You will find ‘isUsedCombo’ str variable

function editGov(govID){

    var xmlHttp;
    if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
    xmlHttp.onreadystatechange = function() {
        if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
           var x1=xmlHttp.responseText.split(",");
           isUsed=x1[5]; // isUsed comboxBox Value
           var str="<table> <tr>  <td>English Name</td> <td><input type=text id=txtEnName"+x1[0]+" value=\""+x1[1]+"\"> </td> <td></td></tr>     <tr>  <td>Arabic Name</td> <td><input type=text id=txtArName"+x1[0]+" value=\""+x1[2]+"\"> </td> <td></td></tr>        <tr>  <td>EnShort Name</td> <td> <input type=text id=txtEnNameSt"+x1[0]+" value=\""+x1[3]+"\"> </td> <td></td></tr>      <tr>  <td>ArShort Name</td> <td> <input type=text id=txtArNameSt"+x1[0]+" value=\""+x1[4]+"\"> </td> <td></td></tr>      <tr>  <td>Is Used</td> <td>  <select> id=isUsedCombo> <option value=1> Once</option>  <option value=2> Multiple </option>  </select>  </td> <td> </td></tr>     <tr>  <td></td> <td> <button class=bttnGov onclick=updateGov("+x1[0]+")> Update</button> </td> <td> <button class=bttnGov onclick=updateGov('close')> Close</button> </td> </tr> </table>";      
           DiaLgFrm(str);
           
            $("#isUsedCombo").combobox({
             selected: function(event, ui) { 
                isUsed= ui.item.value;
              }
            }); 
        }
    }
    var URL = "Empty\\emptyGovt2.aspx?govID="+govID;
    xmlHttp.open("GET", URL, true);
    xmlHttp.send(); }
  • 1 1 Answer
  • 0 Views
  • 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-06-15T00:17:18+00:00Added an answer on June 15, 2026 at 12:17 am

    there is a problem with your string

    change this

     <select> id=isUsedCombo>
    

    to

     <select id=isUsedCombo>
    

    in var str=

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

Sidebar

Related Questions

Error display as Incorrect syntax near '@Cmp_DocPath', if i use comment Line code I
My autocomplete is not working and I can't spot the error. Jquery : <script>
I've implemented autocomplete on an input field, but the box does not show up
I have this error specified cast is not valid while trying to do autocomplete
SOLVED, ERROR IN THE JAVASCRIPT-FILE I'm trying to get a very simple autocomplete test
I use the jQuery Autocomplete plugin to display user info in the search box
I am using Jquery ui Autocomplete.But it show error autocomplete showing self.element.propAttr error. this
I am trying to do the text box autocomplete by using the code below,
I have a text box with autocomplete set and working perfectly fine. However when
Possible Duplicate: jquery autocomplete this.source is not a function error I have an autocomplete

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.