Top ASP.NET Items

Sponsors

Browse by Tags

All Tags » JavaScript (RSS)
JavaScript Reference group Dedicated Worker
Travis Leithead showed a video "Building responsive apps and sites with HTML5 web workers" in BUILD. When editing "Dedicated worker" JavaScript file in Visual Studio 11 Developer's Preview, we need to add the following line in the beginning of the file to get the proper JavaScript web walker IntelliSense in the editor: /// <reference group="Dedicated Worker" /> "Dedicated Worker" is a reference Group defined in the Tools->Options->Text Editor->JavaScript->IntelliSense->References. It contains a JavaScript file which contains all the web walker JavaScript HTML5 objects. You can then see IntelliSense, such as importScripts: Also, IntelliSense will be shown form the JavaScript files...
New JavaScript editing features for Web development in Visual Studio 11 Developer Preview
Visual Studio 11 Developer Preview has the JavaScript design time engine rewritten, sharing base with IE's JavaScript engine. It has faster performance and better memory footprint. The list below shows some new feature and changes comparing with Visual Studio 2010 for Web development scenarios. All feedbacks are welcomed as it's our passion to make JavaScript developing experience as pleasant, reliable and efficient as other languages. IntelliSense Description VS2010 Behavior Visual Studio 11 Developer Preview Behavior ECMAScript 5 compliance No Yes. Visual Studio 11 Developer Preview fully supports ECMAScript 5. Auto-reducing Statement Completion List No Yes, if the IntelliSense is automatically enabled when typing. The following screen...
Web Standards Update for Visual Studio 2010 SP1
  The Web Platform and Tools team is very pleased to announce the first Web Standards Update for Visual Studio SP1 . It updates the HTML5 intellisense and validation to reflect the latest W3C specifications and fixes some bugs bugs in the current SP1 support for HTML5. Also JavaScript intellisense it updated to reflect many of the new browser capabilities such as Geolocation and DOM storage. Finally, this update adds comprehensive CSS3 intellisense and validation based on the latest specifications from W3C. As the HTML5 and CSS3 specifications mature we will make updates available accordingly to ensure that ASP.NET web developers always have the latest standards to work with. This is at the same time an invitation to report any bugs or...
Even better customizability in Orchard
One of our goals in Orchard is to make it possible and simple to change and customize the markup and style for everything that gets rendered by the application and its modules. Of course, this is made a lot trickier by our other big requirement of making everything a composition of atomic parts. Yesterday, we brought on site a web developer who is a fan of Drupal and is occasionally using Joomla! and WordPress to get some good feedback after her using Orchard on a project. And that we got. One of the many interesting things she told us had one essential quality though: it was immediately actionable. Here is the idea. This is the generated markup for an HTML widget in Orchard: < article class ="widget-html-widget widget" > <...
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...
Oh yeah, CallStream is great to express monads
It has been pointed out by several commenters that CallStream was a reinvention of monads. Not quite so, but the nuance is subtle. CallStream is a pattern to express chain-callable APIs. That makes it possible to express monads with CallStream , but in the same way that JavaScript functions and C# delegates do. Expressing monads with CallStreams can be done in a way that is quite expressive, but let me switch from the usual C# to JavaScript for that (I can’t think of a strongly-typed C# expression of the same thing, but feel free to prove me wrong in the comments). Here’s the code for the monad: function identity(value) { var bind = function (operation) { return operation(value); } bind.value = value; return bind; } And here’s how you would...
How I understood monads, part 2/2: have we met before?
The first post in this series can be found here: http://weblogs.asp.net/bleroy/archive/2010/06/16/how-i-understood-monads-part-1-2-sleepless-and-self-loathing-in-seattle.aspx Last time , I tried to explain how beer and Lou helped me finally understand monads. I gave a couple of trivial examples. Hopefully now that you have this new functional hammer, everything will start looking like a nail. So let’s have a look at a few screws this time. Like last time, I’ll be pretty liberal with the definition of a monad as long as the spirit of monads seems to be preserved. Feel free to nitpick in the comments ;) Oh yeah, jQuery is a monad In jQuery, you first create a wrapped set of HTML elements and then execute operations on it, the result of which is...
20 Tips and Tricks For Writing Fast Web Applications
I’m about 30 minutes from walking on stage to present my last session here at TechEd 2010 in New Orleans and I wanted to share this presentation early, just in case the session room fills up and folks can’t make it in or for those of you who weren’t able to make it.  If you’re Read More...
Browser Speed: It’s Not All About JavaScript
On Tuesday, I presented my IE9: A Lap Around for Developers session here at TechEd and it went really well, it was a lot of fun, and the “slide” deck that I presented worked well!  As it turns out, Joab Jackson, a reporter for the IDG News Service was in the audience and wrote a Read More...
JavaScript local alias pattern
Here’s a little pattern that is fairly common from JavaScript developers but that is not very well known from C# developers or people doing only occasional JavaScript development. In C#, you can use a “using” directive to create aliases of namespaces or bring them to the global scope: namespace Fluent.IO { using System; using System.Collections; using SystemIO = System.IO; In JavaScript, the only scoping construct there is is the function, but it can also be used as a local aliasing device, just like the above using directive: ( function ($, dv) { $( "#foo" ).doSomething(); var a = new dv( "#bar" ); })(jQuery, Sys.UI.DataView); This piece of code is making the jQuery object accessible using the $ alias throughout the code...
More Posts Next page »