Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $(document).ready(function() {
- $('input').on('click', function() {
- $.ajax({
- url: "{{ url_for('dashboard') }}",
- method: "POST",
- data : JSON.stringify({
- matched : $('#match').val(),
- ignore : $('#ignore').val(),
- username : $('#username').text()
- }),
- contentType: 'application/json;charset=UTF-8',
- success: function (response) {
- window.location = "{{url_for('chatbox', username='John')}}";
- }
- });
- });
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement