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

  • Home
  • SEARCH
  • 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 4058870
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:08:04+00:00 2026-05-20T15:08:04+00:00

This following code snippet works in FF, IE and Chrome. However It does not

  • 0

This following code snippet works in FF, IE and Chrome.
However It does not work in Safari 5.0.3!
Safari does not return an error message of any kind.
( Please take note that the ‘debugger;’ command for some reason never catches in any browser and the alert pop up never happens ‘alert (‘Pop up will now close’);’, however the ajax seems to work in the mentioned 3 still somehow )

$(document).ready(function(){
    // debugger; <-- This works
    $(".oscform").click(function(){
        debugger; // <-- this doesn't
        alert ('Pop up will now close');
        getCodeEZ(''+$(this).attr('lmgthing'),''+$(this).attr('ezprod'),''+$(this).attr('count'));
        $.ajax({
              url: '/shopping_cart.php?osCsid=<?php echo $osCsid; ?>',
              type: "POST",
              data: 'sort=2a&amp;ezprod='+$(this).attr('ezprod'),
              async:false,
              error: function(xhr,err){},
              success: function(data){}
           }
        )
        //closePop();
    });
// more code below
  • 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-20T15:08:04+00:00Added an answer on May 20, 2026 at 3:08 pm

    I never found out why the debugger doesn’t work in the example, However polarblau gave a good hint to use console.log(), which is very helpful and gave me insight to the issue.

    I found out that the problem for some strange reason was that another javascript did not have its closing tag on some other part of the page with an AJAX call. This was a coding issue on my part. While adding the closing tag made Safari run flawlessly, it did somehow break IE, Chrome and Firefox!
    So I changed the coding style a little bit and it fixed the rest of my issues.

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

Sidebar

Related Questions

The following code in javascript gives me the error this.callback is not a function
The following code snippet works in FF but not on IE8. Prev is returning
This following code gets this compile error: " invalid types 'int[int]' for array subscript
In the following code, g++ gives this error : 1.cpp: In member function void
I receive this Run-Time Check Failure upon the return in the following code. I
Hey guys, the following snippet of jQuery code seems to work fine in Google
I have the following snippet of code: $('input#teamName').live('blur', function() { var value = $(this).val();
Hi currently I'm trying to get following snippet of code to work: function Entry()
The following code snippet works for me: class Foo { public: template <class T>
Saw the following code snippet and I have problems to understand how it works.

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.