[jQuery] need hellp with .get and json

[jQuery] need hellp with .get and json


hey. i cannot return the parameters from json , im using .get and also in the
same page i got the validation of jorn 's form (maybe its conflicts ?)
herer is the code
hope some1 will help
json returns :
{"statusmsg":"1","errmsg":"0","desiredurl":"dsfandsdfdsf-ds"}




function ChangeUrlSite() {
var bridename=$("#bride_name").val();
var groomname=$("#groom_name").val();
var bridelast=$("#bride_last").val();
var groomlast=$("#groom_last").val();


$.get("/includes/private/php/checkVars.php", {
bn: bridename, gn: groomname,
bl:bridelast,gl:groomlast,what:"SuName"}, function(data){

alert(data.statusmsg.value);
//$("#desiredUserName").html(data);
}
);



}
$("#bride_name,#groom_name,#bride_last,#groom_last").click( function() {
ChangeUrlSite(); } );
</script>
--
View this message in context: http://www.nabble.com/need-hellp-with-.get-and-json-tf3952917s15494.html#a11215240
Sent from the JQuery mailing list archive at Nabble.com.