All Posts

Import a URL With Ruby

· 1 min read

def importHTML require 'open-uri' @source = open("http://domain.com/some.html").read end uses a reference parameter when getting remote XML def importXML ...

Images Loaded or Not? Check With JavaScript

· 1 min read

// Check if images load properly // returns false if image not loaded function imgOK(img) { if (!img.complete) { return false; } if (typeof img.naturalWi...

Showing 41-50 of 75 posts