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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:12:21+00:00 2026-05-11T10:12:21+00:00

I want to create a functionality similar to what www.redfin.com has on their search

  • 0

I want to create a functionality similar to what http://www.redfin.com has on their search page. A search form is opened as a user clicks in the text box.

I am using MVC and jQuery but am not sure how to go about it. I tried using the Dialog plugin but for some reason the dialog only opens once.

<input id='txtSearch' type='text' /> <div id='searchForm' title='Dialog Title'>I am a dialog</div>  $('#txtSearch').click(function() {     // Show form     $('#searchForm').dialog(); }); 

However, in a regular web site the dialog does not even open.

$('#txtSearch').click(function() {         // Show form         $('#searchForm').dialog();     }); 

Using focus or click seem to have the same effect. The dialog only opens once. When I close it and click in the text box again there is no dialog.

Am I using the right approach to accomplish this task? Are there any samples? Suggestions welcome.

The dialog might not be best choice, since it creates the title. I was wondering what else I can use since I will also want to post the form via ajax and display results on the same page.

Thanks

  • 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. 2026-05-11T10:12:22+00:00Added an answer on May 11, 2026 at 10:12 am

    and you want to make sure you are wrapping the event binding in a document ready script (you may already be doing this, but i’m just pointing it out because it wasn’t in your sample code, just in case)

    $(document).ready(function() {     $('#txtSearch').click(function() {         // Show form         $('#searchForm').dialog();     }); }); 

    EDIT

    $(‘#searchForm’).dialog(); only registers the dialog to the search form I think

    I think you may need to call a dialog show() and hide() to get it to appear and disappear. I have used the jqModal before and had to do it this way

    $(document).ready(function() {     $('#searchForm').jqm({modal: true}); //register this div as a modal      $('#txtSearch').click(function() {         // Show form         $('#searchForm').jqmShow(); //show div     }); }); 

    later on, to close the modal, you call

    $('#searchForm').jqmHide(); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create functionality similar to the site downforeveryoneorjustme.com. They use a pretty
I want a create a custom/user control that has children. For Example, I want
Magento 1.6+ creates an Orders and Returns page (www.yourstore.com/sales/guest/form/) and places a link to
Basically, I want this sort of functionality but less complicated: http://www.blueacorn.com/team/ I have a
I want to create a drawer functionality, similar to the Facebook app, with two
I want to create a simple login functionality in WP7 app using remote MySQL
i want create multiple search where statement $where_search is a multiple condition from post
I want create wordpress website into which I want create user management... That means
I want functionality similar to the below: typedef int A; typedef int B; struct
I want to implement functionality similar to Fiddler. I have tried 2 solutions: HttpListener

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.