Guest User

Untitled

a guest
Apr 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. function sendWarnings() {
  2. // Grab everything with the warning class name and add
  3. // it's value to an array.
  4. var warnings = $A();
  5. $$('.warning').each(function(el, i) {
  6. warnings.push(el.value);
  7. });
  8.  
  9. // Post the warnings and display the response
  10. new Ajax.Request('ajax_send.php', {
  11. method: 'post',
  12. parameters: { tst: $('tst').value, warnings: warnings },
  13. onSuccess: function(transport) {
  14. $('multi_send_rspnce').innerHTML = transport.responseText;
  15. }
  16. });
  17. }
Add Comment
Please, Sign In to add comment