% include('/elements/xmlhttp.html',
'method' => 'POST',
'url' => $action,
'subs' => [ 'start_job' ],
'key' => $key,
)
%>
<% include('/elements/init_overlib.html') %>
<%init>
my( $formname, $fields, $action, $url_or_message, $key ) = @_;
$key = '' unless defined $key;
my $url_or_message_link;
if ( ref($url_or_message) ) { #its a message or something
$url_or_message_link = 'message='. uri_escape( $url_or_message->{'message'} );
$url_or_message_link .= ';url='. uri_escape( $url_or_message->{'url'} )
if $url_or_message->{'url'};
} else {
$url_or_message_link = "url=$url_or_message";
}
#stupid safari is caching the "location" of popup iframs, and submitting them
#instead of displaying them. this should prevent that.
my $popup_name = 'popup-'.time. "-$$-". rand() * 2**32;
%init>