Difference between revisions of "Relay Browser Functions"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>StDoodle
m
Line 4: Line 4:
 
{{flink|void|writeln|string|desc=Same as above, ending with a line break (in the page source).}}
 
{{flink|void|writeln|string|desc=Same as above, ending with a line break (in the page source).}}
  
{{flink|string|form_field|string|desc=Returns the &quote;value&quote; attribute of a previously-submitted input tag.}}
+
{{flink|string|form_field|string|desc=Returns the "value" attribute of a previously-submitted input tag.}}
 
{{flink|string [string]|form_fields|desc=As above, but returned as a map of all values keyed by input names.}}
 
{{flink|string [string]|form_fields|desc=As above, but returned as a map of all values keyed by input names.}}

Revision as of 16:18, 10 April 2010

For general information on how to use these functions, please see Relay Override Scripting.

void write( string )

Writes text to the relay browser.

void writeln( string )

Same as above, ending with a line break (in the page source).


string form_field( string )

Returns the "value" attribute of a previously-submitted input tag.

string [string] form_fields()

As above, but returned as a map of all values keyed by input names.