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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:47:26+00:00 2026-05-21T20:47:26+00:00

I want to create a search form where a user queues up items, and

  • 0

I want to create a search form where a user queues up items, and then they click a search button to see their results. The results are loaded in from a 3rd party API (through XHR), and while they’re loading I want to show a progress wheel. When the loading is done they’ll be shown the results, and they’ll be able to click a “back” button to get back to the search form (changes the view back to the original).

Note that this is all on one page. There is no actual “submit”, just a change in view to show the results. It will be possible to refresh the results view and stay on the results view because I’ll be using hashes to maintain state (like search/!#searchterms).

I’m an intermediate user of jQuery (read the docs and worked with it for about half a year now), but I’ve never done something like this and I was interested in what the best practices are. Some specific things I was wondering:

  • Should I be simply using toggle() to switch views? Or does this tend to look ebtter with some kind of animation?
  • Are there some behind the scenes “pre-loading” tricks I should be doing to save time in updating the DOM?
  • What’s the common name for using hashtags to maintain state like this? And where can I read more on doing that well with jQuery?
  • Anything else I should know..
  • 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-21T20:47:27+00:00Added an answer on May 21, 2026 at 8:47 pm

    You’re asking for basically a full featured web application. You can piece together what you want with something like

    • Ben Alman’s BBQ http://benalman.com/projects/jquery-bbq-plugin/ (for maintaining state via hashes)
    • jQuery templating https://github.com/jquery/jquery-tmpl (for … views)
    • jQuery (to handle controller like logic)

    Or you could learn something like Backbone.js or Spine.js or JavascriptMVC for added consistency.

    There are many ways of handling caching with HTTP conditional requests and client side caching in memory or local storage. I gave a talk recently on this and its viewable here:

    http://loft.bocoup.com/tim-branyen-jquery-templates/

    I’m not a particularly great speaker, but the slides and demo source is here:
    http://talks.tabdeveloper.com/Advanced_jQuery_Templates/

    Of course you could do this really basic… but I’d implore you to think more about what you’re trying to do and pick the right solutions.

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

Sidebar

Related Questions

I want to create a functionality similar to what www.redfin.com has on their search
I want to build site with a search form on LEFT and RESULTS in
I want to create a simple form with only an input textbox and search
I need to create a full-text search form for a database of emails /
I'm trying to create a custom search but getting stuck. What I want is
hi i want to create an search that uses ajax. here are the requirements
I want to create an iPhone project which search feeds, like in google reader
So I am trying to create a search that returns a bunch of results
I want to open a WPF4/EF4 form in AddNew mode so the user can
I have a button in a form which constructs a base google search url

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.