Javascript alerts no longer display

Posted on 2011-05-07
Last Modified: 2012-05-11
I moved my local ASP code to a new computer, now Javascript alerts that I use for debugging no longer display. No errors seen.  Am I missing an ISS setting?
They displayed before the move, now they don’t.  However, the exact same code when run on a hosting server, when viewed in this same IE8,  from  the same machine, will display them.
Windows HmPr7; Visual Studio 1010; IIS 7.5 Classic ASP site under Default Web Site
e.g. on AnyPage.asp:
<script type="text/javascript" language="javascript"><!--
function handleReset(valFromDB) {
     alert("handleReset()" + valFromDB);
// --></script>

Question by:CedarRapids
    LVL 12

    Assisted Solution

    From the information you've given, it's difficult to tell. However, there are some things you can try.

    First of all, use Firefox for debugging your Javascript.
    Shift-Ctrl-J brings up the error console - see if there are any messages about missing functions, such as closeAllOptionBoxes()

    If this doesn't show up the problem, install the Firefox extension called Firebug - once you've used this, you won't want to manage  without it!

    Load up the page, then press F12 to open Firebug. Click on the Console tab.
    You can write messages to the console using


    Liberally insert these in your code to see if you can spot where your script is failing.

    You can also use the debugger and profiler - see for more info
    LVL 29

    Accepted Solution

    >>Visual Studio 1010

    And for goodness' sake - update your Visual studio! Software from the Dark Ages is known to be buggy ;-)

    Author Comment

    It directed me to helpful tools.
    LVL 29

    Assisted Solution


    If you put the keyword

    Open in new window

    in your code, then Firebug will open and you can step through the code, line by line, and examine variables, CSS, etc.
    LVL 29

    Expert Comment

    The strong, silent type, eh?

    No worries - glad to help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
    This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now