Showing posts with label The JavaScript Programming Language. Show all posts
Showing posts with label The JavaScript Programming Language. Show all posts

Thursday, February 21, 2013

O'Reilly Media book: Learning from jQuery

Learning from jQuery:
If you’re comfortable with jQuery but a bit shaky with JavaScript, this concise guide will help you expand your knowledge of the language—especially the code that jQuery covers up for you. Many jQuery devotees write as little code as possible, but with some JavaScript under your belt, you can prevent errors, reduce overhead, and make your application code more efficient.

Saturday, September 8, 2012

plupload: completed my experiments for now

plupload: experimenting with the sample application

  • the plupload ZIP archive (available on http://plupload.com/) comes with a sample application
  • copied the contents of the ZIP file to /srv/www/htdocs/plupload/ on an openSUSE-12.1 Linux box ("HOST") – this is where my Apache2 httpd serves HOST/plupload/ resp.  HOST/plupload/examples/custom.html from
  • where does the application want to get the files uploaded to? silly me didn't have a close enough look at that for too long
  • plupload/examples/upload.php has a $targetDir for that; apparently the proper way would be to set upload_tmp_dir in the system php.ini (which is de-commented there, so that we don't get files dropped, where we don't expect them, and for as long as we don't expect them); but for our local experiments we choose the other branch and set it to our local plupload/examples/uploads/ directory (i.e. /srv/www/htdocs/plupload/uploads/) – success: it works!!!
  • we have a working application
  • the Apache log-files don't actually mention the file uploaded – that's sad, but why should I care?
which browsers and front-ends resp. front-end plugins talking to the Apache httpd work?
  • Mac OS X: Chromium 22.0.1204.0 / Firefox/16.0 / Safari (6.0 (7536.25)) together with "html5" / "flash" / "silverlight"
  • openSUSE-12.1/12.2 : Chromium 22.0.1126.0 / Firefox/15.0 together with "html5" / "flash"
  • Android 4.0.3 (on a Samsung Galaxy SII): the built-in browser (AppleWebKit/534.30) / Chrome 18.0.1025.166 (AppleWebKit/535.19) together with "html5"
  • Android 3.1 (on a Samsung Galaxy Tab 10.1): the built-in browser browser (AppleWebKit/534.13) together with "html5" / "flash"
  • WinXP (5.1.2600 Service Pack 3 Build 2600): IE8 together with "html4" / "flash" / "silverlight" ("html5" does not exist) / Chrome 22.0.1229.39 with "html5" / "html4" / "flash"
  • [now] …
  • [To Be Done] what about trying a couple of browsers on other Windows platforms?

Thursday, August 30, 2012

[scraping related] how does a browser tell a web-server, that it doesn't want JavaScript?

Rephrasing …
If I tell a browser to not "accept" JavaScript, what does the browser do with that directive?

  • is that related to the User-Agent or Accept HTTP header fields?
  • does that "just" mean, that the browser doesn't execute the JavaScript bits?

(where to disable JavaScript in browsers? [link])

Does Michael Schrenk talk about this in his book or on the related website?

Webbots, Spiders, and Screen Scrapers:







He mentions JavaScript a couple of times.
  • "JavaScript can change a form just before submission", page 70 – nope
  • "bizarre JavaScript and cookie behavior", page 229 – nope
  • "web design techniques that hinder search engine spiders", esp. JavaScript, page 300 – nope
  • "killing spiders", "use cookies, encryption, JavaScript, and redirection", page 313 – nope

Wednesday, August 29, 2012

plupload - a tool for uploading files using Flash, Silverlight, Google Gears, HTML5 or Browserplus

Plupload - A tool for uploading files using Flash, Silverlight, Google Gears, HTML5 or Browserplus

I am having a look into this awesome technology for uploading files.

  • implemented in JavaScript plus … – your interface is in JavaScript
  • it is Open Source
  • find it listed and compared at en.wikipedia.org/wiki/Upload_components
  • the official website: plupload.com
  • have a look at the examples at plupload.com [Link]
  • have a look at the documentation at plupload.com [Link]
  • they also have forums at plupload.com [Link], one of them is called Tutorials

where to disable JavaScript in browsers

This list will not be complete, I just gave it such a general name, so that it's short enough.
  • Chromium, Google Chrome: Settings > Privacy > Content settings > JavaScript > Manage exceptions > JavaScript exceptions > Hostname pattern
  • Mozilla Firefox: Firefox itself only has the general JavaScript Yes/No switch; through NoScript you can declare a site untrusted; there is a NoScript multi-function button on your navigation toolbar, that helps you with that

Monday, August 27, 2012

O'Reilly Media book: Learning JavaScript Design Patterns

Learning JavaScript Design Patterns:
With Learning JavaScript Design Patterns, you’ll learn how to write beautiful, structured, and maintainable JavaScript by applying classical and modern design patterns to the language. If you want to keep your code efficient, more manageable, and up-to-date with the latest best practices, this book is for you.

O'Reilly Media book: jQuery Pocket Reference

jQuery Pocket Reference:
jQuery is the "write less, do more" JavaScript library. Its powerful features and ease of use have made it the most popular client-side JavaScript framework for the Web. This book is jQuery's trusty companion: the definitive "read less, learn more" guide to the library. jQuery Pocket Reference explains everything you need to know about jQuery, completely and comprehensively.

O'Reilly Media: JavaScript & jQuery: The Missing Manual

JavaScript & jQuery: The Missing Manual:
You don't need programming experience to add interactive and visual effects to your web pages with JavaScript. This Missing Manual shows you how the jQuery library makes JavaScript programming fun, easy, and accessible to web designers at every level of experience. You'll quickly learn how to use jQuery to help your site run smoothly and look great across multiple web browsers -- without typing a lot of code.

Monday, July 30, 2012

The Pragmatic Bookshelf: Pragmatic Guide to JavaScript

The Pragmatic Bookshelf | Pragmatic Guide to JavaScript:

'via Blog this'

Google Script: Enterprise Application Essentials

Google Script: Enterprise Application Essentials:
How can you extend Google Apps to fit your organization’s needs? This concise guide shows you how to use Google Scripts, the JavaScript-based language that provides a complete web-based development platform—with no downloads, configuration, or compiling required. You’ll learn how to add functionality to Gmail, spreadsheets, and other Google services, or build data-driven apps that run from a spreadsheet, in a browser window, or within a Google Site.

O'Reilly Media book: ClojureScript: Up and Running

ClojureScript: Up and Running:
This book will be an introduction and guide to using ClojureScript, targeted at developers who know JavaScript and are willing to learn Clojure.

Thursday, October 28, 2010

Selenium: strftime, sprintf

I would like to see a strftime or an sprintf in Selenium.

Javascript has a printf, but only for files, not for strings.
(Maybe there is a way to regards strings as files, but my Javascript competence is not good enough for that.)

I found Javascript code, that implements sprintf.

(I only introduced "Selenium" in the title, because the Tweet created from a title w/o it looks stupid.)