Skip to main content

Home/ javascript/ Group items tagged library

Rss Feed Group items tagged

Mike Chelen

Data scraping with YQL and jQuery | kelvinluck.com - 0 views

  • need a list of all the US National Parks in XML format
  • grab the data from this list on Wikipedia
  • navigating a HTML DOM
  • ...9 more annotations...
  • jQuery to parse the data
  • XPath to your YQL
  • relevant table from the Wikipedia document
  • SELECT * FROM html WHERE url="http://en.wikipedia.org/wiki/List_of_United_States_National_Parks_by_state" AND xpath="//table[@class='wikitable sortable']"
  • XML or JSON
  • creating an XML document
  • AJAX call from jQuery and then loop over the JSON
  • documentation could maybe be clearer
  • CSS style selection engine as well as the XPath one
Javier Neira

RightJS: Home - 0 views

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.
Julian Knight

Whizzywig - 3 views

  •  
    WYSIWYG edit component
Javier Neira

Meet the JavaScript Development Toolkit - 2 views

  •  
    Summary: The JavaScript Development Toolkit (JSDT) is an open source plug-in that brings robust JavaScript programming tools to the Eclipse platform. JSDT streamlines development, simplifies code, and increases productivity for pure JavaScript source files and JavaScript embedded in HTML.
mikhail-miguel

jQuery - 0 views

  •  
    Supposedly one of the best JavaScript libraries. Compact. Nice DOM handling.
« First ‹ Previous 61 - 76 of 76
Showing 20 items per page