Framework Madness!

And other adventures C# and asp.net …

Visual Studio 2010 RC – Problem with parseInt/parseFloat when Using JavaScript Intellisense

leave a comment »

Posted on Connect, but I wanted to see if anyone else had this problem. Here’s the description:

When using a call to ‘parseInt’ or ‘parseFloat’ methods intellisense will become slow, and in the case of jQuery methods not work at all. Commenting out or removing the ‘parseInt’ and/or ‘parseFloat’ call resolves the issue.

Here is the code sample that busts:

Code Snippet
  1. /// <reference path="jquery-1.3.2-vsdoc.js" />
  2.  
  3. $(document).ready(function () {
  4.     //due to parseInt or parseFloat being called intellisense will slow or not work
  5.     //if both are commented out it will work properly, if one if called it slows or breaks
  6.  
  7.     var result1 = parseInt("10", 10);
  8.     var result2 = parseFloat("10");
  9.  
  10.  
  11.     //try using intellisense below this comment – it is very slow
  12.  
  13.  
  14.  
  15. });

If it fails for you too, then follow this link to Connect and confirm. The VS 2010 JavaScript intellisense is great, and we want to help get as many bugs stomped out before the final release.

Advertisements

Written by Lynn Eriksen

February 11, 2010 at 5:56 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: