SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After putting a small script together and pasting it into the Content Editor Web part all my breakpoints show the following warning in IE 8's debugger: "The breakpoint is not valid. No executable code is associated with this line".

I realize that the CEWP is not the most ideal environment for executing JavaScript. Generally linked files are better however this same issue has occurred even when I have linked the CEWP to a script file. The script is as follows:

<script language="javascript" src="/code_lib/excanvas.js" type="text/javascript"></script>
<script type="text/javascript"> if (!window.console) console = {log: function() {}}; </script>
<script language="javascript" src="/code_lib/jquery-1.7.2.js" type="text/javascript"></script>
<script language="javascript" src="/code_lib/jquery.jqplot.min.js" type="text/javascript"></script>
<script language="javascript" src="/code_lib/plugins/jqplot.barRenderer.min.js" type="text/javascript"></script>
<script language="javascript" src="/code_lib/plugins/jqplot.categoryAxisRenderer.min.js" type="text/javascript"></script>
<script language="javascript" src="/code_lib/plugins/jqplot.pointLabels.min.js" type="text/javascript"></script>
<link href="/code_lib/jquery.jqplot.css" rel="stylesheet" type="text/css"/>
<script language="javascript" src="/code_lib/json2.js" type="text/javascript"></script><script language="javascript" type="text/javascript">

var stringURL = 

$.getJSON(stringURL, function(data){
        $(data).find("z\\:row").each(function(i, result) {
            quantityOneArray[i] = parseFloat($(this).attr("ows_Quantity"));


It's possible that I messed up the syntax in my code or made another obvious error.

I am linking in many JavaScript libraries to ultimately create a chart with the pulled JSON data. This script is designed to run in IE7 hence the JSON2 call and the console script in the head.

share|improve this question
up vote 2 down vote accepted

you need to place quotes around the url and a semicolon: var stringURL = "";

share|improve this answer
That solved it! Thanks! – Shrout1 Aug 27 '12 at 17:28
Any advice on a good IDE to develop JavaScript in? I find I constantly make simple mistakes like this because I am using NotePad++. It's a great tool, but it doesn't catch syntax errors as I make them. It may be that I'm green, but visual web developer 2010 doesn't seem to work very well and I can't quite understand how to make a simple script in Eclipse without creating some monstrous new project. – Shrout1 Aug 27 '12 at 17:30
Generally I just use visual studio, that catches some stuff, but usually I just try to be careful and use chrome when doing javascript stuff. In Chrome the javascript errors are much more useful and you can edit actively. – Sam Sussman Aug 27 '12 at 17:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.