0

我想将我的普通数据库应用程序转换为 XAJAX 应用程序(无需重新加载)。我的应用程序基于使用 GET 和 POST 请求(页面加载后)发送和读取数据。

如何在不刷新的情况下将数据传递给 url?

示例:我想在不使用的情况下发送表格上所选行的 ID<a href="index.php?action=edit&id='. $row['CountryID'] .'">

使用 XAJAX 会发生这种情况吗?

我可以发送数组$objResponse->assign("div", "innerHTML", $HERE);吗?

4

1 回答 1

1

创建一个接收您提交的 ID 的函数。例如

function name_function($id){
     $response = new xajaxResponse();//to post the answer
     //what you do
     $response->assign("your_div","innerHTML",$variable_that_you_use);
     return $response
}
于 2012-11-14T17:19:00.767 回答