|
|
# 5 |
|
חבר וותיק
|
this is an sample ajax request:
קוד:
<script type="text/javascript" src="jquery-1.2.6.min.js"></script>
<script>
$("div#validate_information").click( function() {
username = $("div#username");
password = $("div#password");
$.get("a.php", { user: username.text(), pass: password.text() }, function(returnedValue){
class = "ohboy";
if (returnedValue == "okay")
class = "okay";
username.addClass(class);
password.addClass(class);
});
});
</script>
btw i would use JSON to serialize the variables i want to send in this stream
__________________
|
|
| חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים) | |
|
|