Tag | Javascript Posts

Another cool vector drawing JavaScript Library. Introducing Raphelhttp://raphaeljs.com/. Seems promising (Added to my R&D todo list :)) ...
Increasingly I find myself building web applications that rarely, if ever, reload the page. Ajax is used to communicate with the server and to update parts of the page as required. After much trial and error I have come upon a technique for organising the javascript on such pages. Consider an application that has three buttons: red, yellow and green. When one of the buttons is clicked an rectangle is coloured according to the selection. The UI design will be as follows: Here is the demo. The basic ...
Normal 0 false false false MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} I had started to write this ...
Let me start by saying, I love looking at other people’s code. I have learned so much by reading code that I would put that in a top 5 list of things every programmer should do. If it wasn’t for tools like .NET Reflector or Snoop then I would have missed reading a lot of great code. I started working in Silverlight a few months ago and wanted a utility to browse the tree nodes like Snoop does for WPF. I found several solutions but wasn’t happy until I stumbled upon Silverlight Spy 3 by First Floor ...
In this blog and in my column, I’ve written a lot lately about new technologies from Microsoft that seek to make software development easier. Technologies like ASP.NET Web Pages, Razor and WebMatrix, Access Web Databases and Visual Studio LightSwitch. Each of these technologies, I believe, is bringing much needed accessibility to programming on the Microsoft platform. I’ve also written about Windows Phone 7 which, despite extreme skepticism in the press and analyst communities, has the potential ...
Over the past several years social media has grown from just a few sites to a booming industry. With the wealth of information and entertainment available on sites like YouTube, Facebook and Twitter, it is easy to see where it has come from and why it has stuck. Little wonder why people, developers and companies have sought to leverage the connections found on social media outlets to further careers, sell products or just plain connect to the rest of the world. Recently, I had been asked to develop ...
After few minutes of playing with new Microsoft Lab's gadget -> Zoom.it, I decided to share with you few comments. First It looks so nice and it gives a lot of fun :D Check for example how my blog looks like as a one image :D link: http://zoom.it/zFq1 Second Great API! Both, JavaScript http://zoom.it/pages/api/qu... and Silverlight http://zoom.it/pages/api/qu... Imagine DIGG with websites' preview in zoom.it :D And last but not least It not support Silverlight ...
In my previous post here I have demonstrated how to add dynamic rows in Gridview with a combination of TextBox and DropDownList. Just in case you need to validate empty TextBox values before adding a new row to the GridView then here's a JavaScript function that you can use for validation: function ValidateEmptyValue() { var gv = document.getElementById("&l... Gridview1.ClientID %>"); var tb = gv.getElementsByTagName("in... for (var i = 0; i < tb.length; i++) { if (tb[i].type == "text") ...
Microsoft Silverlight 4 Step by Step (click book logo to be taken to the Catalog Page) By: Laurence Moroney Publisher: Microsoft Press Pub. Date: June 30, 2010 Print ISBN-13: 978-0-7356-3887-7 Pages in Print Edition: 336 I decided to do my first review with the new Silverlight 4 Step by Step book from Microsoft Press. I have read the entire book and completed all of the exercises. I have found several errors in the book’s code, but they were not hard to figure out. Instead of writing a formal book ...

Extensions are a great way for you to add new features to Safari 5.0.1. Built by developers, Safari Extensions use the latest HTML5, CSS3, and JavaScript web technologies. And they’re digitally signed and sandboxed for improved security. You can install extensions with one click — no need to restart Safari.

http://extensions.apple.com/#productivity

This is the second in a series on architecting software solutions where I discuss items that need to be discussed, addressed, resolved, etc. prior to finalizing any system designs.. Part I of this series “Know Your Audience” can be found here. One of the easiest pits to fall in when architecting software solutions is to attempt to design the solution to be all things to all people. Unless the application is incredibly simple and/or has a very narrow use, it is possible to spend substantially more ...
Quick Link: download ASP.NET MVC Preview 1 It is a an exciting time to be a web developer. There are lots of new technologies from Microsoft coming out for the browser (IE9 changes everything), in the area of tooling (the brand new WebMatrix) and for the server – with ASP.NET MVC 3 Preview 1 released today (27th July 2010). Download and install side by side with MVC 2 If you have Visual Studio 2010 (The FREE Web Developer edition is fine) then you can safely download ASP.NET MVC Preview 1 (download ...
Visual WebGui which was designed to solve the most painful issues for enterprise IT is now with its new 6.4 RC0 version fullfiling its promise to reproduce client/server richness and user experience on Web and Cloud, in a simple cost effective way. "VWG was designed to solve what might be the most painful issues for enterprise IT; reproducing client/server richness and user experience on Web and Cloud, in a simple cost effective way and with standard Web, no-plug-in accessibility and absolutely secured ...
First of all, sorry for not posting for a quite long time. I have started working on designing and developing a charity website for blood donation. So all my leisure time was diverted into that. I will ensure that going forward, I post at least one post every week. Lets get into the topic of this week, without delaying any more time. I have always been using asp:Menu and asp:Treeview for transforming the sitemaps to super cool menu which are auto generated by ASP.NET for us. But I wanted more and ...
Most simple forms we write, especially in LOB applications, are repetitive sections of inputs and/or displays. Take a look at an exmaple from the MVC Music Store sample, the album editor template, notice anything repetitive? <%@ Import Namespace="MvcMusicStore"%> <%@ Control Language="C#" Inherits="System.Web.Mvc.Vi... %> <script src="/Scripts/MicrosoftAjax... type="text/javascript">&... <script src="/Scripts/MicrosoftMvcA... ...
http://www.microsofttransla... tool from Microsoft allows you to convert the language of your content on the fly. It is very intutive, effective and can be used for various locale generation requirements. It emits the below given <div> with the javascript:- <div id="MicrosoftTranslatorWidget" style="width: 200px; min-height: 83px; border-color: #3A5770; background-color: #78ADD0;"><noscript&g... href="http://www.microsoftt... ...
Recruitment and interview process usually becomes complicated and very hard to follow with massive exchange of emails, bulky attachments and several people involved. So it was decided to develop a system that would simplify that process by allowing to find required information at a touch of a key - a web-based workflow-based application to automate the process without any need to install software on the client. The solution also needed to provide automated workflow to route tasks to the relevant ...
An article was published at JupiterJS.com (titled “JavaScript vs Silverlight”) arguing that JavaScript is better than Silverlight. Unfortunately, there is no way to post comments on that page (weird, really) so I decided I would post my answer here. Read the rest of this entry » ...
If you are working with iframe in which the content takes time to load, you may want to display a simple loading indicator to the end users instead of letting the users see a blank screen in the page. To do this, here's one way on how to implemet it using javascript. <html xmlns="http://www.w3.org/19... > <head runat="server"> <title></title> <script type="text/javascript"> function hideLoading() { document.getElementById('di... = "none"; document.getElementById('di... ...
Technorati Tags: jQuery,JavaScript I'm using the jQuery UI Autocomplete plug-in on my current intranet project, and am impressed with how powerful and easy to use it is. It works great on my development PC with Internet Explorer 8, and I was very pleased with myself. …until I tested on one of our "thin client" machines, and my beautiful autocomplete dropdown looked like Swiss cheese: The browser on the thin-client is, you guessed it - everybody's favorite browser - IE6. IE6 has z-index issues that ...
This week, Scott Guthrie, Corporate Vice President at Microsoft’s Developer Division, announced, via blog post, the early Beta release of a new tool called WebMatrix. WebMatrix is a free developer tool that enables Web development geared toward what might I might call Markup-and-Script developers (more on that in a minute). And although WebMatrix draws upon technologies already, or soon to be, present in the fuller ASP.NET Web development platform and the Visual Studio integrated development environment ...
Here is the function function getQuerystring(key, default_) { if (default_ == null) default_ = ""; key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regex = new RegExp("[\\?&]" + key + "=([^&#]*)"); var qs = regex.exec(window.location.... if (qs == null) return default_; else return qs[1]; } *taken from http://www.bloggingdevelope... ...
I've spent the last few weeks trying to comprehend OOP and inheritance in JavaScript. After that amount of time I've come to the conclusion that harly anyone really understands it and everyone implements it a different way. Just look at this question someone posted about the best library to use for JS inheritance. I thought it was funny because although there were a lot of answers, I think everyone proved his point, that there are many of them and no one could agree on the best. stackoverflow.com/questions... ...
I was recently tasked with coming up with a way to keep the session alive in ASP.NET as long as the user had the web page open. That way if they started filling out a form, then went to lunch and came back, they wouldn't lose all of the information just because their session timed out. The concept is actually pretty simple. You just need to make a call back to the server every once in a while before the session expires to update the session timeout. We figured as long as the user has the browser ...
When MVC 2 was released, there was a last minute change to use Model Validation instead of Input Validation. Essentially, Model validation means that your entire view model will be validated regardless of which values actually got posted to the server. On the other hand, with Input validation, only the values that get posted to the server will get validated. While this was the right decision by the MVC team for the most mainstream cases, there are still some cases where the previous behavior of Input ...
Technorati Tags: JavaScript Did you know that there are two equality operators in JavaScript? The one that's used most often is the double equal sign ("==") operator. The "==" operator does type coercion. The following example returns true, even though we're comparing a string and a number: if ('5' == 5) That's not too bad, but you probably wouldn't expect the following examples to return true: if (0 == '') if (0 == false) if (false == undefined) if ("\r\n" == 0) They all do though, thanks to JavaScript's ...
I was playing around with ASPNET AJAX MaskEditExtender control and ASPNET Validation controls when I was working with a profile page and doing some input validations. Everything seems to be fine until I was told to always retain the phone mask format in the TextBox. Here’s my code for Phone number masking: <asp:TextBox ID="TXTPhoneNumber" runat="server" MaxLength="13" ValidationGroup="GroupA" /> <asp:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="TXTPhoneNu... ...
Technorati Tags: jQuery,JavaScript I'm sure I've "invented" a technique that's been done by many others (and I don't doubt that there's a slicker way to do it), but… Sometimes I'll want to have an identical chunk of HTML repeated more than once on a web page, for example: a search page with "Search" and "Clear Fields" buttons both above and below the search field inputs. I'd like to just render that HTML once on the server, than "clone" it on the client. For my site, I established a convention where ...
June 21st, 2010 The Importance of Open Government Data To all those present, good afternoon. My name is Andrew Brust. I help run a consulting firm, twentysix New York, here in Manhattan. I am also a technology columnist and blogger, and serve on the New York Technology Council’s Advisory Board. As I have explained in previous testimony, I am a lifelong New Yorker, and began my IT career in the employ of the government of the City of New York. I’ve testified to this Committee before, voicing my support ...
Many times in the Career advice section at http://www.dotnetfunda.com/... we are asked this question What are the essential skills for a web developer? Rather than posting/reposting time and again, thought of writing a post about it. This post details what according to me and some of the well established people I know think about essential skills that a web developer should posses. You can find similar entry at Essential Skills for Web Developer in 2010 HTTP/TCP protocol from a very high overview ...
Technorati Tags: .NET,Kansas City Thanks to the KC development community for a great free event. The Johnson County Community College provided very nice facilities. I’m the sort of guy who would willingly drive 4+ hours each way for a free XL (or “developer medium”, as Richard Campbell calls it) T-shirt, but got a lot more than that out of the event. Here's a recap of the sessions I attended: Why Kanban? speaker: Troy Tuttle Troy is a “pragmatic agilist” at AdventureTech (not AdventureWorks – I was ...
I have just tried the Solar Winds IP address tracker. One comment about their download process - it does require JavaScript enabled for their site. It detected the machines on my LAN. Here is the marketing blurb from their web site. FREE IP Address Tracker scans, tracks, and consolidates your IP address information in one easy place, saving you time, eliminating errors, spreadsheets and headaches! Its simple-to-use features allow you to: Track IP addresses for a unified, at-a-glance view of your ...
Finally after weeks of hard work the World Cup Silverlight player is ready to watch the spanish team in action. This Silverlight Player use Smooth Streaming technology, enables adaptive streaming of media to Silverlight and other clients over HTTP. Smooth Streaming provides a high-quality viewing experience that scales massively on content distribution networks, making true HD 1080p media experiences a reality. The player integrates leading social networks such as Microsoft Live Messenger, Twitter ...
After more time than I care to admit I have finally released a rudimentary Http Handler for serving compiled CoffeeScript from Asp.Net applications. It was a long and painful road but I am glad to finally have a usable strategy for client-side scripting in CoffeeScript. Why CoffeeScript? As Douglas Crockford discussed in detail, Javascript is a mixture of good and bad features. The genius of CoffeeScript is to treat javascript in the browser as a virtual machine. By compiling to javascript CoffeeScript ...
While ASP.NET provides an event base approach it is completely dismissed when working with AJAX and the richness of the server is lost and replaced with JavaScript programming and couple with a very high security risk. Visual WebGui reinstates the power of the server to AJAX development and provides a statefull yet scalable, server centric architecture that provides the benefits and user productivity of AJAX with the security and developer productivity we had before AJAX stormed into our lives. "When ...
I am working on a Javascript app (CloudGraph) that uses HTML5 canvas and JQuery. I'm using ExplorerCanvas to support canvas in IE. I recently came across an interesting problem. What I was trying to do is restore the user's settings when the page is loaded by reading some information from a cookie that I set the last time the user accessed the application. One of these settings is the size of the canvas. I decided that the best place to do this would be when the document is ready using JQuery $(document).ready(). ...
Technorati Tags: ASP.NET,ASP.NET MVC,T4MVC I’m working on my first ASP.NET MVC project, and I really, really like MVC. I hate all of the “magic strings”, though: <div id="logindisplay"> <% Html.RenderPartial("LogOnUs... %> </div> <div id="menucontainer"> <ul id="menu"> <li><%=Html.Action... Dinner", "Index", "Dinners")%></li> <li><%=Html.Action... Dinner", "Create", "Dinners")%></li> <li><%=Html.Action... ...
I recently was given an assignment to create a UX where a user could use the up and down arrow keys, as well as the tab and enter keys to move through a Silverlight datagrid that is going be used as part of a high throughput data entry UI. And to be honest, I’ve not trapped key codes since I coded JavaScript a few years ago. Although the frameworks I’m using made it easy, it wasn’t without some trial and error. The other thing that bothered me was that the customer tossed this into the use case as ...
I was working on my online mathematical graphing application, CloudGraph, and trying to make it work in IE. The app uses the HTML5 canvas element to draw graphs. Since IE doesn't support canvas yet I use ExplorerCanvas to provide that support for IE. However, it seems that when using excanvas, if you try to moveTo or drawTo a point that is not finite it loses it's mind and stops drawing anything else after that. I had no such problems in Firefox or Chrome so it took me awhile to figure out what was ...
The opinions mentioned herein are solely mine and do not reflect those of my employer Wanted to post this for a long time but couldn’t. I have been an ASP.NET Developer for quite sometime and have worked with version 1.1, 2.0, 3.5 as well as the latest 4.0. With ASP.NET 2.0 and Visual Studio 2005, came the era of AJAX and rich UI style web applications. So, ASP.NET AJAX (codenamed “ATLAS”) was released almost an year later. This was called as ASP.NET 2.0 AJAX Extensions. This release was supported ...
The .NET Framework version 4 includes enhancements for ASP.NET 4 in targeted areas. Visual Studio 2010 and Microsoft Visual Web Developer Express also include enhancements and new features for improved Web development. This document provides an overview of many of the new features that are included in the upcoming release. This topic contains the following sections: ASP.NET Core Services ASP.NET Web Forms ASP.NET MVC Dynamic Data ASP.NET Chart Control Visual Web Developer Enhancements Web Application ...
Technorati Tags: .NET,WatiN,testing In addition to my automated unit, system and integration tests for ASP.NET projects, I like to give my customers something pretty that they can look at and visually see that the web site is behaving properly. I use the Gallio test runner to produce a pretty HTML report, and WatiN (Web Application Testing In .NET) to test the UI and create screenshots. I have a couple of issues with WatiN’s “CaptureWebPageToFile” method, though: It blew up the first (and only) time ...
Looks and design is becoming more and more important for customers and organizations event when we deal with internal enterprise applications. However, many web developers who work on business apps end up not investing resources on the design. The reason may be that they ran out of time so with their client's pressure there was no choice but to skip past the design process. In some cases, especially in sall software houses, there are no trained professional designers and the developers have to do ...
You can reach this page anytime at http://tools.michaelcrump.net Thanks to everyone that has contributed so far, we are getting several thousands hits from all sorts of developers a day. Recent Contributors include: Deependra Solanky, Grant, Klaus, James, BlueCollarCritic and Bob Koehn Tweet this list! Add a link to my site! Add me to twitter! This is a list of the tools/utilities that I use to do my job/hobby. I wanted this page to load fast and contain information that only you care about. If I ...
Unfortunately HTMLEditor component of AJAX Control Toolkit is not compatible with the UpdatePanel. The problem is when we use accents with the Mozilla Firefox browser and HTMLEditor is inside an UpdatePanel. Letters that contain accents are left with an unknown character (so is stored in the database or even returned a PostBack). Can be tested using Mozilla Firefox on the site of the ASP.NET AJAX Control Toolkit. Write a word with accents and go to "Submit Content": http://www.asp.net/AJAX/Aja... ...
A few weeks ago I did the following post asking people – if they used foreign key constraints in their star schemas. The poll is still open if you are interested in adding to it, but here is what the chart looks like as of today. (at the bottom of the poll itself there is a link to the live results, unfortunately I cannot link the live results in here as the blogging platform blocks the required javascript) Interestingly the results are fairly even. Of the 78 respondents, fractionally over half at ...
The competition between the Web and proprietary rich platforms, including Windows, Mac OS, iPhone/iPad, Adobe’s Flash/AIR and Microsoft’s Silverlight, is not new. But with the emergence of HTML 5 and imminent support for it in the next release of the major Web browsers, the battle is heating up. And with the announcements made Wednesday at Google's I/O conference, it's getting kicked up yet another notch. The impact of this platform battle on companies in the media and advertising world, and the ...
Yesterday, Microsoft held its flagship launch event for Office 2010 in Manhattan. Today, the Redmond software company is holding a local launch event for Visual Studio (VS) 2010, in Brooklyn. How come information workers get the 212 treatment and developers are relegated to 718? Well, here’s the thing: the Brooklyn Marriott is actually a great place for an event, but you need some intimate knowledge of New York City to know that. NBC’s Studio 8H, where the Office launch was held yesterday (and from ...
Mostly all who works extensively on SharePoint (including meJ) don’t like to use out-of-box list forms (DispForm.aspx, EditForm.aspx, NewForm.aspx) as interface. Actually these OOB list forms bind hands of developers for the customization. It gives headache to developers to add just one post back event, for a dropdown field and to populate other fields in NewForm.aspx or EditForm.aspx. On top of that clients always ask such stuff. So here I am going to give you guys a flight for SharePoint Customization ...
I was working through some scenarios recently with Azure and Silverlight. I immediately decided a quick walk through for setting up a Silverlight Application running in an ASP.NET MVC 2 Application would be a cool project. This walk through I have Visual Studio 2010, Silverlight 4, and the Azure SDK all installed. If you need to download any of those go get em? now. Launch Visual Studio 2010 and start a new project. Click on the section for cloud templates as shown below. After you name the project, ...