Tag | Javascript Posts

Here’s a list of sources of information for the different elements that comprise the 70-480 exam: General ResourcesEDIT: http://www.microsoftvirtual... This is the end all source for video coverage of the exam, including information on the followup exam for building Windows Store apps with HTML5, CSS and Javascript. Go to the site to get a free voucher code to take the exam while supplies last! http://www.w3schools.com (As pointed out in David Pallmann’s ...
A couple of months ago I’ve written a simple demo about “Highlighting GridView Row on MouseOver”. I’ve noticed many members in the forums (http://forums.asp.net) are asking how to highlight row in GridView and retain the selected row across postbacks. So I’ve decided to write this post to demonstrate how to implement it as reference to others who might need it. In this demo I going to use a combination of plain JavaScript and jQuery to do the client-side manipulation. I presumed that you already ...
The ComponentOne team presents the most complete collection of extensions for Microsoft Visual Studio LightSwitch. This collection of ready-to-use extensions snaps right into your applications and extends their functionality. You can choose from the following extensions below:" OLAP – instant pivoting data views FlexGrid – grid view with conditional formatting, printing and filtering Chart – the easiest way to get a chart in LightSwitch PDFViewer – open PDFs such as SSRS reports without an external ...
This is not a new item at all but I came across it recently. For an app I had been using some JavaScript like: javascript:window.open(some... here) to open a new window via a button. That bit of code had been working great in several other apps. Then in one app that same code decided to open the new window correctly while clearing the parent of everything but [object]. The fix ended up being simple, change the javascript to: javascript:void(window.open... here); Then it worked like ...
Have you ever had the need to implement a 3rd party JavaScript plugin, but your needs didn’t fit the model and usage defined by the API or documentation of the plugin? Recently I ran into this issue when I was trying to implement a web snapshot plugin into our site. To use their plugin, you had to include a script tag to the plugin on their server with an API key. The second part of the usage was to include a <script> tag around a function call wherever you wanted a snapshot to appear. The ...
Node.js is a server-side JavaScript platform "for easily building fast, scalable network applications". It's built on Google's V8 JavaScript engine and uses an (almost) entirely async event-driven processing model, running in a single thread. If you're new to Node and your reaction is "why would I want to run JavaScript on the server side?", this is the headline answer: in 150 lines of JavaScript you can build a Node.js app which works as an accelerator for WCF REST services*. It can double your ...
At http://shop.oreilly.com/cat... O'Reilly are offering a series of books on geo-location at 50% off until April 5, 2012 14:00 PT. HTML5 Geolocation Truly revolutionary: now you can write geolocation applications directly in the browser, rather than develop native apps for particular devices. This concise book demonstrates the W3C Geolocation API in action, with code and examples to help you build HTML5 apps using the "write once, deploy everywhere" model. Along the way, ...
So, day 1 of DevWeek. Lots and lots of Windows 8 and WinRT, as you would expect. The keynote had some actual content in it, fleshed out some of the details of how your apps linked into the Metro infrastructure, and confirmed that there would indeed be an enterprise version of the app store available for Metro apps.) However, that's, not what I want to focus this post on. What I do want to focus on is this: Windows 8 does not make .NET developers obsolete. Phew! .NET in the New Ecosystem In all the ...
The ASP.NET MVC template drops a copy of Modernizr 1.7 in your project automatically, and if you check for NuGet updates the library is brought up to the current version - 2.5.3. The NuGet package is a a great way to introduce developers to Modernizr and makes checks for updates easy. But when adding Modernizr to your projects consider two alternatives: Alternative One – Content Delivery Network: Microsoft CDN currently hosts two Modernizr versions – 1.7 and 2.0.6. By using a CDN copy you increase ...
Shims help when adding semantic tags to older IE browsers, but there is a huge range of other new HTML5 features that having varying support on browsers. Polyfills are the tool to work with many of these new features. Polyfills are JavaScript code and/or browser plug-ins that can provide older or less featured browsers with API support for recent browser advances. The best polyfills will detect the whether the current browser has native support for a given feature, and only adds the functionality ...
Semantic elements and the Shiv! This is the second entry in the series of demos from the “Using HTML5 Today” talk. For the definitive discussion on unknown elements and the HTML5 Shiv check out Mark Pilgrim’s Dive Into HTML5 online book at http://diveintohtml5.info/s... Semantic tags increase the meaning and maintainability of your markup, help make your page more computer-readable, and can even provide opportunities for libraries that are written to automagically enhance ...
Simplify your HTML Syntax This is the first in the series of demos from the “Using HTML5 Today” talk. One of the great features HTML5 offers is the chance to minimize some of the longer tags in your template, reducing the size of the document and increasing readability and maintainability. Below we cover a few of the easy, cross-browser, backwards-compatible changes. Why are these changes backwards compatible? Because we, the authors of the content on the Internet, are pretty bad at writing proper ...
This is just a little script to have cat paws walking across the page using jQuery.I searched for something similar, but couldn’t find anything so this is what I ended up with… <!DOCTYPE html><html><hea... <script type="text/javascript" src="http://code.jquery.com... <script type="text/javascript" src="catpaws.js"></sc... anything you like here, catpaws.js will append a couple of DIVs to the body tag when ...
The new HTML standard is part of a proliferation of challenges and opportunities that developers face today: Browser Wars v2.0 Going back 10 years ago, Internet Explorer could claim 95% of the browser market (http://en.wikipedia.org/wi... Today you have to include IE, Firefox, Chrome and Safari to get past the 95% support mark (http://marketshare.hitslin... And this only includes desktop browsers! Safari, the Android browser and Opera all have strong market shares in the mobile/tablet ...

I found a very nice collection of JavaScript libraries called Microjs, so I want to share its with you guys. I hope the following link will be very fruitful.

MicroJS


Thank

The Little Book on CoffeeScript, by Alex MacCaw, provides a quick dive into CoffeeScript, a new scripting language which is based off of, and compiles to, JavaScript. It is a simpler form of JavaScript, with syntax and feature implementation that is inspired by both Ruby and Python. The author does a great job of explaining the differences within CoffeeScript over the JavaScript language, such as using Ruby-style string interpolation instead of JavaScript’s string addition and using Python-style ...
Ok, so as the title suggests, I have decided to release the name of my upcoming Window Phone application. Mixtio Reader will take advantage of various cloud services to provide you with access to your books or documents. There will also be a shopping experience added so you can buy more books or download free domain books. There are a lot of other features that will be in Mixtio Reader, but I will hold on that information till closer to release. So what have I been doing? Well, I redid my logo for ...
We are looking to hire someone with (but not necessarily all of!) :- - Good web skills Javascript / Html / CSS + any javascript frameworks Jquery / Knockout etc - ASP.NET MVC 4 (or earlier) - ASP.NET Webforms ( any exposure ) - SQL Server / NHibernate ( or other ORMs ) - Webservices -WPF ( we do a number of inhouse windows apps ) - A love of software development and good development techniques! You can see what we do at http://www.outpostcentral.com Drop me an email at keith dot nicholas AT outpostcentral.com ...
Single Page Application Frameworks are gaining popularity in the ever evolving web community with lot of libraries such as JavaScriptMVC, Backbonejs and many other libraries. ASP.NET MVC 4 introduces experimental support for building single page application (SPA) through a template. Much of the plumbing work of wiring up the client side scripts, javascript modelviews and the controllers is automated, making it a quick start to develop SPAs relatively easier. Lets examine a scenario where we are building ...
Until 1/March/2012 O'Reilly are offering at http://shop.oreilly.com/pro... The Little Book on CoffeeScript "This little book shows JavaScript developers how to build superb web applications with CoffeeScript, the remarkable little language that’s gaining considerable interest. Through example code, this guide demonstrates how CoffeeScript abstracts JavaScript, providing syntactical sugar and preventing many common errors. You’ll learn CoffeeScript’s syntax and idioms step by step, ...
Today's $10 deal of the day from APress at http://www.apress.com/97814... is Pro ASP.NET 4 CMS"This book will immerse you in a variety of advanced topics, including architecting different application data tiers, memory caching paradigms, data mining, and search engine optimization. " I have reviewed this book and recommended it last 30/Nov as follows: This book is more than just a book about an ASP.NET CMS system - it has much practical advice and examples for the Dot Net web developer. I liked ...

Use blow javascript to add a command for radeditor

RadEditorCommandList["InsertSM"] = function (commandName, editor, oTool) { 
        editor.PasteHtml('<sup>SM</sup>'); 
    };
Mac type grid view control for asp.net/java web applications For one of my project, I made a very dynamic grid which is totally HTML based and very fast while rendering data from server. Features: 1. No viewstate 2. Dynamic grid which gets data on scroll using REST based WCF service in JSon 3. No DOM modifications which makes the rendering very fast 4. Custom control which can be integrated in any web application – Java / Asp.Net (However I built it for Asp.Net) 5. Support for very large record set. ...
Today's APress $10 Deal of the day at http://www.apress.com/9781430272199 is JavaScript for Absolute Beginners

"If you are new to both JavaScript and programming, this hands-on book is for you."

book cover
I’ve been testing\evaluating ComponentOne’s Studio for ASP.NET Wijmo suite for an MVC 3 project and I’m quickly becoming a fan! This product has so many things going for it that I’m not sure where to start. I’m going to focus on the Wijmo components, but the suite also contains a set of controls for ASP.NET WebForms development. If the Webform controls are as good as the MVC controls, they’re worth a look. There are two versions of the Wijmo components. An open source version containing 30 widgets ...
In a previous posting, I discussed replacing the stock MVC serializer used for the JsonResult exposed when you use the controller method Json(..) instead of View. This was all find and dandy. But how – you may wonder – can I call actions that contain complex parameters? Do I need a special binder? Should I write my own? The answer is mostly "no". As Phil Hack blogged, the ASP.NET MVC framework already contains value providers that take care of that for you. All you need to do is ensure that your ...
So lately I have been back in the dev arena more so and working from home. I find that I have some spare time because sometimes I pile directly through lunch. Today I was playing around with a control that I felt I had tested thoroughly. I was completely wrong. So here is an explanation of how to build out the accordion control in a webpart without having the same issues. First off go here and download the jquery-ui-1.8.16.custom.min.js and jquery-1.6.2.min.js. Then what I want you to do is create ...
My collegue told me that placing the opening curly brace at the end of the line is safer than at the beginning of the new line, because it prevents some hard-to-debug errors, related to Automatic Semicolon Insertion and pointed me to the article Basic JavaScript Part 6: Automatic Semicolon Insertion. The article has the recommendation Trying to outline curly braces at the end of the line can save you some headaches in case a semicolon is forgotten somewhere in the code.The statement is misleading ...

 

Alexander Bautz solved the problem neatly. A CEWP with a simple JavaScript function. Hurray Alex!

A little more than three months ago, Microsoft hosted the //build/ conference at which they unveiled the upcoming version of Windows (commonly called Windows 8, though I don’t know if the marketing folks have accepted the fact that that is the name most of us are expecting for it yet). They released to the developer world a build of it called the Windows Developer Preview (and Windows Server Developer Preview) along with various tools for creating the new “Metro style” apps. I wasn’t able to make ...
The C#/.NET Fundamentals series is geared towards examining fundamental concepts in using C# (and .NET in general) to produce effective solutions. I wanted to attempt a brief post before the holidays, so I decided to quickly revisit part a post I wrote a few weeks back on The Generic Func Delegates, and in particular, the sidebar on using Func as a generator for unit testing. At the time, I did not give that short sidebar the attention I really wanted, including showing the setup of the unit tests ...
</object> <script type="text/javascript"> document.write("<script type='text/javascript' src='" + (window.location.protocol) + "//c.microsoft.com/ms.js'" + "><\/script>");<... </div></body>&l... ...
</object><script type="text/javascript"> document.write("<script type='text/javascript' src='" + (window.location.protocol) + "//c.microsoft.com/ms.js'" + "><\/script>");<... ...
At http://shop.oreilly.com/cat... there is an excellent deal of programming books including how to buy for the geek in your life:The hardest person on your list to shop for is Andrew. Why? Because he just won't tell you what he needs or wants. It's not because he doesn't want anything; it's just that telling you isn't logical. If he needs it or wants it, he'll get it himself, right? In the meantime, you're left with trying to figure out the perfect gift for someone who spends ...
Recently (as in, last night) I started playing with jQuery Mobile. My experiences with jQuery, while occasionally frustrating, have been overwhelmingly positive. So when a friend mentioned jQuery Mobile to me, I figured I'd give it a try. A little Googling revealed some helpful tutorials and other resources, one of which was this handy basic page (which I got from here) <!DOCTYPE html><html><hea... Title</title><link rel="stylesheet" href="http://code.jquery.co... ...
I remember myself a tweet from Scott Hanselman a couple of months ago, where he asked us to check out a small application he wrote. As one of the first testers of his new "thing", I was interested but there were no documentation or libs available yet. A couple of days a go, I read a blogpost from Maarten Balliauw about SignalR. (Maarten's blog). Because I allready heard about SignalR a couple of months ago, I had to develop a very small application to test how it really works. 1. Install SignalR ...
Don’t miss out on these great session with Markus Egger in the Dallas office! Where: Microsoft Dallas Office – 7000 SR-161 (George Bush Turnpike), Dallas, TX 75039 When: Tuesday, December 13, 2011 – 1:30 – 4:30 PM Signup for this FREE event in Dallas Join Markus Egger, Microsoft RD and one of the longest running MVPs, for an afternoon of free information. CODE Magazine and EPS Software are in a unique position to share information based on real world experience in projects that are either our own ...
The C#/.NET Fundamentals series is geared towards examining fundamental concepts in using C# (and .NET in general) to produce effective solutions. There are times when we are writing a method that returns a sequence of items, that it occasionally becomes necessary in base-class, interface implementation, error, or default conditions to return a sequence of only one or even zero items. There are many ways to do this, of course, which begs the question of which way is best, in terms of readability, ...
It’s pretty widely accepted (and common sense) that if you’re putting a site out into the wild – such a simple task as minifying CSS and JavaScript files can save a bunch of load time, especially on mobile devices. I’ve been playing about with this today and was quite happily using jsmin as described here until I noticed that in IE 7 and IE 8 the minified CSS didn’t work. The problem seems to be when using a background style, it takes out the space between the image url close bracket and the next ...
My newest course was published yesterday on Pluralsight on KnockoutJS. The course can be viewed here. It is divided up into 4 modules. The first module gives an introduction to Knockout and shows a “Beyond Hello World” demo. The second module discusses the different types of observables you have in Knockout and demos of each. The third module focus on bindings including templating and custom bindings. The fourth module brings everything together with data features while shows a few more advanced ...
Today’s $13.99 Deal of the Day from O’Reilly at http://shop.oreilly.com/pro... is Head First HTML5 Programming “HTML has been on a wild ride. Sure, HTML started as a mere markup language, but more recently HTML’s put on some major muscle. Now we’ve got a language tuned for building web applications with Web storage, 2D drawing, offline support, sockets and threads, and more. And to speak this language you’ve got to go beyond HTML5 markup and into the world of the DOM, events, and ...
The C#/.NET Fundamentals series is geared towards examining fundamental concepts in using C# (and .NET in general) to produce effective solutions. A couple of posts ago, I discussed the EventHandler<TEventArgs> and EventHandler delegates, and in particular at one point mentioned in a sidebar that you need to watch out for thread-safety in order to safely raise events in a multi-threaded environment. There was an interesting discussion in the comments about different ways that people achieve ...
Using a simulated dialog window is a nice way to handle inline data editing. The jQuery UI has a UI widget for a dialog window that makes it easy to get up and running with it in your application. With the release of ASP.NET MVC 3, Microsoft included the jQuery UI scripts and files in the MVC 3 project templates for Visual Studio. With the release of the MVC 3 Tools Update, Microsoft implemented the inclusion of those with NuGet as packages. That means we can get up and running using the latest version ...
In my search for a way to allow readers to tweet post that I put on GWB I have come across the TweetMeme plug-in for Windows Live Writer. It automatically puts a twitter button at either the top or bottom of your post depending on how you configure it. It comes with a warning that it does not work with blog servers that strip out script from posts which I made me afraid it was going to make it incompatible with GWB. This turned out to be the case so I figured we would need either an upgrade to the ...
Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. The index of all my past little wonders posts can be found here. In the last three weeks, we examined the Action family of delegates (and delegates in general), the Func family of delegates, and the EventHandler family of delegates and how they can be used to support generic, reusable algorithms and classes. This week I will ...
The software industry lives within an interesting paradox. IT in the enterprise moves slowly and cautiously, upgrading only when safe and necessary. IT interests intentionally live in the past. On the other hand, developers, and Independent Software Vendors (ISVs) not only want to use the latest and greatest technologies, but this constituency prides itself on gauging tech’s future, and basing its present-day strategy upon it. Normally, we as an industry manage this paradox with a shrug of the shoulder ...
Today I was looking for a solution to get finally the JScript/Javascript/jQuery Intellisense Featureworking with my ASP.Net Webform Project to work. I found some good articles: - JScript IntelliSense Overview- JScript IntelliSense: A Reference for the “Reference” Tag- Enabling JavaScript intellisense in VS.NET 2010 to work with SharePoint 2010- Rich IntelliSense for jQueryBUT, all of suggested solutions did not work right with my Master Page based Visual Studio 2010 Solution.Only with physical Javascript ...
You want the RAD wonderfulness of a visual web part, but it needs to be deployed as a Sandboxed solution. Problem? No, SharePoint powertools for visual studio to the rescue! http://goo.gl/pQ9ct There are a couple limitations, read the above page, nothing major. e.g. 1. Javascript debugging is not supported 2. Debugging asp.net code is not supported. 3. Use of <% Assembly Src= is not supported I understand it does it by adding the markup as an embedded resource, but I haven't actually tried it ...
I am a 21 year old Web Developer, with over five years experience in the PHP field. Covering Javascript - jQuery & Ajax, mySQL, JSON and CSS. Out of the five years experience, three have been as a freelancer, the rest commercial work. (I have to say freelance is more comfortable whereas commercial really does get you to do things out of the box.) This blog will cover problems I come across and the solutions I came up with. Bringing ideas into reality - even if it's never been done before! Overall ...
I find myself needing to get query parameters that are passed into a web app on the URL quite often. At first I wrote a function that creates an associative array (aka object) with all of the parameters as keys and returns it. But then I was looking at the revealing module pattern, a nice javascript design pattern designed to hide private functions, and came up with a way to do this without even calling a function. What I came up with was this nice little object that automatically initializes itself ...