Guest User

Untitled

a guest
Jun 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. if(error.join()!="")
  2. {
  3. $("#sub_error").fadeTo(200,0.1,function()
  4. {
  5. $("#sub_error").html(error.join("<br/><br/>")).append('<br/>
  6. <input type="button" name="err_ok" id="err_ok" value="ok">')
  7. .addClass('subboxerror').fadeTo(900,1);
  8. bindEvents();
  9. });
  10.  
  11. function bindEvents()
  12. {
  13. $("#err_ok").click(function()
  14. {
  15. $("#sub_error").fadeTo(1000,0);
  16. });
  17. }
  18. }
  19. else
  20. {
  21. $("#frm_sub")
  22. .removeClass().addClass('messagebox')
  23. .text('Submitting...').fadeIn("slow");
  24.  
  25. $.post("register_user.php",
  26. {
  27. $('#frm1').serialize()
  28. } ,
  29. function(data)
  30. {
  31. alert(data);
  32. });
  33. });
  34. }
  35.  
  36. $.post("register_user.php", $('#theForm').serialize(), function(data) { //...
Add Comment
Please, Sign In to add comment