Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 用showWindow进行post数据,但是ajax弹框返回错误

[复制链接]
大理石 发表于 2013-8-18 19:37:28 | 显示全部楼层 |阅读模式
本帖最后由 大理石 于 2013-8-18 19:39 编辑

如题,模板页面中我用
<form id='posttest' action="plugin.php?id=test:system&action=test" method="post" autocomplete="off">
<input type="hidden" value="{FORMHASH}" name="formhash" />
</form>
<button id="test" class="pn pnc" name="testbtn">
<strong>test</strong>
</button>

plugin.php?id=test:system&action=test中,也就是post的目标页面的php文件中,我用
showmessage('123', 'plugin.php?id=avatar:system&action=test', array(), array('login' => true,'showdialog' => true, 'msgtype' => 2));

点击test按钮,弹出的提示框有问题,没有显示出测试内容“123”,且点叉子无法关闭弹框等等。响应源码为

<?xml version="1.0" encoding="utf-8"?><root><![CDATA[<h3 class="flb"><em>提示信息</em><span><a href="javascript:;" class="flbc"wrappedText focusRow">('');" title="关闭">关闭</a></span></h3><div class="c altw"><div class="alert_info"><script type="text/javascript" reload="1">if(typeof succeedhandle_=='function') {succeedhandle_('plugin.php?id=avatar:system&action=test', '123', {});}</script></div></div><p class="o pns"><button type="button" class="pn pnc" id="closebtn"><strong>确定</strong></button><script type="text/javascript" reload="1">if($('closebtn')) {$('closebtn').focus();}</script></p>]]></root>

请问一下,应该怎么改post后才能弹框正确。


何必在强忍 发表于 2013-8-18 20:18:30 | 显示全部楼层
不知道高手回答  大漠狩猎论坛http://www.damohunt.com
回复

使用道具 举报

Bacysoft.cn 发表于 2013-8-19 10:41:32 | 显示全部楼层
请把你的完整的代码帖上来吧...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 05:31 , Processed in 0.101492 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表