A few minor issues with AJAX and their resolution

Problem 1

Trying to debug a Javascript file from the Visual Studio IDE, if you try to open it from the Script Explorer, it doesn't open

Solution

Try to open another script and then go back to the original one and it will open.

Problem 2

Cannot set a breakpoint on inline Javascript in the Visual Studio IDE, get: This is not a valid location for a breakpoint.

Solution

Have to move the function into a linked js file.

Problem 3

.js files being cached

Solution

Set Check for newer versions of stored pages to Every visit to the page instead of the default of Automatically found under Browing History by clicking on the Settings button in Internet Options of IE.  Also check Empty Temporary Internet Files folder when browser is closed on the Advanced tab under Security.

Problem 4

Javascript function with the same name as a control on the page.  Will get error: Object doesn't support this property or method.

Solution

Make sure the names aren't the same.

Problem 5

Scoping of objects in Javascript, if not explicitly declared, is a global

Solution

Be sure to declare objects, var x = 0;