slashrun.org is a framework for a collective exploration of the potential locked up in text at the digital age

SLASHRUNS : MODES OF EXECUTION

1. from any web-page

You can embed a slashrun within your own web-page, using the following html snippet:

<form action="http://run.slashrun.org/War" method="post">
<textarea wrap="off" name="source">
your code here...
</textarea>
<input type="submit" value="run" />
</form>

The following attributes can make the textarea feel like a real pro:
style="width:100%" : making the text-area as wide as possible.
rows="12" : giving the text-area a decent number of rows.
spellcheck="false" : disabling spell-check in Firefox.

2. from a link

You can execute a slashrun via a link, using the following pattern:

http://run.slashrun.org/War?source=http://foo.org/bar.txt

The source parameter should be the valid url of a text file containing the source code.

3. from your desktop

Drag-and-drop this link onto your desktop: the war of the words. Once the shortcut is there, it will launch an empty slashrun when activated.

4. from your own mashup

From Ajax to Ruby, pick the language of your choice... The following PHP code could serve as a starting point:

$source = 'your code here...';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://run.slashrun.org/War');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'source=' . urlencode($source));

header('Content-Type: application/x-java-jnlp-file');
header('Content-Disposition: inline; filename="War.jnlp"');

curl_exec($ch);
curl_close($ch);