jQuery UI Widgets Forums Dialogs and Notifications Window Microsoft JScript runtime error: Object doesn't support this property or method

This topic contains 2 replies, has 2 voices, and was last updated by  cfernandes 10 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • cfernandes
    Participant

    When I try to open the windowns of the following error:

    Microsoft JScript runtime error: Object doesn’t support this property or method

    Example

    <%@ Page Title=”” Language=”vb” AutoEventWireup=”false” MasterPageFile=”~/Pages/Index.Master”
    CodeBehind=”JQWidgets.aspx.vb” Inherits=”Mbim.Template.JQWidgets” %>

    <asp:Content ID=”Content1″ ContentPlaceHolderID=”MainContent” runat=”server”>
    <script type=”text/javascript” src=”../Scripts/jqwidgets-ver3.2.2/scripts/jquery-1.10.2.min.js”></script>
    <script type=”text/javascript” src=”../Scripts/jqwidgets-ver3.2.2/scripts/demos.js”></script>
    <script type=”text/javascript” src=”../Scripts/jqwidgets-ver3.2.2/jqwidgets/jqxcore.js”></script>
    <script type=”text/javascript” src=”../Scripts/jqwidgets-ver3.2.2/jqwidgets/jqxinput.js”></script>
    <script type=”text/javascript” src=”../Scripts/jqwidgets-ver3.2.2/jqwidgets/jqxbuttons.js”></script>
    <script type=”text/javascript” src=”../../jqwidgets/jqxwindow.js”></script>

    <div id=’content’>

    <link rel=”stylesheet” href=”../Scripts/jqwidgets-ver3.2.2/jqwidgets/styles/jqx.base.css” type=”text/css” />
    <link rel=”stylesheet” href=”../Scripts/jqwidgets-ver3.2.2/jqwidgets/styles/jqx.summer.css” type=”text/css” />

    <script type=”text/javascript”>
    $(document).ready(function () {
    $(“#jqxwindow”).jqxWindow({ height: 150, width: 300, theme: ‘summer’, isModal: true, autoOpen: false });
    $(“#popup”).click(function () {
    $(“#jqxwindow”).jqxWindow(‘open’);
    });
    $(“#button_input”).click(function () {
    var T = $(“#text_input”).val();
    $(“#textbox”).text(T);
    $(“#jqxwindow”).jqxWindow(‘close’);
    });
    $(“#button_no”).click(function () {
    $(“#jqxwindow”).jqxWindow(‘close’);
    });
    });
    </script>
    <div id=’jqxwindow’>
    <div>
    Header</div>
    <div>
    Please enter some text for the textbox:
    <input type=”text” id=”text_input” />
    <br />
    Save the data?
    <input type=”button” value=”Yes” id=”button_input” />
    <input type=”button” value=”No” id=”button_no” />
    </div>
    </div>
    <button id=”popup”>
    Popup window!</button>
    <p>
    Textbox:</p>
    <div id=”textbox” style=”width: 300px; height: 300px; border: 2px solid green;”>
    </div>
    </div>

    </asp:Content>


    Dimitar
    Participant

    Hello cfernandes,

    Please make sure the reference path to the file jqxwindow.js is correct. I guess it would have to be like your other script paths, i.e.:

    ../Scripts/jqwidgets-ver3.2.2/jqwidgets/jqxwindow.js

    and not:

    ../../jqwidgets/jqxwindow.js

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/


    cfernandes
    Participant

    Hello Dimitar,

    Thank you for the help

    Best Regards,

    Cipriano Fernandes

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.