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 7685165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:11:29+00:00 2026-05-31T19:11:29+00:00

i want to use a jquery widget in my pyramid project. Specifically I want

  • 0

i want to use a jquery widget in my pyramid project.
Specifically I want to use a datepicker widget.

I copypasted the jquery datepicker code from http://jqueryui.com/demos/datepicker/ in my template (.pt) file.

<script type="text/javascript">
    jQuery(function() {
        jQuery( "#datepicker" ).datepicker();
    });
</script>
<div class="demo">
<p>Date: <input type="text" id="datepicker"></p>

And I downloaded jquery and I am including its js files like this:

<script src="${request.static_url('eventmanager:static/javascripts/jq/jquery-1.7.1.min.js')}"></script>
<script src="${request.static_url('eventmanager:static/javascripts/jq/jquery-ui-1.8.18.custom.min.js')}"></script>

However, in the page only the text input form appears, with no datepicker calendar, what am I doing wrong?

edit: In my browser javascript console I get the error:

Uncaught TypeError: Object [object Object] has no method 'datepicker'

for when i do

jQuery('#datepicker').datepicker(
  • 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-31T19:11:30+00:00Added an answer on May 31, 2026 at 7:11 pm

    With your code, the calendar should appear, but only when you click in the input box.

    To show a default calendar icon next to the input, do something like this:

    $(function(){
      $('#datepicker').datepicker({
        changeMonth: true,
        changeYear: true,
        showOn: 'button',
        buttonImage: 'calendar.gif',
        buttonImageOnly: true           
      });
      $('#datepicker').datepicker('option', 'dateFormat', 'yy-mm-dd');
    });
    

    You will have to provide the calender.gif icon yourself.

    IN RESPONSE TO YOUR EDIT: Did you call jQuery.noConflict()?

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

Sidebar

Related Questions

I using PHP/Javascript - Widget of alexmarandon from link http://alexmarandon.com/articles/web_widget_jquery/ And in project of
I am using Jquery UI toggle panel mentioned here: http://jsbin.com/eqape I want to use
I want use jQuery in my project. I know the javascript_include_tag calls the jQuery
I want to use jQuery to pull information from my database when I click
I want to use jQuery tabs ( http://jsfiddle.net/43FcS/2/ ) inside a div that's created
I am trying to use jQuery accordion widget. I want to use a common
Possible Duplicate: jQuery UI: How to use ui-widget-overlay by itself? I want to avoid
I want to use in GWT a menu widget (tutorial and code is here:
I want to use the Jquery UI Theme Switcher Widget on my page. The
I'm building a page where I want to use Galleria script ( http://devkick.com/lab/galleria/ )

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.