Create attractive VASL scenarios, with loads of useful information embedded to assist with game play.
https://vasl-templates.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
576 B
20 lines
576 B
6 years ago
|
|
||
|
// --------------------------------------------------------------------
|
||
|
|
||
|
$(document).ready( function () {
|
||
|
$("form").submit( function( evt ) {
|
||
|
evt.preventDefault() ;
|
||
|
var data = { val: $("form input[name='val']").val() } ;
|
||
|
$.post( {
|
||
|
url: gGenerateURL,
|
||
|
data: data,
|
||
|
success: function( data ) {
|
||
|
$("#response").text( data ) ;
|
||
|
},
|
||
|
error: function( xhr, status, errorMsg ) {
|
||
|
$("#response").text( "ERROR: "+errorMsg ) ;
|
||
|
},
|
||
|
} ) ;
|
||
|
} ) ;
|
||
|
} ) ;
|