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

The Archive Base Latest Questions

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

My problem is happening when I use some attributes in I have the following

  • 0

My problem is happening when I use some attributes in

I have the following error displayed on my webpage:

error on line 146 at column 80: AttValue: " or ' expected

Here is the corresponding line:

try{jQuery("#F114215951950RGX25X").each(function(i) {this.innerHTML = "<span id=\"F114215951957PA3NZS\"></span>";});} catch (e) {}

Here is the code in my snippet:

import net.liftweb.util.ValueCell
import http.SHtml
import net.liftweb.widgets.autocomplete.AutoComplete

object SearchMenu {

  /* A valueCell on which WiringUI is used */
  val wiringCell= ValueCell(true)

  /* The function called in html template */
  def display = WiringUI.apply(wiringCell)(displayAjax)

  /* The cell to be updated using autocomplete */
  val cell = ValueCell("")

  /* The function to create and display the autocomplete box */
  def displayAjax(value: Boolean)(ns:NodeSeq):NodeSeq = {
    def buildQueryName(current: String, limit: Int): Seq[String] = {
      if (current.length == 0) Nil
      else (1 to limit).map(n => current+""+n).take(limit)
    }
    AutoComplete("", buildQueryName _, cell.set _)
  }
}

Here is the code in my HTML page:

<form class="lift:form.ajax">
    <div class="lift:display"> </div>
</form>

Note: the code works if I call displayAjax(true) instead of display, that is to say, if I don’t use Wiring.

Note: I think the problem might come from the fact that autocomplete uses a script that is not loaded when using Wiring UI.

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

    It seems like I found 2 bugs in lift for the autocomplete widget. Here is the thread in the official lift mailing list: https://groups.google.com/forum/?fromgroups#!topic/liftweb/Zu5DBqSSW4U

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

Sidebar

Related Questions

I have following problem, Code: String a=Yeahh, I have no a idea what's happening
I have a strange problem that is only happening in a single location. I
I am having a problem that just started happening in OS 3.1. I have
I have a nested attributes form with the following and am just learning how
I am trying to replace some words from a string and use following code
I get this problem while doing some experiment with set . I use a
This problem is happening for me on IE8 and Chrome which makes me think
The problem is only happening with one file when I try to do a
I'm having a problem using UpdateModel(theModelToUpdate) causing concurrency issues. Basically whats happening is, there
Problem: I have an address field from an Access database which has been converted

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.