Top ASP.NET Items

Sponsors

Archives

Browse by Tags

All Tags » JScript (RSS)
How to compress CSS/JavaScript before publish/package
Today I saw a post on stackoverflow.com asking Using Microsoft AJAX Minifier with Visual Studio 2010 1-click publish . This is a response to that question. The Web Publishing Pipeline is pretty extensive so it is easy for us to hook in to it in order to perform operation such as these. One of those extension points, as we’ve blogged about before, is creating a .wpp.targets file. If you create a file in the same directory of your project with the name {ProjectName}.wpp.targets then that file will automatically be imported and included in the build/publish process. This makes it easy to edit your build/publish process without always having to edit the project file itself. I will use this technique to demonstrate how to compress the CSS &...
How to solve JavaScript IntelliSense problems in VS2010
VS2010 should support all of the VS2008 JavaScript functionalities as shown in Scott Guthrie’s VS2008 JavaScript IntelliSense blog .  It includes: 1. Basic type inference 2. IntelliSense from referenced external JavaScript libraries 3. IntelliSense from XML comments for functions, parameters and return types 4. Calling web services using ASP.NET AJAX   Additionally, VS2010 RTM had some improvement, including: 1. IntelliSense when manipulating browser objects 2. Dynamic generated variable IntelliSense 3. Default JavaScript snippets within IntelliSense to help you code faster Scott Guthrie has a brief blog covering some of these.   Due to the dynamic feature of our JavaScript engine, we may run info conflicts between XML commented...
VSDoc for jQuery 1.4.1 Now Available
We finished generating a new VSDoc for the latest update of jQuery. You can download it from the jQuery Downloads page . A refresher on how to use the file can be found here or here . Happy coding! Jeff King Program Manager Visual Studio Web Tools Read More...
VSDoc for jQuery 1.3.2 Now Available
jQuery 1.3 was released a little over a month ago. The 1.3 release adds exciting features such as selector performance improvements, "live events" where events can be bound to both current and future elements, and more. Version 1.3.2 was released a few days ago and fixes some bugs include one involving selector performance in IE. I just wanted to let everyone know that we now have VSDoc files for all of the 1.3 releases. You can download them from the jQuery Downloads page ... A refresher on how to use the file can be found here or here . Here's one of the new functions in action... Hope this helps! Jeff King Program Manager Visual Studio Web Tools Read More...
JScript IntelliSense FAQ
I've been reading through the 70 or so comments on our last 2 jQuery posts.  There have been a lot of great questions.  Apologies for not being able to answer them sooner (I was busy preparing for Dev Connections).  Instead of answering them inline with the comments, I'll try to paraphrase the popular issues here and answer them centrally. 1. I have a ton of Content Pages, do I need to put script references for IntelliSense in each one? No, you do not need to repeat the script references on each content page.  Visual Studio 2008 will auto-detect the presence of a master page and scan for references in that file.  Thus, placing references in the master page is all you need to do. 2. I put a vsdoc reference in...
VS2008 SP1 Hotfix to Support "-vsdoc.js" IntelliSense Doc Files
Last week I mentioned we would be releasing a Hotfix to accompany our new jQuery VSDoc file . This Hotfix is now available at the MSDN Code Gallery . Here's a direct download link for this small (2MB) patch: http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736 I want to emphasize that this patch is intended for all JavaScript files, not just those related to jQuery . Generally, we will opportunistically look for documentation files related to the script file. For example, given "mylibrary.js", we will search in the same directory for: mylibrary -vsdoc .js, then if we don't find it we will search for... mylibrary .debug .js, then if we don't find it we will search for... mylibrary.js The idea...
Rich IntelliSense for jQuery
A while back we updated IntelliSense to not fail when referencing jQuery. However, getting IntelliSense for chained calls and rich summary/parameter hints still required adding special comments to a few thousand lines of jQuery. If you didn't have the time, you could download such a file from friendly members of the community such as James and Brennan . As part of our new partnership with jQuery , yesterday we announced the availability of the official IntelliSense documentation file. As you can see, our friends at jQuery have added a new download link for Visual Studio at http://docs.jquery.com/Downloading_jQuery#Download_jQuery . You can also download the file directly from http://code.jquery.com/jquery-1.2.6-vsdoc.js . As you might guess...
Catch our team at TechEd 2008 - Orlando.
Every year we send a team to TechEds to meet you, our customers. They will be at the event site from 8.30 AM to 6.00 PM to answer your questions from June 3rd to June 6th. This time we have the following representatives at TechEd. ASP.NET Team: Kathy Carper, Scott Hunter, Simon Calvert, Clay Compton, Konst Khurin, Mark Rosenberg and Robert Boedigheimer Web Development Tools Team: Barry Tang, John Dundon, Vinaya Bhushana Gattam Reddy and Vishal Joshi So come talk to them and find out more about what our team has to offer. Also, watch out for a demo from Simon and Vishal on the Newest features in ASP.NET and Microsoft Visual Studio 2008 Web Developer . The session time and code is as mentioned below. Session code: WUX306: A Lap Around the Newest...
Introducing JScript Formatting in VS 2008 SP1
Colorization, validation, IntelliSense, and formatting comprise the core of any modern editor. With VS 2008 SP1, we are completing the core JScript editor by introducing code formatting. Additionally, we have promoted JScript to a dedicated node in “Tools Options” providing a clean separation from the HTML “Tools Options”. We realize many folks have been waiting for this feature and we’re excited to be able to finally provide it. We’re using “beta” period to fine tune the feature for final release. Thus, we would love to hear any feedback you have. There are two areas in particular I’d like to highlight: Correctness – It goes without saying that code integrity is of highest priority. We’ve done extensive testing to make sure nothing beyond the...
JScript Debugging: Made easy with IE8
The feature I'm most excited about in Internet Explorer 8 Beta 1 is ironically one you might not notice at all. Problem If you're reading this, you probably know (and are still untangling the double-negative logic of) the "Disable script debugging" option in IE. Say you just spent 10 hours debugging script. It's time for a break. You read your favorite blog. Suddenly, you are presented with: Needless to say, you probably did not "wish to debug" the rest of the world's script... especially after a day of debugging your own. But you hesitate to uncheck the option because you know you're going to need it again tomorrow. Solution IE8 now enables debugging on-demand. Thanks to a feature we tucked into VS2008...
More Posts Next page »