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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:35:30+00:00 2026-05-28T06:35:30+00:00

I am doing a part in my application requiring a HTML block to be

  • 0

I am doing a part in my application requiring a HTML block to be loaded in function of a valueCell.

My code is working but JQuery is not doing its job, the tabs are not displayed. I can read the “Hello world” and the tab name but I don’t have the tab layout.

Moreover, I can add that, if I remove the use of Wiring UI (just by using displayFormOK instead of displayForm in the html page), it works perfectly well.

Here is my code:

snippet:

object Menu {

  val searchType = ValueCell[Option[SearchType]](Some(Type1))
  //I removed some stuff to update the cell

  def displayForm = {
    WiringUI.apply(searchType)(displayFormAjax)
  }

  def displayFormOK ={
    displayFormAjax(searchType.get)(NodeSeq.Empty)
  }

  def displayFormAjax(sType: Option[SearchType])(n:NodeSeq):NodeSeq =
   {sType match{
      case None => <h3> Error on type </h3>
      case Some(x) => {x.displayForm}
   }}
}

Here is my trait representing the object selected

trait SearchType {
  val name:String
  def displayForm:NodeSeq = {
    <div id="tabs">
      <ul>
        <a href={"#"+name}> {name} </a></li>)}
      </ul> ++
      <div id={name}>Hello World </div> 
    </div>
  )}
}

The code in the trait is more complex, in fact I want to generate an arbitrary number of tabs.

Finally here is my html code

<script>
    $(function() {
        $( "#tabs" ).tabs();
    });
</script>

<form class="lift:form.ajax">        
    <div class="lift:Menu.displayForm"></div>
</form>
  • 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-28T06:35:30+00:00Added an answer on May 28, 2026 at 6:35 am

    I found the solution to my problem. In fact, as I added some html blocks after “Loading” the script, it was not applied to my block. So, I had to call the script each time WiringUI was used. Here is my solution:

    def displayForm = {
      def cmdG(id: String, first: Boolean, setCmd: JsCmd) = new JsCmd{
        def toJsCmd = setCmd.toJsCmd + "; $(\"#tabs\").tabs();"
      }
    
      WiringUI.apply(searchType,cmdG _)(displayFormAjax)
    }
    

    Obviously I removed the script from my html file.

    Note: I also realized that this was not the best solution I had in my code and I will now use this JsCmd feature to disable the tabs I don’t want to use.

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

Sidebar

Related Questions

I'm currently doing the following as part of my iPhone application NSArray *paths =
Doing odd/even styling with jQuery is pretty easy: $(function() { $(.oddeven tbody tr:odd).addClass(odd); $(.oddeven
I'm working on a quite big application that is in charge of doing real-time
i'm doing an application with ajax using jQuery and some other tools, and in
I'm working on a WPF application that displays video clips as part of the
I have an MVC3 application doing AJAX edit of a grid line using JQUERY
I was recently doing an application in android and at some part I got
It's part of an information retrieval thing I'm doing for school. The plan is
I'm doing a proof of concept app in SL4 using MEF and as part
I want to get started doing some game development using Microsoft's XNA. Part of

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.