Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <input type="button" id='ajaxbutton' name="Button2" value="Кнопка AJAX">
- <script>
- $('#ajaxbutton').live("click", function() {
- $('#result').html("<img src='ajax-loader.gif'>" );
- $.get('send.php', { textmsg: $('#contentbox').value }, function(data) {
- if (data == 200) {
- $('#result').html("<img src='ajax-loader1.gif'>" );
- } else {
- $('#result').html("<img src='ok.png'>");
- }
- });
- });
- </script>
Add Comment
Please, Sign In to add comment