.NET news » Search results

Search results for query "javascript" (51):

The BPT team is hiring...

If you want to make a difference to a lot of people—users and developers alike—working on a product with many millions of users is a great place to start. The Browser Programmability and Tools team is building a new, faster, more scalable, modern JavaScript runtime for Internet Explorer. We’re also responsible for defining and shipping the entirety of the HTML5/JavaScript toolset and developer experience. With the rise of HTML5, the importance of these tools and the JavaScript runtime will only increase.  

Our team’s charter includes:

Developing a fast, standards-compliant JavaScript runtime Creating great HTML5 and JavaScript development tools for Visual Studio Building the “F12” developer tools that ship in Internet Explorer

We are seeking innovative and experienced developers, program managers, and testers. Feel free to look through the job descriptions linked to below and submit your resume for any you're interested in pursuing:

Development Program Management Test/QA

 We’re looking forward to hearing from you!

2011-03-01 16:59:00   Source: The BPT team is hiring...   Tags: Visual Studio

Curved Lines for Bing Maps AJAX

This month’s dual-purpose column provides a walkthrough of a JavaScript function to draw a Bezier curve on a Bing Maps AJAX map control along with guidelines for testing a nontrivial JavaScript function.
2011-05-31 19:00:00   Source: Curved Lines for Bing Maps AJAX   Tags: Components

Json Data Visualizer using JQuery, JavaScript, Asp.net MVC 2.0

This article describes a Json data visualizer for popular web services like Google, Yahoo, Bing and Twitter using JQuery , JavaScript, and Asp.net MVC 2.0.

Checking All Checkboxes in a GridView Using jQuery

In May 2006 I wrote two articles that showed how to add a column of checkboxes to a GridView and offer the ability for users to check (or uncheck) all checkboxes in the column with a single click of the mouse. The first article, Checking All CheckBoxes in a GridView, showed how to add "Check All" and "Uncheck All" buttons to the page above the GridView that, when clicked, checked or unchecked all of the checkboxes. The second article, Checking All CheckBoxes in a GridView Using Client-Side Script and a Check All CheckBox, detailed how to add a checkbox to the checkbox column in the grid's header row that would check or uncheck all checkboxes in the column. Both articles showed how to implement such functionality on the client-side, thereby removing the need for a postback.

The JavaScript presented in these two previous articles still works, but the techniques used are a bit antiquated and hamfisted given the advances made in JavaScript programming over the past few years. For instance, the script presented in the previous articles uses server-side code in the GridView's DataBound event handler to assign a client-side onclick event handler to each checkbox. While this works, it violates the tenets of unobtrusive JavaScript, which is a design guideline for JavaScript programming that encourages a clean separation of functionality from presentation. (Ideally, event handlers for HTML elements are defined in script.) Also, the quantity of JavaScript used in the two previous articles is quite hefty compared to the amount of code that would be needed using modern JavaScript libraries like jQuery.

This article presents updated JavaScript for checking (and unchecking) all checkboxes within a GridView. The two examples from the previous articles - checking/unchecking all checkboxes using a button and checking/unchecking all checkboxes using a checkbox in the header row - are reimplemented here using jQuery and unobtrusive JavaScript techniques.

2010-12-07 18:00:00   Source: Checking All Checkboxes in a GridView Using jQuery   Tags: Examples

Package that speeds up loading of JavaScript, CSS and image files

Improves web site performance by combining and minifying JavaScript and CSS files on the fly. Improves image caching and loading. Very easy to add to any ASP.NET web site.

JScript Debugger– “Unable to attach the process. Another debugger might be attached to the process” – while application is running from Visual Studio. [ Solution ]

IE Developer toolbar provide us a fantastic and easiest way to debug JavaScript with in browser.  If the web site is hosted on IIS and you are trying  debug JavaScript using IE Developer tool bar, it will work fine if you the correct browser setting for debugging. If you are running your web applica

Accessing Embedded Resources through a URL using WebResource.axd

Many of the built-in ASP.NET server controls require additional, external resources in order to function properly. For example, when using any of the ASP.NET validation controls, the controls rely on a bevy of JavaScript functions to perform their client-side validation. While each validation control could emit such script directly into the page's content, a more efficient approach would be to package these JavaScript functions into an external JavaScript file and then include that file in the page using <script src="PathToExternalJavaScriptFile" type="text/javascript" >. This would reduce the total page size and would allow the browser to cache the external JavaScript file (rather than having to send the JavaScript code down to the browser on each and every page visit/postback).

Prior to ASP.NET 2.0, such external resources that needed to be accessible to the visitor's browser had to be implemented as actual files on the file system. If you've worked with ASP.NET 1.x's validation controls, your pages have included a reference to a JavaScript file /aspnet_client/system_web/version/WebUIValidation.js and there is an actual file with that name residing in the web application's root. Such external resources hamper deployment - if you deploy your application from the testing server to production, it's imperative that the production server have the same external resources (WebUIValidation.js, in this case), in the same locations in the file system.

To remedy this, ASP.NET 2.0 allows for external resources to be embedded within the control's assembly and then be accessed through a specified URL. With the external images, JavaScript files, CSS files embedded in the control's assembly, deployment is a breeze, as all of the resources are now contained within the assembly (the .dll file). There are no external resources whose file names and location on the file system must map up. Once embedded into the assembly, these resources can be accessed from an ASP.NET 2.0 web page through a special URL (WebResource.axd)..

2006-08-08 19:00:00   Source: Accessing Embedded Resources through a URL using...   Tags: ASP.NET

Tom's Halls - A JavaScript Platform Game Engine

A 2D platform game engine using JavaScript DOM manipulation and CSS
2010-04-08 19:56:00   Source: Tom's Halls - A JavaScript Platform...   Tags: Graphics ASP.NET

Unit Testing of Javascript Functions

This article is all about Unit Testing of Javascript Functions
2011-02-13 21:09:00   Source: Unit Testing of Javascript Functions   Tags: Testing

Accessing Server-Side Data from Client Script (Part 2)

Today's websites commonly exchange information between the browser and the web server using Ajax techniques. In a nutshell, the browser executes JavaScript code typically in response to the page loading or some user action. This JavaScript makes an asynchronous HTTP request to the server. The server processes this request and, perhaps, returns data that the browser can then seamlessly integrate into the web page. Typically, the information exchanged between the browser and server is serialized into JSON, an open, text-based serialization format that is both human-readable and platform independent.

Adding such targeted, lightweight Ajax capabilities to your ASP.NET website requires two steps: first, you must create some mechanism on the server that accepts requests from client-side script and returns a JSON payload in response; second, you need to write JavaScript in your ASP.NET page to make an HTTP request to this service you created and to work with the returned results. This article series examines a variety of techniques for implementing such scenarios. In Part 1 we used an ASP.NET page and the JavaScriptSerializer class to create a server-side service. This service was called from the browser using the free, open-source jQuery JavaScript library.

This article continues our examination of techniques for implementing lightweight Ajax scenarios in an ASP.NET website. Specifically, it examines how to create ASP.NET Ajax Web Services on the server-side and how to use both the ASP.NET Ajax Library and jQuery to consume them from the client-side.

2010-10-26 19:00:00   Source: Accessing Server-Side Data from Client Script (Part 2)   Tags: Web Services