Login   Register  
PHP Classes
elePHPant
Icontem

File: ajax/a.js

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Pierre-Henry Soria  >  PHP Lorem-Ipsum Generator Class  >  ajax/a.js  >  Download  
File: ajax/a.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Lorem-Ipsum Generator Class
Generate fake text to test page presentation
Author: By
Last change:
Date: 1 year ago
Size: 560 bytes
 

Contents

Class file image Download
/*
 * Author:           Pierre-Henry Soria <ph7software@gmail.com>
 * Copyright:        (c) 2013, Pierre-Henry Soria. All Rights Reserved.
 * Link:             http://github.com/pH-7/Lorem-Ipsum-Generator
 * License:          GNU General Public License <http://www.gnu.org/licenses/gpl.html>
 */

$('#submit').click( function() {
    var sFormName = 'form[name=loremipsum] ';
    var oData = {count : $(sFormName + '#number').val(), format : $(sFormName + '#format').val()};
    $.post('ajax/b.php', oData, function(sOutput) {$('#output').text(sOutput)});
});