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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:51:40+00:00 2026-05-12T09:51:40+00:00

i have a html link that i want to popup a dialog box with

  • 0

i have a html link that i want to popup a dialog box with a list of user names and checkboxes. the user can then select one or more checkboxes and click OK and that information will be passed back to the main GUI. is this possible using jquery or should i be using another technology?

  • 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-12T09:51:40+00:00Added an answer on May 12, 2026 at 9:51 am

    No jQuery is the perfect tool for this.

    All you need to do is post back to your ActionResult in your controller, return your data [or even better partial view] and display it on the page.

    If you want example code then let me know and I’ll post some.

    But essentially you need to do a $.post("/controller/action", {arg1:val1, arg2:val2}, function(retHtml){ code to show data });

    In your controller something like this;

    public ActionResult action(string arg1, string arg2)
    {
      //Do guff
      return PartialView("MyPartialView", FormViewModel);
    }
    

    If you need the sample explained then let me know in a comment.

    EDIT:

    The code I gave is actually reasonably complete but let’s flesh it out somewhat and make it simple. There are better ways of doing this but this is easy and readable if you are new to jQuery.

    Let’s start with the View;

    You have say a button thus:

    <input id="submitBtn" name="submitBtn" type="submit" onclick="postComment(<%=Model.Id %>); return false;" value="Submit" />
    

    Then you have the jQuery code to post back like so;

    function postComment(id) {
            var commentText = jQuery.trim($("#textbox_ + id.toString()).val());
            $.post("/Articles/jQueryAddComment", { commentText: commentText, id: id, }, function(newCommentListHTML) {
                AddCommentReturn(id, commentType, newCommentListHTML);
            });
        }
    

    What the code above is doing is simply grabbing the comment text from say a field and posting back to my controller action of jQueryAddComment and passing in a few variables.

    In my controller I now have;

    public ActionResult jQueryAddComment(string commentText, int id)
    {
      //code here to add the new comment to the database.
    
      //more code to get the new list of comments from the database and into a model
    
      //code to return a partial view back to the view itself
      return PartialView("CommentList", fvm);
    
    }
    

    The callback in the above jQuery code calls a normal Javascript function to take the returned HTML and display it on the page.

    In you case you would show a Div with the HTML in it and provide click events to it so the user can interact with it.

    Is this any clearer?

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

Sidebar

Related Questions

I have a html response message that I want to add a link to.
I have a html link structure like that <a href=dynamicURL>LinkName</a> . I want to
I have a web page that also has a popup where the user can
I have an html page. On that page I want to open popup window.
If you have a regular link in HTML, you can get the value of
I have an html link that has uses hover() (well, the hoverIntent plugin...but same
I have HTML code in the jsp page that I want it to be
I have a link that I want users to press and it will go
I have an html that has a link: <a id=myLink href=/aa.html title=New Bangoo class=bangoo>Bangoo</a>
I have a while loop that shows the results from a select query. Then

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.