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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:41:59+00:00 2026-05-22T21:41:59+00:00

I found this excellent plugin for ajax pop up for MVC called SimleModal, but

  • 0

I found this excellent plugin for ajax pop up for MVC called SimleModal, but am not able to get it to work. http://www.ericmmartin.com/projects/simplemodal/ is the website.

I want to use this plugin to pop up a view (in MVC) when a link is clicked on. Can any one show me the right direction here.. thank you..sample pseudo code?

  • 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-22T21:42:00+00:00Added an answer on May 22, 2026 at 9:42 pm

    Why not just use the built in jQuery-ui? Simply call $(‘#someDiv’).Dialog(…) to make it work. Then you can use the jQuery theme roller site as well to customize your look – and you are dealing with ‘base line’ jQuery code.

    To keep the same example syntax like Darrin added above for ease of comparison see below.

    Configure your widget options and download them (you can choose from a whole lot of widgets – just the dialog if youd like or others
    Do this at: http://jqueryui.com/download

    Make sure you reference the css file, jquery, and the jquery ui. Download the jQuery ui and put the /images folder into your /content folder as well as the css file.

    Ensure you are linking in the files (I chose google for the second file – you can choose your own local if you’d like)

    
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.0/jquery-ui.min.js"></script>
    <link href="@Url.Content("~/Content/jquery-ui-1.8.13.custom.css")" rel="stylesheet" type="text/css" />
    
    

    calling it is as simple as:

    
    <div id="result">bipbip</div>
    <script type="text/javascript">
        $(document).ready(function () {
        //initialize the dialog
            $("#result").dialog({ width: 400, resizable: false, position: 'center', title: 'My Dialog', autoOpen: false,
             buttons: { "Ok": function() { $(this).dialog("close"); } } 
             });
        });
    
        $(function () {
            $('#modal').click(function () {
                //load the content from this.href, then turn it into a dialog.
    
                $('#result').load(this.href).dialog('open');
                return false;
            });
        });
    </script>
    
    @Html.ActionLink("show modal", "Index2", null, new { id = "modal" })
    
    

    For more details on the dialog see: http://docs.jquery.com/UI/Dialog

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

Sidebar

Related Questions

I found this PECL package called threads , but there is not a release
I found this link http://artis.imag.fr/~Xavier.Decoret/resources/glsl-mode/ , but there isn't a lot of description around
I found this: http://www.evolt.org/failover-database-connection-with-php-mysql and similar examples. But is there a better way? I
I found this in an article on Multithreaded Apartments, but can’t find a definition
I found this via google: http://www.mvps.org/access/api/api0008.htm '******************** Code Start ************************** ' This code was
I found this page describing the Muenchian method, but I think I'm applying it
I found this article: http://www.deluxeblogtips.com/2010/05/editor-style-wordpress-30.html I created a child theme using the Twentyten theme
I found this test http://jsbin.com/ekofa/2 that shows that HTML5 data-XXX is faster then jQuery
I found this similar question here , but this is really old. Was it
I've found this excellent question / answer on how localize a string with the

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.