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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:36:21+00:00 2026-06-18T10:36:21+00:00

I am getting an error message on IE8 & IE7 when calling .dialog(). The

  • 0

I am getting an error message on IE8 & IE7 when calling .dialog().

The error message I am getting from IE console is:

SCRIPT438: Object doesn’t support this property or method.

jquery-1.7.2.min.js, line 2 character 21784

Here is my code:

// Add to cart button clicked
$tablePanel.on('click', '.AddToCartButton', function (e) {
    $('#mdlPopup_backgroundElement').show();


var optionId = +e.target.getAttribute('optionid');       
var categoryId = +e.target.getAttribute('categoryid');       
// Get the product shoptCityId from previous <tr>       
var $baseProdTr = $(e.target).closest('td.info_row').parent().prev();       
var shopCityId = +$baseProdTr.attr('shopcityid');


// For Dev!
if (isNaN(shopCityId)) {        
    alert('Error:\nFailed to get the shopCityId value from the base product <tr>');
    return;           
}

// Close the product <tr> in the table
oTable.fnClose($baseProdTr[0]);

var shopDisplay = $baseProdTr.find('b.shopDisplay').text();

$.post(urlAddToCart, { productOptionId: optionId, shopCityId: shopCityId, shopDisplay: shopDisplay, categoryId: categoryId }, function (result) {
    
    if (result === 'EmptyView') {
        updateCartItemsCount();
      
        $('#mdlPopup_backgroundElement').hide();
        return;
    }
   
    var $input = $(result).filter('#hdnModalProps');           
    var className = $input.attr('classval');           
    var width = $input.attr('widthval');         
    var height = $input.attr('heightval');

    // --------- the error occurred here:  ------------------
        $modalDialog = $(result).dialog({ modal: true, draggable: false, resizable: false, width: width,
            dialogClass: className + 'noTitleDialog'
        });
                
              
    $('#mdlPopup_backgroundElement').hide();
   
});

});

I am using: jquery-ui-1.8.11.min.js

You can see this live here:

http://2send.co.il/Products/%D7%A2%D7%A4%D7%95%D7%9C%D7%94/%D7%A2%D7%A6%D7%99%D7%A6%D7%99%D7%9D

  1. Click on the photo.
  2. Click on the pink button

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. Editorial Team
    Editorial Team
    2026-06-18T10:36:23+00:00Added an answer on June 18, 2026 at 10:36 am

    Dialog content is coming with \r\n from server, IE8 don’t parse those \r\n and to make DOM elements. so in js, I have added code to remove \r\n from content.

    result = result.replace(/\r\n/g, ”).replace(/\s+/g, ‘ ‘);

    $modalDialog = $(result).dialog({modal: true, draggable: false, resizable: false, width: width, height: height,
    dialogClass: className + ‘ noTitleDialog’
    });

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

Sidebar

Related Questions

I'm getting the error message when running the following code from a C# console
I am getting error message from my MSBuild: "nunit-console.exe" exited with code -100. Where
Am getting this error message and matched my brackets and couldn't find anything wrong.
Am getting following error message on calling WCF service: The formatter threw an exception
I'm getting this error message whiile running a Webservice I'm working on. it builds,
I'm getting this error message with the code below: class Money { public: Money(float
With jquery.mobile-1.0rc1 ; getting error while working in simple dialog- error-message in Chrome- Uncaught
I'm getting this error in IE8. Has anyone seen this before? Webpage error details:
I'm getting this error in IE8: Page Error details User Agent: Mozilla/4.0 (compatible; MSIE
I am getting an annoying error only in IE7 and IE8's compatibility mode. FireFox

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.