background preloader

Javascript/JScript/JScript.NET

Facebook Twitter

NET to JavaScript compiler. Merge pull request #406 from iskiselev/UnusedModules Repo compatibility with hg-git and TeamCity Merge pull request #451 from iskiselev/MetaDoc Generate xml documanetation for JSIL.Meta Fix issue #453: Fix HashSet not implementing ICollection`1 Fix HashSet.Add not having a definition for ICollection`1 Fix generic variance checks failing to find matching interfaces (#452) Generate xml documanetation for JSIL.Meta Merge pull request #422 from esardaya/bugfix_unknown_member fixed unknown member bug Merge pull request #447 from iskiselev/VarianceTest Test updated: Added check for all cases for covariance/contravariance casts Test updated: Added check for all cases for covariance/contravariance casts.

NET to JavaScript compiler

When doing method lookup for methods of generic interfaces, sort the candidates by their distance from the defining type, so that we use the closest one that matches. Clean up and correct some mismatches between JSILc and the runtime regarding interfaces. Fixed covariant cast problem (#443). Sebastienros/jint. CoffeeScript Redux Online Demo.

Home. MikeMcl/bignumber.js. How can I get query string values. Call JavaScript via ScriptManager in C# – Sarin.Mobi. Executing a block of JavaScript code from C# on the server side in ASP.NET AJAX is relatively easy to do, here in this post I will show how this can be done.

Call JavaScript via ScriptManager in C# – Sarin.Mobi

The main object that you need to use is the ScriptManager via RegisterClientScriptBlock method; this method let you inject new JavaScript codes into the browser in run-time. That mean you client web browser can order to execute new task by the server ordering it, in this example I will use the DropDownList SelectedIndexChanged event to make event changes. Microsoft Dynamics CRM: Unable to attach to the crashing process. A debugger is already attached. JScript: JScript Code (importNode.js) Multithreading - How to run a method in a new thread in Jscript .NET. API Documentation. URI.js API URI Constructor The following parts can be specified in an object: using only components of URIs: // Look ma!

API Documentation

I'm only working the pathnamevar uri = new URI("some/directory/file.html"); // Look ma! Using web workers - Document Object Model (DOM) Web Workers are a simple means for web content to run scripts in background threads.

Using web workers - Document Object Model (DOM)

The worker thread can perform tasks without interfering with the user interface. In addition, they can perform I/O using XMLHttpRequest (although the responseXML and channel attributes are always null) or fetch (with no such restrictions). Once created, a worker can send messages to the JavaScript code that created it by posting messages to an event handler specified by that code (and vice versa). Web worker. A web worker, as defined by the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG), is a JavaScript script executed from an HTML page that runs in the background, independently of other user-interface scripts that may also have been executed from the same HTML page.[1] Web workers are able to utilize multi-core CPUs more effectively.

Web worker

[citation needed] The W3C and WHATWG envision web workers as long-running scripts that are not interrupted by user-interface scripts (scripts that respond to clicks or other user interactions). Keeping such workers from being interrupted by user activities should allow Web pages to remain responsive at the same time as they are running long tasks in the background. The simplest use of workers is for performing a computationally expensive task without interrupting the user interface. The W3C and the WHATWG are currently in the process of developing a definition for an API for web workers.[1] Overview[edit] <! iCompile. Rockstarapps for Eclipse. A couple of years ago I discovered some awesome plugins for Eclipse.

Rockstarapps for Eclipse

It was by RockstarApps aka Bob Buffone, one of the plugins is the main reason I installed the plugin, It can minify stylesheets and javascripts within the IDE. Unfortunately the update site for these plugins is no longer a live, but this article tells you how to install them without the update site. Before I tell you how to download the plugin, let me tell you what the minify plugin can do.Javascript Files For Javascript you have the following options to minify: Minfy files aka remove comments and whitespace.Compress files using Yahoo’s YUI Compressor.Compress files using Google’s Closure Compiler.Compress files using GZip.

CSS Files For stylesheets you have the following options to minify, The Opa Framework for Javascript. Javascript – almost not line based. Javascript is not a line based language.

Javascript – almost not line based

White space has the same meaning regardless if it’s a space, a tabulator character or a line break. Well, almost. You can format the code pretty much any way you like. If you have a function like this: function getAnswer() { var answer = 42; return answer; } You can format it like this: Or like this: function getAnswer () { var answer = 42; return answer ; } Why results varies upon placement of curly braces in javascript code. In JavaScript, curly brace placement matters: An example » Encosia. Note: This post is part of a long-running series of posts covering the union of jQuery and ASP.NET: jQuery for the ASP.NET Developer.

In JavaScript, curly brace placement matters: An example » Encosia

Topics in this series range all the way from using jQuery to enhance UpdatePanels to using jQuery up to completely manage rendering and interaction in the browser with ASP.NET only acting as a backend API. If the post you're viewing now is something that interests you, be sure to check out the rest of the posts in this series. If you’ve been working with JavaScript very long, you probably know that you should format curly braces in JavaScript code a certain way. In fact, if you’ve watched my TekPub series, Mastering jQuery, you’ve heard me stop James and remind him that at the beginning of nearly every episode.

However, you’re less likely to have seen a clear example of why this matters or why you should care. Allman, K&R, and you The specific part of the previous post that I want to talk about is this: Pyjeon / RapydScript. NOTE: Please use git repository it's a pain to keep both of them in sync at once, this one is effectively outdated.

pyjeon / RapydScript

I'm also hoping that maintaining a single repository will make it easier to report bugs and for other developers to contribute, if they wish to. RapydScript is a pre-compiler for JavaScript, similar to CoffeeScript, but with cleaner, more readable syntax. ScriptCryptor - Compile VBScript and JavaScript files into EXE. FESI (pr. like fuzzy) EcmaScript interpreter. Release 1.1.8Uses JDK 1.4 regular expressions Precompiled library for JDK 1.1.8 and up included.

FESI (pr. like fuzzy) EcmaScript interpreter

Version 1.1.8 29-Sep-2003)Download current version (combined source/binary kit)Download previous version (separate source and binary kits)You can mail me by clicking here <p>Sorry, but a Javascript-enabled browser is required to read the mail address. </p> Chakra (JScript engine) Chakra is a JavaScript engine developed by Microsoft for its Internet Explorer 9 (IE9) web browser. A distinctive feature of the engine is that it JIT compiles scripts on a separate CPU core, parallel to the web browser.[1][2] The engine is also able to access the computer's graphics processing unit (GPU), in particular for 3D graphics and video.[3] March 2011 performance tests for ZDNet concluded that Internet Explorer 9 (32-bit), Chrome 10, and Firefox 4 release candidate were "pretty evenly matched.

JsUnit: JavaScript Engines and Products. This page give a short overview of the JavaScript language, available engines and JavaScript enabled products. Some of them are explained on separate pages demonstrating the usage of JavaScript in general and JsUnit especially in their context. JavaScript Language JavaScript is normally recognized as scripting language for browsers only. While the the most browsers understand JavaScript to some extent, the language itself is not limited for browser usage. A lot of people also accuse the language of the reason for browser incompatibilities or security holes, but this is not true wither. Listening To Reason: A Simple JavaScript Command Line Interpreter for Windows in JScript.Net.

I've been playing around with JavaScript quite a bit lately, and one thing I enjoyed having was a web-based JavaScript shell for trying out JavaScript commands quickly. I was also thinking about the fact that my command-line skills have gotten a little rusty lately, and that I should get those back into shape. I remembered JScript.Net, which I've been meaning to read more about anyway as a possible solution for embedded scripting in .net applications. So I decided to write a simple interactive command-line interpreter, and see how far I got. JScript .NET Articles. Official Home of Goto.js. Passing Arguments To Embedded JavaScript. So, you're writing an embedded script and you want to pass some arbitrary arguments and parameters to your javascript. How do you do it? This quick little tutorial will show you two examples, one using the HTML5 data attribute, and the other using the query string.

Method 1: HTML5 'data' Attribute. How would I design a client-side Queue system. Event properties. Page last changed today See section 7E and 7F of the book. The target/srcElement properties are sometimes buggy in Explorer 5 on Mac and unreliable in Netscape 4. On this page I give some example scripts for reading out event properties. There are very serious browser incompatibilities in this area.

As soon as we want to read out information about the event, we’re inundated by an immense amount of properties, most of which do not work in most browsers. I am not going to give an alphabetical list of properties, since it wouldn’t help a bit to make you understand all this — the situation is too confusing. What is the type of the event? Console is undefined error in IE9. Device and Viewport Size In JavaScript. ScottHamper/Cookies. Cookies. Page last changed today. How can I use PHP or JS/HTML to dual post to a URL.

Using JavaScript and CSS with your WordPress Plugin. This post was written as part of the How to Write a WordPress Plugin series. A lot of plugins nowadays are more reliant on JavaScript and Cascading Style Sheets. It is important to separate your JavaScript and CSS into separate files so that the plugin is easier to maintain. This portion of the series will cover how to load JavaScript and CSS files for your plugin. Ph. This post is about JavaScript performance but I would like to start it by telling a story that might seem unrelated to JS. Shawn Pringle - Shawn Pringle's Web Document. In the EUPHORIA 4.0 Standard Library there are many that take some notion of a needle and haystack: You can conceptually divide these into five classes depending on what kind of object you take as the 'needle'.

Consider s a haystack and x a needle and the abstract notion of matching. Rwldrn/idiomatic.js. SET JSCRIPT .NET AS THE DEFAULT SCRIPTLANGUAGE for (eBook PDF) Visual Studio C Sharp Book. JavaScript Objects. Detect Client Visitors IP , Country and City by Javascript, jQuery & PHP. Http headers - Get Client IP using just Javascript. Jurassic - A Javascript Compiler for .NET. Onclick to change cookie value JavaScript and AJAX forum at WebmasterWorld. Asynchronous Technologies: AJAX, AJAH, AHAH, and AJAJ. Hey guys and gurls! AHAH(Asynchronous HTML over HTTP) Javascript – Traversing the HTML DOM recursively. Javscript tutorial to learn basic HTML DOM methods and implement it to traverse the HTML element tree. This post will give idea about HTML DOM Objects and way we can use its methods and attributes to navigate or traverse through it. Introduction: How to traverse the complete HTML BODY covering each HTML element recursively and forming a tree You need to be aware of very basic Javscript DOM methods.

Ariel Flesler: jsDump - Pretty dump of any Javascript data. Introduction. New JS SDK with OAuth 2.0 saving subdomain in fbsr_ cookie? - Facebook Stack Overflow. Online JavaScript beautifier. JumpStart Home. Cerny.js - Introduction. Introduction. jPaq - Build Your Own JavaScript Library! JavaScript. Jsc (c# to javascript)

Thinking Async. JScript Language Tour (JScript .NET) .NET Framework General Reference. JScript (JScript.NET) Saving app settings - What's the opposite of appsettingsreader? JScript .NET Language Reference. JavaScript Security, Frames and Multiple Domains. Microsoft Jscript.Net Programming - Justin Rogers. JScript Compiler Options Listed by Category (JScript .NET) Compiling JScript Code from the Command Line (JScript .NET) Environment.GetCommandLineArgs Method (System) Styling Checkboxes and Radio Buttons With CSS and JavaScript. Environment Class (System) Something clever should go here. .net - What are people using JScript.Net for. A JScript .NET Design Donnybrook - Fabulous Adventures In Coding. Navigator.geolocation.getCurrentPosition sometimes works sometimes doesn't.