Dear Everyone

   I make follow jQuery program using $.get but the return always is
undefined. Who can tell me why and How can I realize what I want?
Thanks in advance.

 Wang Suya
.............
<html>
<head>
<script type="text/javascript" src="jquery-1[1].3.1.min.js"></script>
<script type="text/javascript" src="jquery-ui-
personalized-1.6rc6.js"></script>
<script>
function d(b){
        alert(b);
        if(b == 5){
                $("input[name=bango]").attr("disabled","disabled");
        }
}
</script>
</head>
<body>
<table>
<tr><td><input type = "submit" name = "bango" id = "bango" value = "番号取
得"></td></tr>
</table>
<script type="JavaScript" src="jquery-1[1].3.1.min.js"></script>
<script>
        $.get("get_su.php",function(data){
                alert(data.ban);
                d(data.ban);
        },"json");
</script>
</body>
....
get_su.php as bellow:
........
$json = new HTML_AJAX_JSON();
$js = $json->encode(array("ban"=>"1111"));
print"$js";
........
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to