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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:38:11+00:00 2026-06-07T23:38:11+00:00

I created two jquery and scripts to build a calender confirmation ..but when they

  • 0

I created two jquery and scripts to build a calender confirmation ..but when they are in seperate html pages it works well..but it doesnt work when the two scripts are in the same page..Why is that?

    <script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
<script  src="Scripts/jquery-ui-1.8.21.custom.min.js" type="text/javascript"></script>


  <script>

$(document).ready(function(){

 $('#click').click(function(){
    //$(function() {
        // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
        $( "#dialog:ui-dialog" ).dialog( "destroy" );

        $( "#dialog-confirm" ).dialog({
            resizable: false,
            height:140,
            modal: true,
            buttons: {
                "Ok": function() {

                        $('#form1').submit();



                    //*****************************************************************
                },
                Cancel: function() {
                    $( this ).dialog( "close" );
                }
            }
        });
    });
    });
    </script>
<script type="text/javascript" src="jquery/jquery.min.js"></script>
<script type="text/javascript" src="jsdatepick-calendar/jquery.1.4.2.js"></script>
<script type="text/javascript" src="jsdatepick-calendar/jsDatePick.jquery.min.1.3.js"></script>
<script type="text/javascript" src="jquery/fadeslideshow.js">

/***********************************************
* Ultimate Fade In Slideshow v2.0- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>
<script type="text/javascript">
//Datechooser_____________________
window.onload = function(){
new JsDatePick({
            useMode:2,
            target:"date_created_text",
            dateFormat:"%Y-%m-%d"

        });

        new JsDatePick({
            useMode:2,
            target:"date_retained_text",
            dateFormat:"%Y-%m-%d"

        });

        new JsDatePick({
            useMode:2,
            target:"date_to_be_disposed_text",
            dateFormat:"%Y-%m-%d"

        });

}
</script>


<script type="text/javascript">

var mygallery=new fadeSlideShow({
    wrapperid: "slide", //ID of blank DIV on page to house Slideshow
    dimensions: [967, 200], //width/height of gallery in pixels. Should reflect dimensions of largest image
    imagearray: [
        ["images/img0.jpg", "", "", "The best way to track your files"],
        ["images/img1.jpg", "", "", "The choice for quality service"],
        ["images/img2.jpg", "", "", "With latest technology"],
        ["images/img3.jpg","","","For a safe and secured place"],
        ["images/img4.jpg", "", "", "Better performance with reliable service"],
        ["images/img5.jpg", "", "", "24 x 7 Service"]

         //<--no trailing comma after very last image element!
    ],
    displaymode: {type:'auto', pause:5000, cycles:0, wraparound:false},
    persist:  false, //remember last viewed slide and recall within same session?
    fadeduration: 1500, //transition duration (milliseconds)
    descreveal: "peekaboo",
    togglerid: ""
})




</script>
<script type="text/javascript">
function Blank_TextField_Validator()
{
// Check the value of the element named text_name from the form named text_form
//if (text_form.text_name.value == "")
if(form1.legacy_code_text.value=="" && form1.lable_title_text.value=="" && form1.file_name_text.value=="" && form1.bundle_ref_no_text.value=="" &&form1.bundle_shelf_no_text.value=="" && form1.rack_no_text.value=="" && form1.shelf_no_text.value=="" &&form1.date_created_text.value=="" && form1.date_retained_text.value=="" && form1.date_to_be_disposed_text.value=="" && form1.division_list.value==-1  && form1.unit_list.value==-1 && form1.assignee_code_list.value==-1 && form1.assignee_list.value==-1 && form1.subject_list.value==-1 && form1.serial_no_list.value==-1)
{
  // If null display and alert box
   alert("You have to have even one searching criteria to search files !");
  // Place the cursor on the field for revision

  // return false to stop further processing
   return (false);
}
// If text_name is not null continue processing
return (true);
}
</script>
  • 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-07T23:38:13+00:00Added an answer on June 7, 2026 at 11:38 pm

    Keep only this line:

    <script src="Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    

    And remove the following lines:

    <script type="text/javascript" src="jquery/jquery.min.js"></script>
    <script type="text/javascript" src="jsdatepick-calendar/jquery.1.4.2.js"></script>
    

    You can’t call the jQuery library more than 1 time inside the page.

    Hope this works… Muhammad.

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

Sidebar

Related Questions

I created two jquery and and script tags to calender an confirmation ..but when
I created two dropdpwn calendar in my form with these codes: <script type=text/javascript src=http://code.jquery.com/jquery-latest.js></script>
I created two very simple Heroku apps to test out the service, but it's
languages used: html, javascript/jquery, and php 5.2 So I created this function that onclick
I have two jQuery UI custom builds; they were made by different people from
We are using two scripts at the same time: prettyPhoto and jQuery pagination .
Im using jQuery to modify html that has been created with other javascript. If
I have created a sample web application using jQuery Mobile. I have created two
This is my css and Jquery i created this two functions to show text
I am using jquery to create two sets of tabs on a page. The

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.