Jquery Panel Slider& asp.net电子邮件代码不起作用。 [英] Jquery Panel Slider & asp.net email code not working.

查看:65
本文介绍了Jquery Panel Slider& asp.net电子邮件代码不起作用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Greetins,





我在网页的右侧有一个Jquery Panel Slider。我在这个Jquery面板中有一个联系我们表单,点击按钮我编写了asp.net email.Now当我点击提交按钮通过邮件发送数据时,什么都没发生。虽然我已经测试了它的电子邮件代码。请告诉我这可能是什么原因可能是这件事发生的原因&我如何解决问题并通过电子邮件发送联系我们的数据。我希望我的观点很明确。



感谢您的期待



问候



从以下非解决方案复制的其他信息

这是Jquery Sider: -

Greetins,


I have a Jquery Panel Slider on the right side of a webpage. I have a contact us form inside this Jquery panel, on button click i have coded asp.net email.Now when i click submit button to send the data through mail, nothing is really happening. Though i have tested the email code it's working. Please tell me what could what could be the reason behind this nothing happening thing & how can i resolve issue and send the contact us data via email. I hope my point is clear.

Thanks in anticipation

Regards

additional information copied from non-Solution below
This is the Jquery Sider:-

<SCRIPT type="text/javascript"><!--Feedback-->
$(document).ready(function() {
var feed = $("#feedback"),
img = feed.children("img"),
formElems = feed.children("form, h3");

feed.css("display", "block").data("showing", false);
formElems.hide();

img.click(function() {
if(feed.data("showing") == true) {
feed.data("showing", false)
.animate({
marginRight: "-478px",
height: "362px",
padding: "0"
});
formElems.fadeOut("normal");
$(this).attr("src", "imag/feedback.png").css("top", "20px");
} else {
feed.data("showing", true)
.animate({
marginRight: "0",
height: "362px",
//padding: "10px"
});
formElems.fadeIn("normal");
$(this).attr("src", "imag/NewHide.jpg").css("top", "20px");

}
})
}); //end document ready

</SCRIPT>







这是联系我们表格代码:






This is the contact us form code:

<table align="left" border="0" cellpadding="0" cellspacing="0" width="490">
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <td style="width: 100px">
                                            <asp:Label ID="Label1" runat="server" Text="Name"></asp:Label></td>
                                        <td style="width: 139px">
                                            <asp:TextBox ID="txtname" runat="server"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px; height: 22px;">
                                            <asp:Label ID="Label2" runat="server" Text="Contact"></asp:Label></td>
                                        <td style="width: 139px; height: 22px;">
                                            <asp:TextBox ID="txtcontact" runat="server"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px">
                                            <asp:Label ID="Label3" runat="server" Text="Email"></asp:Label></td>
                                        <td style="width: 139px">
                                            <asp:TextBox ID="txtemail" runat="server"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px">
                                            <asp:Label ID="Label4" runat="server" Text="Location"></asp:Label></td>
                                        <td style="width: 139px">
                                            <asp:TextBox ID="txtlocation" runat="server"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px">
                                            <asp:Label ID="Label5" runat="server" Text="Type of Enquiry"></asp:Label></td>
                                        <td style="width: 139px">
                                            <asp:DropDownList ID="drdpquery" runat="server" Width="157px">
                                            </asp:DropDownList></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px">
                                            <asp:Label ID="Label6" runat="server" Text="Message"></asp:Label></td>
                                        <td style="width: 139px">
                                            <asp:TextBox ID="txtmssg" runat="server" Height="139px" TextMode="MultiLine" Width="337px"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px">
                                        </td>
                                        <td style="width: 139px">
                                            <asp:Image ID="Image2" runat="server" />
                                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click2" Text="Button" /></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px">
                                        </td>
                                        <td style="width: 139px">
                                            <asp:Label ID="Label7" runat="server" Text="Data Sent"></asp:Label></td>
                                    </tr>
                                    <tr>
                                        <td style="width: 100px">
                                        </td>
                                        <td style="width: 139px">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>

推荐答案

(document).ready(function(){
var feed =
(document).ready(function() { var feed =


(#feedback),
img = feed.children(img),
formElems = feed.children(form,h3);

feed.css(display,block)。data(shows,false);
formElems.hide();

img.click(function(){
if(feed.data(shows)== true){
feed.data(显示,false)
.animate({
marginRight: - 478px,
身高:362px,
填充:0
});
formElems。 fadeOut(normal);
("#feedback"), img = feed.children("img"), formElems = feed.children("form, h3"); feed.css("display", "block").data("showing", false); formElems.hide(); img.click(function() { if(feed.data("showing") == true) { feed.data("showing", false) .animate({ marginRight: "-478px", height: "362px", padding: "0" }); formElems.fadeOut("normal");


(this).attr(src,imag / feedback.png)。css(top,20px);
} else {
feed.data(显示,true)
.animate({
marginRight:0,
身高:362px,
// padding:10px
});
formElems.fadeIn(normal);
(this).attr("src", "imag/feedback.png").css("top", "20px"); } else { feed.data("showing", true) .animate({ marginRight: "0", height: "362px", //padding: "10px" }); formElems.fadeIn("normal");


这篇关于Jquery Panel Slider&amp; asp.net电子邮件代码不起作用。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆