Welcome Guest, Not a member yet? Register   Sign In
jQuery $.post and CI
#11

[eluser]damien66[/eluser]
Ok, sorry it was an error.

Now the firebug response is : 'data received' (my php echo)

But, the same problem... my javascript doesnt work Sad
#12

[eluser]steelaz[/eluser]
Can you elaborate? In what way it "doesn't work"?
#13

[eluser]damien66[/eluser]
My ajax method call the Php with good arguments and the Php is executed.
Here, all is ok.

But why the 'success' is'nt launched ? Sad
#14

[eluser]steelaz[/eluser]
Is 'error' string being logged in console? If so, update

Code:
error: function(){
    console.log('error')
}

with

Code:
error: function(jqXHR, textStatus, errorThrown){
    console.log(jqXHR);
    console.log(textStatus);
    console.log(errorThrown);
}

and check Firebug console for returned variables. They should give you information why the call is failing.
#15

[eluser]guidorossi[/eluser]
You should:

Code:
$.post("<?=base_url()?>create-account", { name: "John", pass: "test" }, function(data){
     alert("Data Loaded: " + data);
   });




Theme © iAndrew 2016 - Forum software by © MyBB