Welcome Guest, Not a member yet? Register   Sign In
sending data to the controller using java
#1

[eluser]Brain Coder[/eluser]
hey all

i have a problem using the jquery and send the form data to the contoller

the ajax function

Code:
$.post('submit.php',$(this).serialize()+'&ajax=1',
                
                    function(data){
                        if(parseInt(data)==-1)
                            $.validationEngine.buildPrompt("#captcha","* Wrong verification number!","error");
                            
                        else
                        {
                            $("#contact-form").hide('slow').after('<h1>Thank you!</h1>');
                        }
                        
                        $('#loading').css('visibility','hidden');
                    }
                
                );

i want to send the data to the controller
contact/index

wut the changes in this line
'submit.php',$(this).serialize()+'&ajax=1',

to submit the data

hope u can understand me guys

thanks


Messages In This Thread
sending data to the controller using java - by El Forum - 01-09-2010, 02:55 PM
sending data to the controller using java - by El Forum - 01-09-2010, 08:06 PM
sending data to the controller using java - by El Forum - 01-09-2010, 11:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB