ورود

View Full Version : خطا در اجرای جی کوئری



zareei_ta
یک شنبه 10 مهر 1390, 16:38 عصر
من یک جی کوئری fadeslideShow قرار دادم در مستر پیج در زمان اجرا خطای Microsoft JScript runtime error: 'jQuery' is undefined و Microsoft JScript runtime error: Object doesn't support this property or method

رخ میده.در صورتی که همین جی کوئری را در یک پروژه دیگر اجرا کردم و اجرا شد.
البته در این سایت در صفحه اول نیز از یک جی کوئری دیگه استفاده کردم و اون هم کار میکنه.ایا ممکنه ایراد از همزمانی این دو باشه.لطفا کمک کنید

salman_looloo
یک شنبه 10 مهر 1390, 21:14 عصر
اگر نمونه کدت رو می زاشتی بهتر میشد جواب داد. اگر شما کدها JQ رو توی تگ این دستور ننوشته باشی ممکنه اشتباه رخ بده . البته اگر کدشو بزاری بازم بهتر میشه جوابشو پیدا کرد.



$(document).ready(function(){
});

zareei_ta
دوشنبه 11 مهر 1390, 09:02 صبح
این صفحه مستر پیج که جی کوئری را فراخوانی کردم


<%@ Master Language="C#‎" AutoEventWireup="true" CodeFile="BaseMasterPage.master.cs" Inherits="BaseMasterPage" %>

<!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 runat="server">
<link rel="shortcut icon" href="/Images/SiteIcon.png" />
<title>Untitled Page</title>
<link href="CSS/MenuStyle.css" rel="stylesheet" type="text/css" />
<%--<link href="demoStyleSheet.css" rel="stylesheet" type="text/css" />--%>
<script src="fadeSlideShow.js" type="text/javascript"></script>
<script src="jQuery.js" type="text/javascript"></script>

<script type="text/javascript">
jQuery(document).ready(function(){
jQuery('#slideshow').fadeSlideShow();
});
</script>

<style type="text/css">
body{
margin: 0;
padding: 0;
Font-Family:Tahoma;
}
</style>

<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body style="background-image:url('Images/Bg.jpg');background-repeat:repeat-x;background-color:#E0EAF0">

<form id="form1" runat="server">
<div id="PageDiv" style="position:relative; margin:0 auto; min-height:800px;width:900px; border:solid 1px #333333; background-color:White ">
<div id="slideshowWrapper">
<ul id="slideshow">
<li><img src="images/4.jpg" width="640" height="480" border="0" alt="" /></li> <!-- This is the last image in the slideshow -->
<li><img src="images/3.jpg" width="640" height="480" border="0" alt="" /></li>
<li><img src="images/2.jpg" width="640" height="480" border="0" alt="" /></li>
<li><img src="images/1.jpg" width="640" height="480" border="0" alt="" /></li> <!-- This is the first image in the slideshow -->
</ul><br clear="all" />
</div>
<img alt="banner" src="Images/bannersoftware.jpg" style="height: 190px; width: 900px" />
<div id="MenuDiv"
style=" position:relative; width:100%; height:38px;border-bottom:1px solid #2763A5; background-image:url('Images/back.gif'); background-repeat:repeat-x;font-family:Tahoma; font-size:14px; left: 0px; top: -4px;">
<div class="TopMenuItem" style="width:90px">
<a href = "Default.aspx" style="color:White;text-decoration:none">صفحه اصلی</a>
</div>
<span class="TopMenuItem" style="width:1px;background-color:White;z-index:2;right:5px;top:5px;height:30px"></span>
<div class="TopMenuItem" style="width:150px">
<a href = "AboutUs.aspx" style="color:White;text-decoration:none">نحوه استفاده از سایت</a>
</div>
<span class="TopMenuItem" style="width:1px;background-color:White;z-index:2;right:5px;top:5px;height:30px"></span>
<div class="TopMenuItem" style="width:150px">
<a href = "DefSoftware.aspx" style="color:White;text-decoration:none">ارسال اطلاعات نرم افزار</a>
</div>
<span class="TopMenuItem" style="width:1px;background-color:White;z-index:2;right:5px;top:5px;height:30px"></span>
<div class="TopMenuItem" style="text-align:center;width:80px">
<a href = "ContactUs.aspx" style="color:White;text-decoration:none">تماس با ما</a>
</div>
<asp:Label ID="lbltoday" runat="server" Text=":امروز"

style="position:absolute;color:White; top: 8px; left: 220px;font-size:small"></asp:Label>
<asp:Label ID="lblTime" runat="server"
style="position:absolute;color:White; top:8px; left: 136px; font-size:small"></asp:Label>
</div>

<div id="ContentDiv" style=" position:relative; margin-top:3px;min-height:600px">
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>

<div id="PageBottom" style="position:relative;width:920px; height:90px;right:10px;background-image:url(Images/Footer.png);background-repeat:no-repeat">
<center>
<span style="position:absolute;text-align:center;top:46px; right:313px; font-size:12px; height: 21px; width: 294px;">طراحی و پشتیبانی سایت توسط شرکت <a href="http://asreshetab.com" target="_blank" style="color:#C0090D;text-decoration:none">عصر شتاب جهان</a></span></center>
</div>
</div>
</form>
</body>
</html>

اگه لازم بود خود جی کوئری را هم قرار میدم