Posts by zyzzete • 48 points
7 posts
-
1
votes2
answers537
viewsQ: Problems with JSON on the server
Hello I’m having trouble with the JSON when I climb it to the server.. Example of one of my code they use JSON: $("input[name=people]").keyup(function(){ if($(this).val() != ''){ $.ajax({ url:…
-
0
votes1
answer341
viewsQ: Run the function once take the Return and use in a codeIgniter loop
Hello I’m having trouble recovering the Return from a model and using it in a loop (foreach), without the function running again several times... How can I take Return and use it several times? Code…
-
2
votes1
answer93
viewsA: Sucess Ajax does not work with Codeigniter Controller
It’s typed wrong, the correct is: success you can also use the error, if any problem occurs, it would look more or less like this: success: function(){ alert("teste"); }, error: function(){…
-
0
votes0
answers120
viewsQ: Insert an array with codeIgniter and ajax
Hello I am trying to insert an array, but in this case, you can insert multiple lines in db. How do I pass the data to codeIgniter: var productsData = []; $(".productRow").each(function(i){ var…
-
0
votes2
answers726
views -
-1
votes1
answer1006
viewsA: Insert data into db with codeIgniter and ajax
I got it, the problem was because I called on the controller insert_user_data himself, and not the model insert_user The original controller code was: public function insert_user_data(){…
-
0
votes1
answer1006
viewsQ: Insert data into db with codeIgniter and ajax
Hello I am trying to insert data in my database with ajax but I am not getting, always returns me the error message Controller: public function insert_user_data(){ $this->load->model('crud');…