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 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

This following code snippet works fine using jQuery1.2.3, but it doesn’t work with latest
Never thought I'd have this problem :) The following snippet of code works in
The following code is throwing the error this.element is null. However, the wid_cont is
The following code snippet works in FF but not on IE8. Prev is returning
The following code snippet gives the error message at run time of: Debug assertion
I have the following code snippet: using (SPSite site = new SPSite(this.ListAddress)) { using
From this site: http://www.toymaker.info/Games/html/vertex_shaders.html We have the following code snippet: // transformations provided by
I have this following code which will return all the current semesters. How do
Did I not get enough sleep or what? This following code var frame=document.getElementById(viewer); frame.width=100;
The following code is causing this error: if (bestLine.size() > searchDepth - depth) bestLine.erase(bestLine.begin(),

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.