未捕获的TypeError:对象#<text>没有方法'getBoundingClientRect'</text>

时间:2013-07-06 15:55:38

标签: jquery asp.net-mvc

<script src="<%= Url.Content("~/Scripts/jquery.wallform.js") %>" type="text/javascript"></script>
<script src="<%= Url.Content("~/Scripts/jquery.color.js") %>" type="text/javascript"></script>
<script src="<%= Url.Content("~/Scripts/jquery.timeago.js") %>" type="text/javascript"></script>
<script src="<%= Url.Content("~/Scripts/jquery.tipsy.js") %>" type="text/javascript"></script>
<script src="<%= Url.Content("~/Scripts/facebox.js") %>" type="text/javascript"></script>
<script src="<%= Url.Content("~/Scripts/jquery-ui-1.8.20.min.js") %>" type="text/javascript"></script>
<script src="<%= Url.Content("~/Scripts/wall.js") %>" type="text/javascript"></script>\\

上面的Jquery库集在.net mvc应用程序aspx页面中使用,Jquery 1.7.1在主页面中加载。

我收到错误

  

未捕获的TypeError:对象#没有方法   'getBoundingClientRect'

请帮忙。

    <%@ Page Title="" Language="C#" MasterPageFile="~/Views/FB_MainPage.Master" Inherits="System.Web.Mvc.ViewPage<FB_FrontEnd.Models.MySelfModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <link href="<%= Url.Content("~/Content/tipsy.css") %>" rel="stylesheet" type="text/css" />
    <link href="<%= Url.Content("~/Content/facebox.css") %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        var globalAppPath = '<%= Request.ApplicationPath %>';
    </script>

    <script src="<%= Url.Content("~/Scripts/jquery-1.7.1.min.js") %>" type="text/javascript"></script>

    <script type="text/javascript" src="/scripts/voice_synthesis/mespeak.js"></script>
    <script type="text/javascript" src="/scripts/voice_synthesis/voice_synthesis_engine.js"></script>

    <script type="text/javascript" src="/scripts/voice_engine/validation_rules/validation_rules.js"></script>
    <script type="text/javascript" src="/scripts/voice_engine/validation_rules/actionscript.js"></script>
    <script type="text/javascript" src="/scripts/voice_engine/voice_engine.js"></script>
    <script type="text/javascript" src="/scripts/jquery.xml2json.js"></script>


    <script type="text/javascript">

        //setting tts settings to session variables
        sessionStorage.setItem("amplitude", "<%= Model.tts.Amplitude%>");
        sessionStorage.setItem("pitch", "<%= Model.tts.Pitch%>");
        sessionStorage.setItem("speed", "<%= Model.tts.Speed%>");
        sessionStorage.setItem("wgap", "<%= Model.tts.Word_gap%>");
        sessionStorage.setItem("language", "<%= Model.tts.Language%>");
        sessionStorage.setItem("uid", "<%= Model.tts.Username%>");
        sessionStorage.setItem("id", "<%= Model.tts.Id%>");

        // alert("myself=" + sessionStorage.getItem("language"));

        // converting the grammar list into an array

        var grammar;
        var keyword = "";
        var pageName = "home";

        count = "<%= Model.grammar.grammarList.Count %>";
        grammar = new Array(count);
        i = 0;
             <% for (var i = 0; i < Model.grammar.grammarList.Count; i++)
                {%>

        grammar[i++] = "<%= Model.grammar.grammarList[i] %>";
         <%} %>
        //tts
        $(document).ready(function () {
            var x = "";

            x += "<%= Model.ssm.header%>'   ',  ,";
            // x += "Command List'      ',";
         <% for (var i = 0; i < Model.ssm.contentList.Count; i++)
        {%>
            x += "<%= Model.ssm.contentList[i] %> '   ', ?";
          <%} %>

            readScreen(x);
        });


    </script>

    <script src="<%= Url.Content("~/Scripts/jquery.wallform.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/jquery.color.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/jquery.timeago.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/jquery.tipsy.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/facebox.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/jquery-ui-1.8.20.min.js") %>" type="text/javascript"></script>
    <script src="<%= Url.Content("~/Scripts/wall.js") %>" type="text/javascript"></script>

     <div id="wall_container">
        <div id="updateboxarea">
            <h4>What's up?</h4>
            <textarea name="update" id="update" maxlength="200"></textarea>
            <br />

            <div style="width: 100%; clear: both">
                <input type="submit" value=" Update " id="update_button" class="update_button" />
                <span style="float: right">

                </span>
            </div>
        </div>
        <div id='flashmessage'>
            <div id="flash" align="left"></div>
        </div>
        <div id="content">
            <% Html.RenderAction("load_messages_common"); %>
        </div>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ProfilePic" runat="server">
     <div id="Div1">
            <% Html.RenderAction("loadprofile_pic_Left"); %>
        </div>  


</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ChatContent" runat="server">
</asp:Content>

0 个答案:

没有答案