PHP Classes

File: test/ssa/toEndTest/test.html

Recommend this page to a friend!
  Classes of thomas   SSA   test/ssa/toEndTest/test.html   Download  
File: test/ssa/toEndTest/test.html
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: SSA
Call PHP classes from JavaScript on Web pages
Author: By
Last change:
Date: 10 years ago
Size: 2,441 bytes
 

Contents

Class file image Download
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <title> Page de test de ssa</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <script type="text/javascript" src="../../../javascript/ssa.js" ></script> <script type="text/javascript" src="javascript.php?service=helloWorldService"></script> <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script type="text/javascript"> helloWorldService.helloYou('deblockt').done(function(data) { document.getElementById('helloYou').innerHTML = data; }); $().ready(function(){ $('input[name="your_name"]').blur(function(){ helloWorldService.helloYou($(this).val()).done(function(data){ document.getElementById('helloYou2').innerHTML = data; }); }); }); </script> </head> <body> <div>Hello world return : <span id="helloYou"></span> </div> <pre> <code class="javascript"> HelloWorld.helloYou('deblockt').done(function(data) { document.getElementById('helloYou').innerHTML = data; }); </code> </pre> <div> Hello You <input name="your_name" placeholder="Your name"/> : <span id="helloYou2"></span></div> <pre> <code class="javascript"> $('input[name="your_name"]').blur(function(){ HelloWorld.helloYou($(this).val()).done(function(data){ document.getElementById('helloYou2').innerHTML = data; }); }); </code> </pre> <form action="http://localhost:8080/ssa/test/ssa/toEndTest/run.php" method="POST" enctype="multipart/form-data"> <input type="text" name="service" value="HelloWorld.getFileContent"/> <input type="file" multiple="multiple" id="fileUpload1" name="file[]"/> <input type="file" multiple="multiple" id="fileUpload2" name="file[]"/> </form> </body> </html>