. script, .
, , .
, , , php , , , . , . , . php , .
<script type="text/javascript" >
$(document).ready(function(){
$("button").click( function() {
$.get( "/menu_to_body_respond.php", {
pageId: $thisPageId
subSecID: $thisSubID
}, function( resp ) {
$("#left_body").html(resp);
});
});
});
</script>
, , php-
menu_to_body_respond.php
<?php
$pageIDVal = $_GET[ 'thisPageId'];
$subIDVal = $_GET[ 'thisSubId'];
$outStr = $pageIDVal . " Left Body B2";
echo($outStr);
?>
You can cause it to mix, there are buttons that respond locally, such as general opening / failure of the general menu and work with basic clients. Just first enter the identifiers with names, and if one of them can answer, they will stop $ ('button'), launched simply with the if-else statement.
source
share