Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2011
    Posts
    41
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Clashing JS scripts

    Hi, could someone please help me with this. I've attached two JS files that I'm using on my application. 'functions.js' controls some basic function of the CMS I'm using, while time-picker-addon.js, is a datetime picker script. But for some reason, the presence of functions.js does not seem to allow the datetime picker work, but when I remove functions.js, the datepicker is working...Could anyone help me take a look at the scripts and find out what's responsible for the clash...

    I know it's much but would appreciate a great help. thanks
    Attached Files Attached Files

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,917
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Does this sticky Scripts are incompatible/don’t work when used together apply to you? What does your error console say?

    They are not inferior teams, they are just not as good. - Commentator Radio 5 Live

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New Coder
    Join Date
    Aug 2011
    Posts
    41
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    Does this sticky Scripts are incompatible/don’t work when used together apply to you? What does your error console say?

    They are not inferior teams, they are just not as good. - Commentator Radio 5 Live

    Thanks for the reply. I've actually taken care of those things mentioned in that post. I currently reference one framework:

    <?php echo js('jquery/jquery.min.js'); ?>
    <?php echo js('jquery/jquery-ui.min.js'); ?>
    <?php echo js('admin/functions.js'); ?>
    <?php echo js('jquery/jquery-ui-timepicker-addon.js'); ?>
    <?php echo js('jquery/jquery-ui-sliderAccess.js'); ?>
    <?php echo js('jquery/jquery.colorbox.min.js'); ?>
    <?php echo js('jquery/jquery.livequery.min.js'); ?>
    <?php echo js('jquery/jquery.uniform.min.js'); ?>

    those are the attached JS I have. It doesn't return any errors, just dat dropdowns and other functions don't work when function.js is out and date picker don't work when it's turned on.

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,624
    Thanks
    6
    Thanked 1,001 Times in 974 Posts
    And what is inside functions.js?

  • #5
    New Coder
    Join Date
    Aug 2011
    Posts
    41
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    And what is inside functions.js?
    I uploaded the files.....


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •