Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendWarnings() {
- // Grab everything with the warning class name and add
- // it's value to an array.
- var warnings = $A();
- $$('.warning').each(function(el, i) {
- warnings.push(el.value);
- });
- // Post the warnings and display the response
- new Ajax.Request('ajax_send.php', {
- method: 'post',
- parameters: { tst: $('tst').value, warnings: warnings },
- onSuccess: function(transport) {
- $('multi_send_rspnce').innerHTML = transport.responseText;
- }
- });
- }
Add Comment
Please, Sign In to add comment