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

  • SEARCH
  • Home
  • 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 6806829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:45:30+00:00 2026-05-26T19:45:30+00:00

I am using YUI 2 autocomplete , I have my own web service which

  • 0

I am using YUI 2 autocomplete, I have my own web service which provides suggestions.
Whenever user enters ” ” (space) then suggestions were not displayed. Like if user enters “foo bar” then suggestion are displayed till “foo” but once user enters ” ” then suggestion are not displayed.
I checked the Ajax calls and observed that space is replaced by “%20“. So after space each Ajax call contains “%20” and that’s why no records are retrieved from database.
I tried setting space as delimiter.If we use space as delimiter then it will show suggestions for new term (which user typed after space). Like if you enter “foo bar” then after space it will show suggestion for “bar” while I want suggestions for complete “foo bar” term.
I want to display suggestion for complete term whatever user had typed including space.
Is there any way to handle this in YUI ?

  • 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-05-26T19:45:30+00:00Added an answer on May 26, 2026 at 7:45 pm

    Encoded URL by overriding generateRequest method and it worked 🙂

    myAutoComp.generateRequest = function(sQuery) {
        return "myProject/index.php?query=" + encodeURIComponent(sQuery);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing YUI autocomplete in my project. I have created a web service
Disclaimer: I have no experience using YUI at all. I was wondering how the
I am using YUI layout and autocomplete in the same page. The problem is
When I minify jquery using YUI compressor, it works fine. When I then add
Within the context of a web application written using the YUI library 3.4.1 it
For some reason whenever I do an async request using YUI and specify it
Using YUI, I have a div, with an attached listener that says if I
I'm using YUI as javascript framework, and can successfully react when the user changes
I am using YUI panel for dipslaying some contents on the ui which has
I have written a web app in PHP which makes use of Ajax requests

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.