我有一个相当复杂的搜索,它利用了多个ajax调用,流程如下:
user performs search on button click
ajax request is made to php page which returns json data
for each result in returned data additional ajax request is made
run function which makes additional ajax call
end for each
end click function
这一切都运行得很好,我想要做的是
我试图在Ajax中请求一个页面和一个普通的GET请求。我的基本布局如下:
<html>
<head>
//css file
</head>
**************
<body>
<script> </script> // this script needs to be loaded at the end of the page load in both GET and AJAX
</body>
*****************
//js files (jQue
我想通过ajax调用对数据库记录执行内联更新。然后重新加载页面,以便在重新加载页面时显示更新。
ajax脚本是:
$(document).ready(function() {
$(".update").click(function() {
var id = $(this).attr('id');
var newdesignation = $('#newdesignation'+ id).val();
var newcompany = $('#newcompany'+ id).va