AJAX, php- ?
    ~
Advanced Hosters -

VKtraf
: 03.02.2012
: 969
# : 11, 2014 1:13 pm
!
AJAX, , .

php- HTML- div', , php- , .

1.php:
:
<?php

$v = $_GET['v'];

file_put_contents("pressed.txt", $v, FILE_APPEND);

?>



- index.html:
:
<html>
<head>
<script type="text/javascript" src="javascript/jquery-1.7.2.min.js"></script>
</head>
<body>

<div style="width:300px; height:50px;"></div>

</body>
</html>



, AJAX 1.php HTML-?
jQuery $.get, , .

, div?

! Drinks or Beer

JM
: 25.08.2006
: 1382
# : 11, 2014 2:13 pm
http://stackoverflow.com/questions/12581237/jquery-ajax-load-html-into-div-element-after-click
!!!
VDS AHnames.com -

VKtraf
: 03.02.2012
: 969
# : 11, 2014 3:28 pm
JM, !
AJAX , - , , .
, onclick, onMouseDown, onMouseOver , .
AJAX , , ?
!

JM
: 25.08.2006
: 1382
# : 11, 2014 7:46 pm
VKtraf, , 1 Sad
.
.

cache: false
:
$.ajax({ url: "time.php", cache: false, success: function(html){ $("#content").html?#40;html); } });


!!!
VDS AHnames.com -

VKtraf
: 03.02.2012
: 969
# : 12, 2014 2:08 pm
JM, , !
- , jQuery no-cache .
:thup:
    ~