diff options
Diffstat (limited to 'static/functions/bbcode_sandbox.js')
-rw-r--r-- | static/functions/bbcode_sandbox.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/static/functions/bbcode_sandbox.js b/static/functions/bbcode_sandbox.js new file mode 100644 index 0000000..fa10253 --- /dev/null +++ b/static/functions/bbcode_sandbox.js @@ -0,0 +1,14 @@ +$(document).ready(function() { + $("#sandbox").keyup(function() { + $.ajax({ + type : "POST", + dataType : "html", + url : "ajax.php?action=preview", + data : { + "body" : $(this).val() + } + }).done(function(response) { + $("#preview").html(response); + }); + }); +});
\ No newline at end of file |