Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
- <head>
- <title>My page</title>
- </head>
- <body>
- <script type="text/javascript" src="../jquery-1.9.1.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('#button_ajax').click(function() {
- alert("success1");
- $.get('http://localhost/cgi-bin/test_cgi', function(data) {
- alert("success2 :"+ data);
- });
- });
- });
- </script>
- <button id="button_ajax">Clique!</button>
- <div id="ajax">
- <p>Test de merde</p>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement