Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alert('new file loaded');
- var message_id=0;
- var chatid=0;
- var dest=0;
- var chat_txt='blank';
- var privacy=0;
- var message='blank';
- jQuery(document).ready( function($) {
- data={action: 'chat_comms', nonce: snonce, id: userid, txt: message};
- data.txt=message;
- console.log('this is the first console log called on document load');
- console.log(data);
- // ok we have logged the information being sent by ajax go ahead and send it...
- jQuery.post( ajaxurl, data, function(response) {
- console.log('this is the reply for the document.ready call');
- console.log(response);
- } );
- } );
- function send_message(value){
- data.txt=value;
- data.snonce= 'now set';
- console.log('this is the first console log called on send message');
- console.log(data);
- jQuery.post( ajaxurl, data, function(response) {
- console.log('this is the reply for the send message call');
- console.log(response);
- } );
- }
- function open_chat(thread){
- document.getElementById('initiate_chat').style.display='inline';
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment