Welcome Guest, Not a member yet? Register   Sign In
Ajax msg display help!
#4

[eluser]Dennis Rasmussen[/eluser]
You're welcome Smile

And for the callback you requested, place it here:
Code:
$.ajax({
                url: "<?php echo site_url('users/add'); ?>",
                type: 'POST',
                data: form_data,
                success: function(msg) {
                    alert(msg);
                    // Anything goes here
                    // Could be something like $('#form').hide();
                    // However I don't know what you mean by "closing the form" :) It oculd be anything
                }
              });
      return false;


Messages In This Thread
Ajax msg display help! - by El Forum - 10-19-2010, 01:37 PM
Ajax msg display help! - by El Forum - 10-19-2010, 02:02 PM
Ajax msg display help! - by El Forum - 10-19-2010, 02:17 PM
Ajax msg display help! - by El Forum - 10-19-2010, 02:20 PM
Ajax msg display help! - by El Forum - 10-19-2010, 02:33 PM
Ajax msg display help! - by El Forum - 10-19-2010, 02:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB