Skip to content

Instantly share code, notes, and snippets.

@scripting
Created February 19, 2015 00:39
Show Gist options
  • Save scripting/a3a8232d193ea88e04ba to your computer and use it in GitHub Desktop.
Save scripting/a3a8232d193ea88e04ba to your computer and use it in GitHub Desktop.
Example script for PagePark pages that need to do something asynchronous, like reading a file over the web.
httpReadUrl ("http://scripting.com/misc/uppertext.txt", function (s) {
httpReturn (s.toUpperCase (), "text/plain");
});
undefined; //return undefined so PagePark knows not to return a value
@scripting
Copy link
Author

This script is used to illustrate a new feature in PagePark.

https://github.com/scripting/pagepark#v054-21815-by-dw

It works, you can try it out here..

http://pagepark.io/test.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment