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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:54:36+00:00 2026-05-20T03:54:36+00:00

We are developing an application in ASP.Net MVC 3 using jQuery UI Dialog. This

  • 0

We are developing an application in ASP.Net MVC 3 using jQuery UI Dialog.

This is our generic dialog code:

var $loading = $('<img src="' + srcLoadingImage + '" alt="loading">');

$(aElement).each(function () {
    var $dialog = $(divTarget)
            .append($loading.clone());

    var $link = $(this).click(function () {
        $dialog
                    .load($link.attr('href'))
                    .dialog({
                        modal: true,
                        title: $link.attr('title'),
                        width: 350,
                        height: 240
                    });

        $link.click(function () {
            $dialog.dialog('open');

            return false;
        });

        return false;
    });
});

which we call like so..

$(document).ready(function () {
    RTC.Utils.aDialog('#selectAccount', '<div class="span-9"></div>', '@Url.Content("~/Content/images/loading.gif")');
});

The problem we are running into is that in Firefox everything works great.. but in IE7 the controller is only ever called the first time you access it. After that it seems to be using the original version.

Do you need to manually destroy the dialog for IE7 to work properly? Any pointers on how I’d do so?

— UPDATE —

We removed the One() as per ammura’s suggestion but we still have the same problem.

We have also tried adding close: function(ev, ui) { $(this).dialog(“destroy”); } after the height in dialog({ but with no effect.

Thanks,

Shane

  • 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-20T03:54:36+00:00Added an answer on May 20, 2026 at 3:54 am

    You can tell jquery to not cache ajax requests, as James H’s answer shows. I’ve never been a fan of this as jquery will append a meaningless argument to the GET request. It feels hackish and possibly even bug prone to me.

    I have found that adding [OutputCache(Duration=0)] to the action in question works for me. It forces a true GET for each AJAX call. In my case I never want this call to ever be cached, as the data changes often.

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

Sidebar

Related Questions

I am developing an application using Asp.net mvc and jquery. I'd like to use
I'm developing a web application using ASP .NET MVC 1.0 and jQuery (including the
I'm developing an web application using asp.net MVC and jQuery. I have in my
I'm developing a web app in asp.net mvc using jquery, the language of application
I am developing a web application using asp.net mvc... I am listing out the
I'm developing an web application using asp.net mvc, and i need to do a
I am developing an asp.net mvc web application that makes much use of jquery
I'm developing an application using asp.net mvc, NHibernate and DDD. I have a service
I am developing my first web application using ASP.Net MVC, and I am in
I am developing an ASP.NET MVC 3 application using EF 4 and POCOs. One

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.