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

  • SEARCH
  • Home
  • 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 7558915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:29:53+00:00 2026-05-30T12:29:53+00:00

Can jQuery UI be used with web.py? With jQuery and web.py, you can trigger

  • 0

Can jQuery UI be used with web.py? With jQuery and web.py, you can trigger events using jQuery or $$ (because $ is used by web.py for template variables) – but the same does not seem to be true with jQuery UI.

I get the following error from the code below: jQuery(“#dialog”).dialog is not a function. The same code executes correctly outside of web.py framework.

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>jQuery UI Example Page</title>
    <script src="http://code.jquery.com/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="/usr/local/pos/templates/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        jQuery(function(){

            // Dialog           
            jQuery('#dialog').dialog({
                autoOpen: false,
                width: 600,
                buttons: {
                    "Ok": function() { 
                        jQuery(this).dialog("close"); 
                    }, 
                    "Cancel": function() { 
                        jQuery(this).dialog("close"); 
                    } 
                }
            });

            // Dialog Link
            jQuery('#dialog_link').click(function(){
                jQuery('#dialog').dialog('open');
                return false;
            });             
        });

    </script>   
</head>
<body>
<h1>Hello</h1>  

    <h2>Dialog</h2>
    <a href="#" id="dialog_link">Open Dialog</a>

    <!-- ui-dialog -->
    <div id="dialog" title="Dialog Title">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
    </div>
</body>
</html>
  • 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-05-30T12:29:55+00:00Added an answer on May 30, 2026 at 12:29 pm

    You are probably not properly loading jQuery UI.

    /usr/local/pos/templates/jquery-ui-1.8.18.custom.min.js
    

    looks like it should be a http URL instead – you don’t want to use a local filesystem path. (if it’s meant to be a relative filesystem path, double-check whether it’s correct.)

    Make sure you are using the right URL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I haven't used jQuery yet, but one can't help but notice the plethora of
I am used to making web pages with animation using JQuery. I am now
I've used jQuery to hide a link on a webpage, but it can be
I know that jQuery.extend can be used to add by own custom methods to
can somebody tell me what is jQuery plugin? I have used the jQuery library
Just to be sure it can be safely used with JQuery scripting.
For the longest time I've used jQuery to hack together web sites. Now I'm
I have used jQuery UI library to drag divs within a web page. While
Since I have mootools used on a web page, jquery conflicts with it so
I'm using the excellent Jquery-Filedrop [weixiyen] used by tutorialzine and I'm stuck on a

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.