Skip to main content

Home/ javascript/ Group items tagged http

Rss Feed Group items tagged

Javier Neira

JavaScript EE, Part 1: Run JavaScript files on the server side - 0 views

  • freedom to use the same JavaScript routines on both servers and clients. In addition, the techniques presented throughout this series will allow you to maintain a single code base for both Ajax and non-Ajax clients
  • This double-coding issue can be avoided by using JavaScript combined with Java code on the server side, getting full support of scripting languages through the javax.script API. In addition, the Java SE Development Kit (JDK) 6 already includes Mozilla's Rhino JavaScript engine, which means no setup is required.
  • the toSource() method, which all JavaScript objects must have.
  • ...5 more annotations...
  • engine.eval(scriptReader, vars);
  • sun.org.mozilla.javascript.internal.NativeObject
  • all data exchange between the Java code and the executed script should be done through primitive variables, strings, and Java objects (for example, beans) whose properties and methods can be accessed very easily in the JavaScript code. Simply said, don't try to access native JavaScript objects in your Java code. Use Java objects in the JavaScript code instead.
  • Note that javax.script.Invocable is an optional interface, which some script engines may not implement. The JavaScript engine that comes with JDK 6 does support this interface.
  • you can significantly reduce the execution time by compiling the scripts, using the methods provided by another optional interface named javax.script.Compilable, which is supported by the JavaScript engine of JDK 6.
Ivan Pavlov

narwhal - 0 views

shared by Ivan Pavlov on 02 Jun 09 - Cached
  •  
    Narwhal is a server-side JavaScript standard library conforming to the ServerJS standard. It is designed to work with multiple JavaScript interpreters, and to be easy to add support for new interpreters. Wherever possible, it is implemented in pure JavaScript to maximize reuse of code between platforms.
Mohammed GHERAÏSSA

Simple Page Peel Effect with jQuery & CSS - 0 views

  •  
    You have probably seen these forms of advertisings where you can peel a corner of a website and see a message underneath. It seems most are flash driven, but I
yc c

Better, Stronger, Safer jQuerify Bookmarklet » Learning jQuery - Tips, Techni... - 0 views

  •  
    when you're on a page in which you want to play around with jQuery in the console, just click the bookmarklet.
yc c

So, you think you know JavaScript? - Dmitry Baranovskiy's Web Log - 6 views

  •  
    Try to answer what will be alerted in each case without running them in the console.
yc c

wtfjs - 1 views

shared by yc c on 14 Feb 10 - Cached
  •  
    JavaScript is a language we love despite it giving us so much to hate. This is a collection of those very special irregularities, inconstancies and just pain unintuitive moments for the language of the web.
qualitypoint Tech

Javascript code for selecting/de-selecting all Checkboxs - 1 views

  •  
    Check-boxes are useful for allowing the user to select multiple options when filling a HTML web form.
yc c

Color Picker - Raphaël - 0 views

shared by yc c on 04 Mar 10 - Cached
  •  
    No images. No libraries*. Works even in IE6. // Color Picker by Raphaël - raphaeljs.com var icon = Raphael("picker", 23, 23).colorPickerIcon(11, 11, 10); icon.attr({cursor: "pointer"}).node.onclick = function () {    document.getElementById("benefits").style.visibility = "visible";    var out = document.getElementById("output");    out.style.visibility = "visible";                   // this is where colorpicker created    var cp = Raphael.colorpicker(document.body.offsetWidth / 2 - 150, 250, 300, "#eee", document.getElementById("picker2"));                   out.onkeyup = function () {        cp.color(this.value);    };    // assigning onchange event handler    cp.onchange = function (clr) {        out.value = clr;        document.body.style.background = clr;        document.body.style.color = Raphael.rgb2hsb(clr).b s it. Too easy                    icon.node.onclick = null;}; 
yc c

JavaScript InfoVis Toolkit - Interactive Data Visualizations for the Web - 0 views

  • Features Multiple Data RepresentationsTreemaps, Radial Layouts, HyperTrees/Graphs, SpaceTree-like Layouts, and more...
« First ‹ Previous 361 - 380 of 657 Next › Last »
Showing 20 items per page