ajax check members available not work |
[eluser]Why Me[/eluser]
[quote author="noideawhattotypehere" date="1380615743"]Update your files on the server and i will take a look whats wrong.[/quote] i update a files code contr Code: class Ajax_post extends CI_Controller {
[eluser]noideawhattotypehere[/eluser]
First of all get real man, stop using jquery 1.2.6... Lets go then. Code: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> then change your function to: Code: $(document).ready(function(){ Ofc swap hardcoded urls with base_url()
[eluser]Why Me[/eluser]
[quote author="noideawhattotypehere" date="1380621374"]First of all get real man, stop using jquery 1.2.6... Lets go then. Code: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> then change your function to: Code: $(document).ready(function(){ Ofc swap hardcoded urls with base_url()[/quote] i change everything and update to server but not work if you have any code ajax work send me please
[eluser]noideawhattotypehere[/eluser]
Ok lets clear some things up, you go to http://d4yd.com/mycode/home/check_members then your ajax function calls http://www.d4yd.com/mycode/ajax_check_members - do you see your problem? you are missing one uri segment (home).
[eluser]Why Me[/eluser]
[quote author="noideawhattotypehere" date="1380628734"]Ok lets clear some things up, you go to http://d4yd.com/mycode/home/check_members then your ajax function calls http://www.d4yd.com/mycode/ajax_check_members - do you see your problem? you are missing one uri segment (home).[/quote] i check many code ajax to codeigniter and not have code work i hated codeigniter can you send me any code work with ci any example
[eluser]noideawhattotypehere[/eluser]
My last try Controller: Code: class Your_controller extends CI_Controller { Code: $.post("<?php echo base_url()?>your_controller/ajax_checklogin", { login: $("#selector").val() }) user_model->ajax_checklogin returns true if exists, false if not.
[eluser]Why Me[/eluser]
hello bro i try to used get and working good but if change to type post not work code for type GET temp => controller Code: class Your_controller extends CI_Controller { temp = > view Code: <html> "NetworkError: 500 Internal Server Error - http://localhost/mycode/your_controller/info_page you think a problem from config my loclalhost or config codeigniter?
[eluser]noideawhattotypehere[/eluser]
Both post and get works flawlessly on my local enviroment. No idea what might be wrong in yours tho. Wild guess, swap {name:'My Name.!'} to { name: "My Name.!" }, Also what response exactly do you get in firebug?
[eluser]Why Me[/eluser]
[quote author="noideawhattotypehere" date="1380702319"]Both post and get works flawlessly on my local enviroment. No idea what might be wrong in yours tho. Wild guess, swap {name:'My Name.!'} to { name: "My Name.!" }, Also what response exactly do you get in firebug?[/quote] error SyntaxError: illegal character ...t(base_url+'your_controller/info_page',{ name: “My Name.!†},function(data)
[eluser]Why Me[/eluser]
Hello i Solved I change $config['csrf_protection'] = TRUE; to $config['csrf_protection'] = FALSE; everything now fine thank alot noideawhattotypehere |
Welcome Guest, Not a member yet? Register Sign In |