NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
JQuery ajax crashes in debug.


Joined: 26 Aug 2010
Posts: 7
Reply with quote
This is crashing the IDE but works in both standalone browsers.

$("#addNew").submit(function (){
var x;
$("#UserExists").hide();
var text = $('#username').val();

var textlength = text.length;
if(textlength>2)
{
var name = $('#username').val();
var data = 'username='+name;
$.ajax({
type:"POST",
url:"CheckName.php",
data:data,
async: false,
success:function(html){
if(html=="That Username is already in use")
{
x=2;
$("#UserExists").show();
$("#UserExists").text(html);

}
if(x==2)
{
return false;

}
}
});
}

});
View user's profileFind all posts by mike628Send private message
JQuery ajax crashes in debug.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic