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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:12:07+00:00 2026-05-21T10:12:07+00:00

I have created a django application. In my application i have a registration from

  • 0

I have created a django application. In my application i have a registration from which has a date field.For that i was using jQuery datepicker. It was working fine before, but today when i started my application its not working for some unknown reason. I am not able to understand why its not working in my code, but works fine when i gave that script alone in a new html. The error it shows now is datepicker is not a function.Can somebody look into this. I will paste my html code here.

html

<html xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<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.4/jquery.js"></script>

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

<script>
    $(function() {
        $( "#datepicker" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
</script>

</head>
<title>Login/Registration Page</title>
<script type="text/javascript">

   //Created / Generates the captcha function    
    function DrawCaptcha()
    {
        var a = Math.ceil(Math.random() * 10)+ '';
        var b = Math.ceil(Math.random() * 10)+ '';       
        var c = Math.ceil(Math.random() * 10)+ '';  
        var d = Math.ceil(Math.random() * 10)+ '';  
        var e = Math.ceil(Math.random() * 10)+ '';  
        var f = Math.ceil(Math.random() * 10)+ '';  
        var g = Math.ceil(Math.random() * 10)+ '';  
        var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d + ' ' + e + ' '+ f + ' ' + g;
        document.getElementById("txtCaptcha").value = code
    }

    // Validate the Entered input aganist the generated security code function   
    function ValidCaptcha(){
        var str1 = removeSpaces(document.getElementById('txtCaptcha').value);
        var str2 = removeSpaces(document.getElementById('txtInput').value);
        if (str1 == str2) return true;        
        return false;

    }

    // Remove the spaces from the entered and generated code
    function removeSpaces(string)
    {
        return string.split(' ').join('');
    }

    </script>
<body bgcolor="#736F6E" onLoad="DrawCaptcha();">
<div align="center">
<form name="userInputForm" method="POST" id="myFormid" action="http://10.1.0.90:8080/login/">
  <div style="float:left;width:100%;">
    <p style="float:left;margin-right:10px;width:auto;">
      <label style="float:left;">Email id</label>
      <br/>
      <input type="text" name="username" size="25" />
    </p>
    <p style="float:left;margin-right:10px;width:auto;">
      <label style="float:left;">Password</label>
      <br/>
      <input type="password" name="password" size="25" />
      {% if invalid %}
      Mismatch in your email/password. 
      {% endif %} </p>
  </div>

  <p style="clear:both;float:left;">
    <input type="submit" value="Log in" style="float:left;margin-right:4px;"/>&nbsp;


{% load facebookconnect %}
{% facebook_connect_login_button %}
{% facebook_connect_script %}


    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a HREF="http://10.1.0.90:8080/forgotPassword/">Forgotten your password?</a></p>
  </div>
</form>
<br>
<script type="text/javascript">
function userCheck(){
    /*document.getElementById('myFormid').action = "http://10.1.0.90:8080/login/";
    if ((document.userInputForm.username.value.length==0)) */
}
</script>
<form name ="myform"  method="POST" id='FormID'>
<table>
  <tr>
    <td>First name</td>
    <td><input type="text" name="firstName" value=""  maxlength="100" />
      <b id="firstNameID" style="font-family:Times New Roman;color:#B4045F;font-size:14px;"> </td>
  </tr>
  <tr>
    <td>Last name</td>
    <td><input type="text" name="lastName" value="" maxlength="100" />
    </td>
  </tr>
  <tr>
    <td>E-mail</td>
    <td><input type="text" name="email" value="" maxlength="100" />
    </td>
  </tr>
  <tr>
    <td>Password</td>
    <td><input type="password" name="password" value="" maxlength="100"  />
      <b id="passwordID" style="font-family:Times New Roman;color:#B4045F;font-size:14px;"> </td>
  </tr>
  <tr>
    <td>Re-Type Password</td>
    <td><input type="password" name="password1" value="" maxlength="100"  />
      <b id="passwordID1" style="font-family:Times New Roman;color:#B4045F;font-size:14px;"> </td>
  </tr>
  <tr>
    <td>Gender:</td>
    <td><input type="radio" name="sex" value="male" />
      Male
      <input type="radio" name="sex" value="female" />
      Female </td>
  </tr>
  <tr>
    <td>Birthday</td>
    <td><input type="text" name="birthday" id="datepicker" value="" maxlength="100" />
    </td>
  </tr>
  <tr>

  <td width="150">Captcha</td>
    <td><input type="text" id="txtCaptcha" 
            style="background-image:url(1.jpg); text-align:center; border:1px;
            font-weight:bold; font-family:Modern" />
      <input type="button" id="btnrefresh" value="Refresh" onClick="DrawCaptcha();" />
    </td>
    </tr>
    <tr>
        <td>Enter above text</td>
        <td style="float:left;"><input type="text" id="txtInput" value="" maxlength="100" />
      <b id="textcaptcha" style="font-family:Times New Roman;color:#B4045F;font-size:14px;"> </td>
    </tr>
</table>
</form>
<div style="width:200; float:left; margin:20px 0 0 155px;">
  <input type="button" value="Sign Up" onClick="isEmpty();"/>
</div>
<script type="text/javascript">
function isEmpty(){
    if  ((document.myform.firstName.value.length==0)) 
        {
        document.getElementById('firstNameID').innerHTML = 'Please fill this field';
        return true;
        }
    else if ((document.myform.password.value.length==0)) 
        {
        document.getElementById('passwordID').innerHTML = 'Please fill this field';
        return true;
        }
    else if (document.myform.password.value != document.myform.password1.value)
        {
        document.getElementById('passwordID1').innerHTML = 'Password mismatch';
        return true;
        }
    else if (! ValidCaptcha())
        {
            document.getElementById('textcaptcha').innerHTML = 'Please fill the captcha correctly';
        }

    else 
        { 
        document.getElementById('FormID').action = "http://10.1.0.90:8080/registrationForm/";
        document.getElementById('FormID').submit();
        return false; 
        }
}
</script><br><br>

</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-21T10:12:08+00:00Added an answer on May 21, 2026 at 10:12 am

    I got it fixed.. It was a small ignorance from my side. The jqury.js file was referred in another page which was extended from {% facebook_connect_script %} . Thanks a lot for you guys help.

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

Sidebar

Related Questions

I have created a UserControl that has a ListView in it. The ListView is
I have created a few small flash widgets that stream .mp3 audio from an
I am working on a Django application on Google app engine (using app engine
I have a django application that creates xls and txt files. I'm trying to
I have a Django application which edits a database table, which another application polls
I have written a Django app that makes use of Python threading to create
I have created a custom dialog for Visual Studio Setup Project using the steps
I have created a PHP-script to update a web server that is live inside
I have created a C# class file by using a XSD-file as an input.
i have created a workflow activity that do give the item creater of 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.