主题 : 留言板问题急!!!!
级别: 白丁
UID: 19741
积分:959 加为好友
威望: 2 精华: 1
主题:92 回复:307
注册时间:2011-05-19
在线时长:0
1#   发表于:2012-10-14 16:11:30  IP:119.67.*.*
留言板提交问题成功,不弹alert

直接跳转页面,提示{"status":0,"success":true}我知道这样是正确提交。。后台也能看见提交的留言。。

url还是留言板的,没有变。。

我使用的SP1的版本,tomcat6.0 mysql5.1 系统是xp ps3 jdk是1.6请问怎么解决。。。
级别: 白丁
UID: 19741
积分:959 加为好友
威望: 2 精华: 1
主题:92 回复:307
注册时间:2011-05-19
在线时长:0
2#   发表于:2012-10-15 08:17:42  IP:119.67.*.*
喂,有人吗???
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
3#   发表于:2012-10-15 08:42:53  IP:220.40.*.*
留言板提交问题成功,不弹alert

直接跳转页面,提示{"status":0,"success":true}我知道这样是正确提交。。后台也能看见提交的留言。。

url还是留言板的,没有变。。

我使用的SP1的版本,tomcat6.0 mysql5.1 系统是xp ps3 jdk是1.6请问怎么解决。。。
 url还是留言板的?能说详细一点吗?
功成由勤,业精于勤。
级别: 白丁
UID: 19741
积分:959 加为好友
威望: 2 精华: 1
主题:92 回复:307
注册时间:2011-05-19
在线时长:0
4#   发表于:2012-10-15 10:58:48  IP:119.67.*.*
就是点击提交之后,页面变了。但是url还是留言板的地址。。
页面全是白的就一个{"status":0,"success":true}字样。。
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
5#   发表于:2012-10-15 11:01:34  IP:220.40.*.*
我这里的留言版没问题啊?您把您遇到的问题截图看下,您有没有改动源码?
功成由勤,业精于勤。
级别: 白丁
UID: 19741
积分:959 加为好友
威望: 2 精华: 1
主题:92 回复:307
注册时间:2011-05-19
在线时长:0
6#   发表于:2012-10-15 11:19:13  IP:119.67.*.*
源码没改就是改模板了。。我把模板代码发给你?
级别: 白丁
UID: 19741
积分:959 加为好友
威望: 2 精华: 1
主题:92 回复:307
注册时间:2011-05-19
在线时长:0
7#   发表于:2012-10-15 11:21:12  IP:119.67.*.*
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" /> 
<title>用户留言 - ${site.name} </title>
<meta http-equiv="keywords" content="用户留言"/>
<meta http-equiv="description" content="用户留言"/>
<script src="${resSys}/jquery.js" type="text/javascript"></script>
<script src="${resSys}/front.js" type="text/javascript"></script>
<script src="/${res}/js/common1.js" type="text/javascript"></script>

<link href="/${res}/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/${res}/js/base.js"></script>
<script type="text/javascript" src="/${res}/js/common.js"></script>
<script type="text/javascript" src="/${res}/js/form.js"></script>
<script type="text/javascript" src="/${res}/js/blockui.js"></script>
<style type="text/css">
/*留言板页样式*/
.relpy{margin-top:10px;color:#006600; width:555px; padding-right:10px;}
</style>
</head>
<body style='background:#dcdcdc url(/${res}/img/bg.png) repeat-x scroll 0% 0%'>
[#include "../include/页头导航栏.html"/]
<div id='content' style='width:1002px;height:587px;background:#ffffff;margin:0px auto'>


<!-- 图片/FLASH -->

<div id='pdv_14738' class='pdv_class'  title='' style='width:1002px;height:48px;top:0px;left:0px; z-index:10'>
<div id='spdv_14738' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
<div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
<div style="height:25px;margin:1px;display:none;background:;">
<div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:">

</div>
<div style="float:right;margin-right:10px;display:none">
<a href="-1" style="line-height:25px;color:">更多</a>
</div>
</div>
<div style="padding:0px">


<img src="/${res}/img/1287478181.jpg" border="0" width="100%" />

</div>
</div>

</div>
</div>

<!-- 网页标题(菜单) -->

<div id='pdv_14749' class='pdv_class'  title='栏目导航' style='width:220px;height:341px;top:19px;left:17px; z-index:11'>
<div id='spdv_14749' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;background:#fefefe url(/${res}/img/title33.jpg) 0px 0px no-repeat">
<div style="height:100%;">
<div style="height:35px;border:0px;padding:0;margin:0;background:url(/${res}/img/title33.jpg) 0px 0px no-repeat">
<div style="float:left;color:#fff;font:12px/31px 'SimSun',Arial,Sans-Serif;height:31px;padding-left:18px;">栏目导航</div>
</div>
<div style="margin:0px;padding:0px">

<link href="/${res}/css/pagetitlemenu_dolphin.css" rel="stylesheet" type="text/css" />
<div class="titlemenu_dolphin" >


<a href="../../page/contact/contact.php" target="_self" class="titlemenu_dolphin">联系方式</a>


<a href="../../page/contact/feedback.php" target="_self" class="titlemenu_dolphin">信息反馈</a>
 
</div>

</div>
</div>
</div>

</div>
</div>

<!-- 当前位置提示条 -->

<div id='pdv_14750' class='pdv_class'  title='信息反馈' style='width:696px;height:40px;top:14px;left:274px; z-index:12'>
<div id='spdv_14750' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
<div class="pdv_border" style="border:0px;background:url(/${res}/img/title12.jpg) no-repeat;padding:0px;margin:0px;height:100%;">
<div style="float:left;color:#464646;font:14px/42px Simsun;padding-left:35px;">信息反馈</div>
<div style="float:right;height:100%;width:18px;background:url(/${res}/img/title12.jpg) -982px 0px no-repeat;"></div>
 
<link href="/${res}/css/nav.css" rel="stylesheet" type="text/css" />
<div id="nav">
您现在的位置:<a href="${base}/">公司首页</a> &gt; 信息反馈

</div>

</div>

</div>
</div>

<!-- 全站留言表单 -->

<div id='pdv_14751' class='pdv_class'  title='给我留言' style='width:640px;height:500px;top:85px;left:294px; z-index:13'>
<div id='spdv_14751' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px  solid;background:;">
<div style="height:25px;margin:1px;display:none;background:;">
<div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:">
给我留言
</div>
<div style="float:right;margin-right:10px;display:none">
<a href="-1" style="line-height:25px;color:">更多</a>
</div>
</div>
<div style="padding:0px">

<link href="/${res}/css/feedbackform.css" rel="stylesheet" type="text/css" />
<div  id="notice" class="noticediv"></div>
<form id="guestbookForm" action="${base}/guestbook.jspx" method="post">
                          <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#EAEAEA">
                            <tr>
                              <td width="15%" height="30" align="right" bgcolor="#fafafa"><strong>类  别:</strong></td>
                              <td width="32%" bgcolor="#FFFFFF">
                              <select name="ctgId">
                                [@cms_guestbook_ctg_list siteId=site.id]
                                [#list tag_list as ctg]
                                    <option value="${ctg.id}">${ctg.name}</option>
                                [/#list]
                                [/@cms_guestbook_ctg_list]
                              </select>           </td>
                              <td width="15%" align="right" bgcolor="#FAFAFA"><strong>电子邮箱:</strong></td>
                              <td width="34%" bgcolor="#FFFFFF"><input type="text" name="email" class="email" maxlength="100"/></td>
                            </tr>
                            <tr>
                              <td width="15%" height="30" align="right" bgcolor="#fafafa"><strong>电  话:</strong></td>
                              <td width="32%" bgcolor="#FFFFFF"><input type="text" name="phone" maxlength="50"/></td>
                              <td width="15%" align="right" bgcolor="#FAFAFA"><strong>QQ:</strong></td>
                              <td width="34%" bgcolor="#FFFFFF"><input type="text" name="qq"/></td>
                            </tr>
                            <tr>
                              <td width="15%" height="30" align="right" bgcolor="#fafafa"><strong>标题:</strong></td>
                              <td colspan="3" bgcolor="#FFFFFF"><input name="title" type="text" size="40" class="required" maxlength="255"/></td>
                              </tr>
                            <tr>
                              <td width="15%" height="80" align="right" bgcolor="#fafafa"><strong>留言内容:</strong></td>
                              <td colspan="3" bgcolor="#FFFFFF">
                              <textarea name="content" class="cinput required" cols="55" rows="4" style="width:300px;"></textarea></td>
                              </tr>
                            <tr>
                              <td width="15%" height="80" align="right" bgcolor="#fafafa"><strong>验证码:</strong></td>
                              <td colspan="3" bgcolor="#FFFFFF">
                             <input type="text" name="captcha" class="required" maxlength="20"/> 
                             <img id="guestbookCaptcha" src="${base}/captcha.svl" onclick="this.src='${base}/captcha.svl?d='+new Date()"/>
                               </td>
                              </tr>
                            <tr>
                              <td height="30" colspan="4" align="center" bgcolor="#FFFFFF">
                                <input type="image"  src="/${res}/img/guestbook/gb-button.gif" name="submit" />
                              </td>
                            </tr>
                          </table>
                      </form>              
  <script type="text/javascript">
                            $(function() {
                                $("#guestbookForm").validate( {
                                    submitHandler : function(form) {
                                        $(form).ajaxSubmit( {
                                            "success" : function(data) {
                                                if(data.status==0) {
                                                    alert("留言提交成功");
                                                    location.href=location.href;
                                                } else if(data.status==1) {
                                                    alert("验证码错误");
                                                    $("#guestbookCaptcha").click();
                                                } else {
                                                    alert("留言提交失败");
                                                }
                                            },
                                            "dataType" : "json"
                                        });
                                    }
                                });
                            });
                            </script> 

</div>
</div>

</div>
</div>
</div>
[#include "../include/页脚信息栏.html"/]
</body>
</html>
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
8#   发表于:2012-10-15 11:22:55  IP:220.40.*.*
您换成原来的模板覆盖一下,我这留言版都是好的
功成由勤,业精于勤。
级别: 白丁
UID: 19741
积分:959 加为好友
威望: 2 精华: 1
主题:92 回复:307
注册时间:2011-05-19
在线时长:0
9#   发表于:2012-10-15 11:34:09  IP:119.67.*.*
我换会原来那样了。也是这样。。
级别: 总版主
UID: 10736
积分:149789 加为好友
威望: 212 精华: 42
主题:297 回复:127676
注册时间:2010-09-08
在线时长:90.47
10#   发表于:2012-10-15 13:53:19  IP:220.40.*.*
换回后要重新生成一下
路漫漫其修远兮,吾将上下而求索!
1 2 > >| 共2页