Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8304011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:42:08+00:00 2026-06-08T17:42:08+00:00

TypeError: $().html(This dialog will show every time!).dialog is not a function This is the

  • 0

TypeError: $(“”).html(“This dialog will show every time!”).dialog is not a function

This is the error I’m getting. The page is loaded using load() in a div on the index page. I’ve included the necessary jquery stuff on the index page (which I’d prefer to keep that way), the loaded page, and both, and it still does this. I’m not sure exactly what’s up. I know it’s more difficult working with a load() page instead of just the page itself, but even going to the page home.php, it still says it. Below is a link to the load page, if you want to see the index just take out home.php in the address.

The page that is being loaded

This is the function I’m using:

<script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery.ui.core.js"></script>
    <script type="text/javascript" src="js/jquery.ui.draggable.js"></script>
    <script type="text/javascript" src="js/jquery.ui.mouse.js"></script>
    <script type="text/javascript" src="js/jquery.ui.position.js"></script>
    <script type="text/javascript" src="js/jquery.ui.resizable.js"></script>
    <script type="text/javascript" src="js/jquery.ui.widget.js"></script>

    <script type="text/javascript">
    function readMore(id,title,cat,desc,post,auth) {
        //alert(id +","+ title +","+ cat +","+ desc +","+ post +","+ auth);
        var $dialog = $('<div></div>').html('This dialog will show every time!').dialog({autoOpen: false,title: 'Basic Dialog'});
        $dialog.dialog('open');
        $dialog.title = title;
        $dialog.html(desc);
    }
    </script>

As it is right now, all the includes for dialog are on the load page, and not the index page, but like I said, I’ve tried one or the other or both, to no avail. Also alert works fine and is passing everything correctly and is getting called when I want it to. All the paths to the jquery includes are correct.

And if it helps narrow it down for some reason, I’m getting theres errors on page load too:
TypeError: $.widget is not a function
[Break On This Error]

_uiHash: function(event) {

jquery…able.js (line 504)

TypeError: $.widget is not a function
[Break On This Error]

_mouseCapture: function(event) { return true; }

jquery…ouse.js (line 162)

TypeError: $.widget is not a function
[Break On This Error]

ui: function() {
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:42:09+00:00Added an answer on June 8, 2026 at 5:42 pm

    You also need:

    • jquery.ui.button.js
    • jquery.ui.dialog.js

    Also put mouse before draggable, as commented above by Musa, it’s important.

    summary:

    1. jquery.ui.core.js
    2. jquery.ui.widget.js
    3. jquery.ui.mouse.js
    4. jquery.ui.position.js
    5. jquery.ui.draggable.js
    6. jquery.ui.resizable.js
    7. jquery.ui.button.js
    8. jquery.ui.dialog.js

    But instead of loading all the single files I would suggest to load the complete UI from a CDN.

     <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
      <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
      <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried the following: $.load(Views/chatBox.html).appendTo('body') Console Output: TypeError: $.load is not a function EDIT
Not quite understanding why I am getting this trace error: Traceback (most recent call
TypeError: Result of expression 'this._configure' [undefined] is not a function. I keep running into
I am getting this error: Uncaught TypeError: Object [object Object] has no method 'calendricalDate'
I keep getting this error when I try to load my templates: TypeError: cannot
I get this error TypeError at /debate/1/ get_context_data() takes exactly 2 arguments (1 given)
I get this error: TypeError: object.__init__() takes no parameters when running my code, I
I'm getting TypeError: coercing to Unicode: need string or buffer, int found This is
I got RJS error: TypeError: element is null while using ajax. I used in
I'm getting the error: Uncaught TypeError: Cannot read property 'constructor' of undefined When declaring

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.