mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 11:52:54 +00:00 
			
		
		
		
	Create handler for form submit
This commit is contained in:
		@@ -11,7 +11,17 @@ $('#container').on('click', '.anchor', ( function (event) {
 | 
			
		||||
    console.log(data);
 | 
			
		||||
    ws.send(data);
 | 
			
		||||
}));
 | 
			
		||||
 | 
			
		||||
$('form#anchor_login_event').on('submit', (function (event) {
 | 
			
		||||
        event.preventDefault();
 | 
			
		||||
 | 
			
		||||
        let anchorName = $(this).attr('id').replace('_event', '');
 | 
			
		||||
        $.post(
 | 
			
		||||
            $(this).attr('action'),
 | 
			
		||||
            $(this).serialize(),
 | 
			
		||||
            function (data) {}
 | 
			
		||||
        );
 | 
			
		||||
}));
 | 
			
		||||
    }));
 | 
			
		||||
 | 
			
		||||
ws.onmessage = function (messageEvent) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user