迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計(jì)理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
表單查詢,不能使用ajax().
網(wǎng)站表單:基于網(wǎng)站表單設(shè)計(jì)查詢內(nèi)容(如證書查詢),開發(fā)實(shí)例,PHP開源CMS系統(tǒng)幫助文檔 (xunruicms.com)
根據(jù)此內(nèi)容,制作了證書查詢,全部使用頁面中的代碼,如果使用ajax()提交查詢就會報錯“禁止提交,請檢查提交地址是否有誤”
<a onclick="dr_ajax_submit('{$post_url}', 'myform', 0, '')" >點(diǎn)擊查詢</a>
增加 {dr_form_hidden()} 無濟(jì)于事。 跨站模式 關(guān)閉也不行。
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣芗夹g(shù)-岳老師 和這個應(yīng)該沒關(guān)系,都試了的
回復(fù)@翅膀 可以看下我的代碼嗎?謝謝 get_url的寫法有問題嗎? 這樣仍然不行的
<form class="search-form" id="myform" name="myform" action="/index.php" method="get"> <input type="hidden" name="s" value="form"> <input type="hidden" name="c" value="zhengshu"> <input type="hidden" name="m" value="search"> <table width="370" border="0" style="margin:20px auto 0;"> <tr> <td> <input type="text" name="zsbh" value="請?jiān)诖颂庉斎耄盒彰?quot; /> </td> <td> <img src="/static/cn/images/11_03.gif" onclick="dr_ajax_submit('{$get_url}', 'myform', 0, '')" ></td> </tr> </table> </form>
回復(fù)@迅??蚣芗夹g(shù)-岳老師 不是很明白,可以直接下我的代碼嗎?謝謝
回復(fù)@迅??蚣芗夹g(shù)-岳老師 需要的是當(dāng)前頁返回 查詢結(jié)果,不要跳轉(zhuǎn)
回復(fù)@小波工作室--標(biāo)簽和API大師 好吧,是下面這種形式嗎?等于xunruicms 這個dr_ajax_submit 這里確實(shí)用不了?
<script> $(document).ready(function(){ $("button").click(function(){ $.get("/example/jquery/demo_test.asp",function(data,status){ alert("數(shù)據(jù):" + data + "\n狀態(tài):" + status); }); }); }); </script>
完全可以用$.get,這種搜索本身就是用來get的,你dr_ajax是post肯定不合適了
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣芗夹g(shù)-岳老師 和這個應(yīng)該沒關(guān)系,都試了的
回復(fù)@翅膀 可以看下我的代碼嗎?謝謝 get_url的寫法有問題嗎? 這樣仍然不行的
<form class="search-form" id="myform" name="myform" action="/index.php" method="get"> <input type="hidden" name="s" value="form"> <input type="hidden" name="c" value="zhengshu"> <input type="hidden" name="m" value="search"> <table width="370" border="0" style="margin:20px auto 0;"> <tr> <td> <input type="text" name="zsbh" value="請?jiān)诖颂庉斎耄盒彰?quot; /> </td> <td> <img src="/static/cn/images/11_03.gif" onclick="dr_ajax_submit('{$get_url}', 'myform', 0, '')" ></td> </tr> </table> </form>開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@迅??蚣芗夹g(shù)-岳老師 不是很明白,可以直接下我的代碼嗎?謝謝
回復(fù)@迅??蚣芗夹g(shù)-岳老師 需要的是當(dāng)前頁返回 查詢結(jié)果,不要跳轉(zhuǎn)
回復(fù)@小波工作室--標(biāo)簽和API大師 好吧,是下面這種形式嗎?等于xunruicms 這個dr_ajax_submit 這里確實(shí)用不了?
<script> $(document).ready(function(){ $("button").click(function(){ $.get("/example/jquery/demo_test.asp",function(data,status){ alert("數(shù)據(jù):" + data + "\n狀態(tài):" + status); }); }); }); </script>完全可以用$.get,這種搜索本身就是用來get的,你dr_ajax是post肯定不合適了