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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:54:52+00:00 2026-05-25T10:54:52+00:00

I am new to JQuery. I am developing a ASP.Net MVC application. In one

  • 0

I am new to JQuery. I am developing a ASP.Net MVC application. In one of the views I am trying to open a JQuery Modal Dialog.
Here is the JavaScript code for this

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript" />
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.11.js")" type="text/javascript" />
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"/>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"/>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"/>

<script type="text/javascript">
    $(document).ready(function () 
    {
        $(".openDialogLink").
        live("click", function (e) 
        {
            e.preventDefault();
            $("<div></div>").addClass("dialogBoxDiv").appendTo("body").
            dialog(
            {
                modal: true, 
                draggable: true,
                overlay: { backgroundColor: "#000000", opacity: 0.5 }, 
                title: $(this).attr("DialogTitle"),
                show: "puff",
                hide: "puff",
                closeOnEscape: true,
                close: function () 
                {
                    $(this).remove()
                },
            }
            ).load(this.href);
        });
        $(".close").
        live("click", function (e) 
        {
            e.preventDefault();
            $(this).closest(".dialog").dialog("close");
        });
    }); 

Problem is the overlay for unused area in webpage is not visible. Looks like there is some small setting I am missing.

Help Please.

  • 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-25T10:54:53+00:00Added an answer on May 25, 2026 at 10:54 am

    It seems to work fine with the background overlay.

    http://jsfiddle.net/8bwNU/

    The jQuery-ui css style sheet uses images for the jQuery stuff you’re using. Probably add the css file if you haven’t somewhere else already… You can download the components you need from here.

    <link href="../../Content/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
    

    The zip file will contain a css file, relevant images and the jQuery-ui javascript file (that you’re currently using). The css looks for some images in a folder called ‘images’, so as long as the images are in your solution in a folder called images and you’ve referenced your css, it should apply the background overlay.

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

Sidebar

Related Questions

I'm new to the jQuery and ASP.Net MVC. I'm developing a mvc application which
i´m new developing on asp.net mvc, and even newer using jquery, so this is
i'm new to asp.net.. i'm developing a web application using asp.net a jquery. i
I´m new developing on .net and using jquery. I´m trying to hide/show a dropdownlist
I'm developing a mobile application using jQuery. On Microsoft Azure, I have an Asp.Net
Very new to JQuery and MVC and webdevelopment over all. I'm now trying to
I'm new to jquery and asp.net so please forgive if this is an obvious
I am developing an asp.net MVC web app in which I am using Linq
I am developing an app in asp.net in which I have jquery code in
I am developing an ASP.net site (using .NET 4, EF, jQuery Ajax, SQL Server

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.