Just nu i M3-nätverket
Jump to content

ASP.net + Javascript


kikotte

Recommended Posts

hej

 

jag har problem med att får Javascript att jobba.

 

är det någon som har tid att felsöka det här problemet?

 

code var så stor att jag fick lägga det i en winrar.

 

WebApplication6-test.txt = WebApplication6-test.rar

 

tack för att ni tog er tid att läsa här.

WebApplication6-test.txt

Link to comment
Share on other sites

Vore nog bra att få reda på vad du vill göra och på vilket sätt det inte fungerar...

 

 

det är Javascript som inte jobbar som den sak.

 

den säger

1.(Körningsfel i Microsoft JScript: $ har inte definierats)

2.(Körningsfel i Microsoft JScript: jQuery har inte definierats)

3.(Körningsfel i Microsoft JScript: $ har inte definierats)

4.(Körningsfel i Microsoft JScript: jQuery har inte definierats)

det är vad den säger när man ska test hemsida.

Link to comment
Share on other sites

Hur ser "källkoden" ut i webbläsaren när du kör?

<!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>
<script type="text/javascript" src="jsb30e.axd?path=%2fblog%2fScripts%2fjquery.js"></script><script type="text/javascript" src="js02e9.axd?path=%2fblog%2fScripts%2fjquery.cookie.js"></script><script type="text/javascript" src="js8131.axd?path=%2fblog%2fScripts%2fjquery.gritter.min.js"></script><script type="text/javascript" src="jsf2fa.axd?path=%2fblog%2fScripts%2fjquery.validate.min.js"></script><script type="text/javascript" src="jsb0b1.axd?path=%2fblog%2fScripts%2fjquery-jtemplates.js"></script><script type="text/javascript" src="js5f4b.axd?path=%2fblog%2fScripts%2fjson2.js"></script><link type="text/css" href="themes/cybermine/css0f31.css?name=/blog/Styles/Global2.5.0.6.css" rel="stylesheet" /><link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" /><link rel="stylesheet" href="themes/cybermine/cssd668.css?name=../../../nivo-slider2.5.0.6.css" type="text/css" media="screen" /><link rel="stylesheet" href="themes/cybermine/css7ba7.css?name=../../../images/default2.5.0.6.css" type="text/css" media="screen" /><meta http-equiv="X-UA-Compatible" content="IE=7" />
   <script type="text/javascript">
       $(window).load(function () {
           $('#slider').nivoSlider({
               effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
               slices: 15, // For slice animations
               boxCols: 8, // For box animations
               boxRows: 4, // For box animations
               animSpeed: 800, // Slide transition speed
               pauseTime: 6000, // How long each slide will show
               startSlide: 0, // Set starting Slide (0 index)
               directionNav: true, // Next & Prev navigation
               directionNavHide: true, // Only show on hover
               controlNav: true, // 1,2,3... navigation
               controlNavThumbs: false, // Use thumbnails for Control Nav
               controlNavThumbsFromRel: false, // Use image rel for thumbs
               controlNavThumbsSearch: '.jpg', // Replace this with...
               controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src
               keyboardNav: true, // Use left & right arrows
               pauseOnHover: true, // Stop animation while hovering
               manualAdvance: false, // Force manual transitions
               captionOpacity: 0.8, // Universal caption opacity
               prevText: 'Bakåt', // Prev directionNav text
               nextText: 'Framåt', // Next directionNav text
               randomStart: true, // Start on a random slide
               beforeChange: function () { }, // Triggers before a slide transition
               afterChange: function () { }, // Triggers after a slide transition
               slideshowEnd: function () { }, // Triggers after all slides have been shown
               lastSlide: function () { }, // Triggers when last slide is shown
               afterLoad: function () { } // Triggers when slider has loaded
           });
       });
</script>
<script src="../jquery.nivo.slider.pack.js" type="text/javascript"></script>
   <script type="text/javascript">
       $(document).ready(function () {
           $("p > a.imgPlaceMarker").css("display", "none");
       });

   </script>
      <style type="text/css">
       .login
       {
           font-weight: 700;
       }

       .style2
       {
           font-family: Verdana;
           font-size: 11px;
           color: #FFFFFF;
       }
       .style3
       {
           text-decoration: none;
       }
       .style4
       {
           width: 10%;
       }

       </style>


<!-- Start Current Sueetie Framework Version -->
<meta name="CommunityFramework" content="Sueetie Version 3.3.4226.21766" />
<!-- End Current Sueetie Framework Version -->

<meta name="google-site-verification" content="T828rCpj68HHNMqIgLKOYw144z9uKx9iqdvYCC9-QXM" />
<meta name="keywords" content="BlogEngine.NET,Bukkit,Guide,Karta,Minecraft,Mojang,Nyheter,Plugins,Tävling,Youtube" />
<meta name="description" content="Din Svenska Minecraftserver" /><meta name="author" content="admin" />
<link rel="contents" title="Archive" href="archive.html" /><link rel="start" title="kikotte.tk" href="index.aspx" />
<link type="application/rdf+xml" rel="meta" title="SIOC" href="sioc.axd" />
<link type="application/apml+xml" rel="meta" title="APML" href="apml.axd" />
<link type="application/rdf+xml" rel="meta" title="FOAF" href="foaf.html" />
<link type="application/rss+xml" rel="alternate" title="kikotte.tk (RSS)" href="syndicationa409.axd?format=rss" />
<link type="application/atom+xml" rel="alternate" title="kikotte.tk (ATOM)" href="syndication2ef7.axd?format=atom" />
<link type="application/rsd+xml" rel="edituri" title="RSD" href="rsd.axd" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link type="application/opensearchdescription+xml" rel="search" title="kikotte.tk" href="opensearch.axd" />
<link href="themes/cybermine/css2513.css?name=style2.5.0.6.css" rel="stylesheet" type="text/css" />
<link href="../themes/cybermine/style/shared.css" rel="stylesheet" type="text/css" />
<link href="../themes/cybermine/style/blogs.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link rel="stylesheet" href="/themes/cybermine/style/ie.css" type="text/css" />
<![endif]-->
<link rel="prev" title="Previous page" href="index4658.html?page=2" />
<link type="text/css" rel="stylesheet" href="Styles/syntaxhighlighter/shCore.css" />
<link type="text/css" rel="stylesheet" href="Styles/syntaxhighlighter/shThemeDefault.css" />
<script type="text/javascript" src="Scripts/syntaxhighlighter/shCore.js"></script>
<script type="text/javascript" src="Scripts/syntaxhighlighter/shBrushCSharp.js"></script>
<script type="text/javascript" src="Scripts/syntaxhighlighter/shBrushCss.js"></script>
<script type="text/javascript" src="Scripts/syntaxhighlighter/shBrushJScript.js"></script>
<script type="text/javascript" src="Scripts/syntaxhighlighter/shBrushPlain.js"></script>
<script type="text/javascript" src="Scripts/syntaxhighlighter/shBrushSql.js"></script>
<script type="text/javascript" src="Scripts/syntaxhighlighter/shBrushVb.js"></script>
<script type="text/javascript" src="Scripts/syntaxhighlighter/shBrushXml.js"></script>
<title>kikotte.tk - Din Svenska Minecraftserver</title>
</head>
<body>
   <form method="post" action="index.aspx" id="aspnetForm">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTMwMjIzNDY3MGRkMDooh3qf76FJa+kI/qcl9ebg9RFMKnkLu2sqMZwM3oM=" />
</div>

<script>    (function (d, s, id) {
       var js, fjs = d.getElementsByTagName(s)[0];
       if (d.getElementById(id)) return;
       js = d.createElement(s); js.id = id;
       js.src = "../../connect.facebook.net/sv_SE/all.js#xfbml=1";
       fjs.parentNode.insertBefore(js, fjs);
   } (document, 'script', 'facebook-jssdk'));
</script>
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTU0Njg0NDk0OQ9kFgJmD2QWAgIDD2QWBgIGDxYCHgdWaXNpYmxlaBYCAgEPDxYEHgtOYXZpZ2F0ZVVybAUaL2Jsb2cvYWRtaW4vZGVmYXVsdC5jc2h0bWwfAGhkZAIHDw8WAh8BBRMvbWVtYmVycy9sb2dpbi5hc3B4ZGQCDA9kFgJmDw8WAh8AaGRkZI+Eu9HNI39NkFpBhdttuZqzdlFc" />
</div>

<script src="ScriptResource08bf.js?d=cinN2FflIe1xduhdbu-SoFLbym5V49GRk1mYMB9s9eDFw5kFQnZdS08TgZ8KtAwH1b2oG-hBtKNLtGud3mTwUb1M_7wydwLZKz8pYAQ3is1HBi6H1wslFfq5UGbeY7cbDSov7ZRSosn_Q-uxovFrsN9_M8A1&t=ffffffff940d030f" type="text/javascript"></script>
<script src="ScriptResourcec74f.js?d=LKMoYKItJcuA-gWH5qxrLe0OUFgFUwn-RqHlNofDpdX-ykxMes3pEY_UiBCRtjKUCwcd5W2_zXf9bVIG1fTP09oPWpQ6RNvaKtfVbM_jPa-sjgQHBbEv1dDbVKP5xfmLJGApYvbPkOU2ItJd4FD8tu_9LtjUT9KLWdfHgN160lztlAem0&t=ffffffff940d030f" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
   Sys.Services._AuthenticationService.DefaultWebServicePath = 'Authentication_JSON_AppService.axd';
//]]>
</script>

<script src="../util/services/SueetieService.svc/js.html" type="text/javascript"></script>

   <script type='text/javascript'>

       var LastUserLogID = 1494;
       function DisplayNotifications(result) {
           $.each(result, function (index, inputData) {
               LastUserLogID = inputData.MaxUserLogID;
               if (inputData.UserID != -1) {
                   $.gritter.add({
                       title: inputData.ActivityTitle,
                       text: inputData.Activity,
                       image: inputData.UserAvatarUrl,
                       position: 'bottom-right', // possibilities: bottom-left, bottom-right, top-left, top-right
                       fade_in_speed: 1000, // how fast notifications fade in (string or int)
                       fade_out_speed: 1000, // how fast the notices fade out
                       sticky: true,
                       time: 8000,
                       class_name: 'userlogNotifyPopup'
                   });
               }
           });
       }

       function CheckActivity() {
           var ws = new Sueetie.Web.SueetieService();
           ws.GetNotifications(LastUserLogID, DisplayNotifications);
           return false;
       };

   </script>

       <script type='text/javascript'>
           function pageLoad() {
               (function ($) {
                   $(document).ready(function () {
                       (function ($) {
                           var int = window.setInterval(CheckActivity, 30000);
                       })(jQuery);
                   });
               })(jQuery);
           } 
       </script>


<div id="wrapper">
<div id="main">

       <div id="notifyArea" class="shadow">
       <table border="0" cellspacing="0" 
              style="height: 139px; width: 100%; font-family: verdana; font-size: 11px;">
           <tr>
               <td height="300" valign="top" class="style4"><img src="../images/notice-info.png" align="top" class="dialogicon" /></td>
               <td width="100%" height="100%" style="vertical-align: top; line-height: 1.2em;"><strong><span class="style2">För att kunna bygga på vår server måste du först skapa en medlemsansökan på forumet!</span><br 
                       class="style2" />
                   <a href="../members/register.html" 
                       target="_blank" class="style3">
                   <br class="style2" />
                   </a>
                   <a href="../members/register.html" target="_blank">
                   <span class="style2">Klicka här för att registrera dig!</span></a></strong>
                 <p><strong><br class="style2" />
                     <span class="style2">Serverns adress: mc.kikotte.tk</span></strong></p></td>
           </tr>
         </table><br />
           <div id="notifyText">
           </div>
     </div>

<div id="header_">
   <div style="text-align: right; padding-right: 5px;">
       <div id="userMenu" style="margin-bottom: 3px; font-family: verdana;">
                           <div class="pagetoplinks">
                               <ul class="menu">

                                   <li>
                                       <span id="ctl00_UserRolePlaceHolder2">
                                               <a href="../members/login.html">Logga in</a>
                                           </span>
                                   </li>
                                   <span id="ctl00_UserRolePlaceHolder3">
                                           <li>
                                               <a href="../members/register.html">Registrera dig</a>
                                           </li>
                                       </span>

                                   <li>
                                       <a id="ctl00_UserLink" href="../members/login.html"></a>
                                   </li>
                                   <li class="UserMenuAvatar">
                                       <img class="UserMenuAvatar" onClick="javascript:window.open('/forum/yaf_profile0.aspx','_self')" src="../images/avatars/0t.jpg" style="border-width:0px;height:25px;width:25px;border-width:1px;" />
                                   </li>
                               </ul>
                           </div>
                       </div>

        </div>
   </div>
   <div id="border-left-top_"></div>
   <div id="menu_" style="text-align: left; vertical-align: bottom; top: 38px;">

       <span><div class="menulinks">
 <ul id="menu1">
   <li id="BlogTab">
     <a href="index.aspx"  target="_self">
       <strong>Nyheter</strong>
     </a>
   </li>
   <li id="ForumTab">
     <a href="../forum/index.aspx" target="_self">
       <strong>Forum</strong>
     </a>
   </li>
   <a href="page/regler.html" target="_self">
     <strong>Regler</strong>
   </a>
   </li>
   <li id="MediaTab">
     <a href="../media/index.aspx" target="_self">
       <strong>Media</strong>
     </a>
   </li>
   <li id="ForumTab">
     <a href="page/wiki.html" target="_self">
       <strong>Wiki</strong>
     </a>
   </li>
   <li>
     <a href="../contact.html" target="_self">
       <strong>Kontakta oss</strong>
     </a>
   </li>
   <li>
     <a href="page/topplistor.html" target="_self">
       <strong>Topplistor</strong>
     </a>
   </li>
   <li>
     <a href="page/donera.html" target="_self">
       <strong>
         <span style="color: #CC0000">DONERA</span>
         </strong>
     </a>
   </li>
   <li id="AdminTab" style="display:none;">
     <a href="../members/login4223.html">ADMINSTRATION</a>
   </li>
 </ul>
 </div>


</div>


   <div id="logo-small_"></div>
   <div id="logo-big_">
   <div class="slider-wrapper theme-default">
   <div id="slider" class="nivoSlider">
   <a href="index.aspx"><img src="../images/1.jpg" alt="" title="" /></a>
   <a href="index.aspx"><img src="../images/2.jpg" alt="" title="" /></a>
   <a href="index.aspx"><img src="../images/3.jpg" alt="" title="" /></a>
   <a href="index.aspx"><img src="../images/4.jpg" alt="" title="" /></a>
</div>
<div id="htmlcaption" class="nivo-html-caption">
</div>

</div>
   </div>
   <div id="border-right-top_"></div>
   <div id="shadow-big_"></div>
   <div id="seperator-top_">
   <div id="menu">

   </div>

   </div>
   <div id="content-mid_2">
       <div id="content-mid_blog" style="border-width: 0px"> 
   </div>

</div>

          </div>
          <div  class"clear"></div>
          </div>
<div id="push">
<div id="push_l"></div>
<div id="push_r"></div>
</div>

   </form>
</body>
</html>

Link to comment
Share on other sites

Sökvägen ser skum ut: "<script type="text/javascript" src="jsb30e.axd?path=%2fblog%2fScripts%2fjquery.js">"

 

fungerar jsb30e.axd som det ska?

 

får samma fel

Link to comment
Share on other sites

frågan var om filen fungerar och gör sitt jobb - dvs att leverera jquery till sidan?!

 

Den verkar inte göra det så skippa den filen och ange javascript-filerna direkt i mallen istället.

Link to comment
Share on other sites

  • 2 weeks later...

frågan var om filen fungerar och gör sitt jobb - dvs att leverera jquery till sidan?!

 

Den verkar inte göra det så skippa den filen och ange javascript-filerna direkt i mallen istället.

 

 

tack för hjälpe har hitta felet.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...