Welcome Guest, Not a member yet? Register   Sign In
why js is not excuted?
#1

[eluser]chmod[/eluser]
this is my jquery code,and $.ajax will not return a value,why?

Code:
<!--css link-->
        <link type="text/css" rel="stylesheet" href="http://localhost/css/index.css" />
        <!--javascript-->
        [removed][removed]
        [removed]
            $(document).ready(function(){
                $("#user_name").blur(function(){            
                    $.ajax({
                        type: "POST",
                        url: "/center/register/ajaxcheckuserexist",
                        data: "user_name=" + this.value,
                        sucess:function(msg){
                            alert(msg);
                        }
                    });
                });
            });
        [removed]
#2

[eluser]quince[/eluser]
cause it isn't sucess
it is success
#3

[eluser]chmod[/eluser]
do you descript you idea detailly ?
#4

[eluser]xwero[/eluser]
loner found a typo in the code snippet you added. If you copy pasted it that could be the reason why you are getting no result.
#5

[eluser]uptime[/eluser]
Change this:
Code:
sucess:function(msg){
To that:
Code:
success:function(msg){

The word "success" was mispelled as loner said (that answer was really not clear BTW :-)
#6

[eluser]Colin Williams[/eluser]
Quote:do you descript you idea detailly ?

Now that wasn't clear, uptime! Probably good that you clarified for chmod.
#7

[eluser]chmod[/eluser]
[quote author="uptime" date="1227654280"]Change this:
Code:
sucess:function(msg){
To that:
Code:
success:function(msg){

The word "success" was mispelled as loner said (that answer was really not clear BTW :-)[/quote]


you are right.thanks.




Theme © iAndrew 2016 - Forum software by © MyBB