Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<div id="mydiv" style="width:50px;height:50px;text-align:center;background:green;">
<div id="empty" style="background:red;widht:30px;height:30px;">Bla bla</div>
</div>
<div id="content" style="display:none;">13</div>
<div id="display"></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js">
</script>
<script type="text/javascript" >
$("#mydiv").click(function() {
var contentt = $("#content").html();
var dataString = 'content='+ contentt;
alert("still clicked");
$.ajax({
type: "POST",
url: "insert.php",
data: dataString,
cache: false,
});
$('#display').load('insert.php');
});
</script>
$("#mydiv").click(function() {
$('#display').load('insert.php');
});
Може да провери дали вече няма запис в базата данни... Ако има - значи вече кликнал! Може дори и да не вади съобщение за грешка, а просто нищо да не прави..explozen каза:Ами ако потребителя хареса/не хареса/хареса/не хареса какво става?
100000 точки?