How does AJAX work?

If you are totally new to AJAX (which stands for Asynchronous Javascript And XML), the AJAX entry on wikipedia is a good starting point: Like DHTML and LAMP, AJAX is not a technology in itself, but a group of technologies. AJAX uses a combination of: HTML and CSS for marking up and styling information. The DOM accessed … Read more

What language is JavaScript written in?

Javascript is just a standard, more formally known as ECMAScript. It can be implemented in any language, just like any standard. Chrome’s Javascript engine, V8, is written in C++. From the project page: V8 is written in C++ and is used in Google Chrome, the open source browser from Google. V8 implements ECMAScript as specified in ECMA-262, … Read more

Set value to currency in

Add step=”0.01″ to the <input type=”number” /> parameters: Demo: http://jsfiddle.net/uzbjve2u/ But the Dollar sign must stay outside the textbox… every non-numeric or separator charachter will be cropped automatically. Otherwise you could use a classic textbox, like described here.

Print PDF directly from JavaScript

Based on comments below, it no longer works in modern browsersThis question demonstrates an approach that might be helpful to you: Silent print an embedded PDF It uses the <embed> tag to embed the PDF in the document: Then you call the .print() method on the element in Javascript when the PDF is loaded: You could place the embed in … Read more