<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<title>1</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<script>
function show(){
$.ajax({
url: "imgs.php",
cache: false,
success: function(html){
$("#content").html(html);
}
});
}
$(document).ready(function(){ show(); setInterval('show()',500); });
function AjaxFormRequest(result_id,led,url) {
jQuery.ajax({
url: url,
type: "POST",
dataType: "html",
data: jQuery("#"+led).serialize(),
});
}
</script>
</head>
<body>
<div class="r">
<div class="rl">
<p class="r1">Форма 1</p>
<div class="r2" style="font-size:35px" >
<form id="led" action="" method="post" >
<input class="submitButton" type="submit" value="Отправить" onclick="AjaxFormRequest('messegeResult', 'led', 'img.php')" >
</form>
</div>
</div>
<div class="rr">
<p class="r1">Форма 2</p><br>
<div class="r2"style="font-size:35px" >
<div class="r3" id="content"></div>
</div>
</div>
</div>
</body>
</html> |