hardbrasil Posted September 25, 2014 Share Posted September 25, 2014 We create a ajax to capture data from Pin_code module, therefore when i execute the ajax i got “error 302 Found”. i would like to know how i need to proceed to bring correctly data from ajax. my code is: $(document).ready(function(){ $('#pincode_gerador').click(function(){ $.ajax({ type:'POST', url:'index.php?m=geradorpincode', beforeSend:function(){ $('#pincode_gerador').text('Gerando...'); }, success:function(data){ alert(data); } }); }); }); /* Código do módulo */ function geradorpincode_clientarea($vars) { $option1 = $vars['option1']; $codepin = uniqid(); echo 'works!'; } 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted September 26, 2014 Share Posted September 26, 2014 can you provide your testing URL to check? you can PM it 0 Quote Link to comment Share on other sites More sharing options...
hardbrasil Posted September 26, 2014 Author Share Posted September 26, 2014 can you provide your testing URL to check? you can PM it thank you fellar, we found the solution, did you work like frelancer? if yes what about your rate/hour thanks 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.