Home > date > Drupal date_popup in FAPI conflicted with jquery.ui.core.min.js

Drupal date_popup in FAPI conflicted with jquery.ui.core.min.js

November 7Hits:4
Advertisement

When I use 'date_popup" in FAPI like below,

$form['date'] = array(  '#date_format' => 'Y-m-d',  '#type' => 'date_popup', ); 

Getting below error.

Uncaught TypeError: c.curCSS is not a function -- jquery.ui.core.min.js?v=1.8.7:14

If I use jquery_update module, its not giving any conflict.

But I don't want to use jquery_update module due to some limitation in our site.

Is there any solution to fix this issue?

Upgrading jquery.ui.core.min.js using hook_js_later or drupal_add_js() ?

Edit: Download latest jquery.ui.core.min.js version from http://blog.jqueryui.com/2012/08/jquery-ui-1-8-23/ and replaced old one at /misc/ui/jquery.ui.core.min.js. After that I'm not getting this error.

Is that fine? Or Is there any other solution?

Answers

I think you need to use latest development version 7.x-3.x-dev which has already applied patches that can resolved your issue. Refer this issue.

Tags:date

Related Articles

  • Drupal date_popup in FAPI conflicted with jquery.ui.core.min.jsNovember 7

    When I use 'date_popup" in FAPI like below, $form['date'] = array( '#date_format' => 'Y-m-d', '#type' => 'date_popup', ); Getting below error. Uncaught TypeError: c.curCSS is not a function -- jquery.ui.core.min.js?v=1.8.7:14 If I use jquery_up

  • Saving Custom Registration Form Drupal 7 Using FAPIJuly 27

    Good Day. I created a custom registration form in Drupal 7 using FAPI. I managed to add validation and it works great. Now my problem is when saving it to the database. I can't save my custom data/fields(e.g first Name, Last Name, Birthday, etc) to m

  • Does Bootstrap conflicts with jQuery or jQuery Mobile?January 13

    I am developing a web app. I have already used jQuery and jQuery Mobile as plug-ins for the app. Now, I want to include bootstrap. I wanted to ask if there is any possibility that Bootstrap will conflict with jQuery or jQuery Mobile - so that I can b

  • Does CSS :hover conflict with jquery .mousseenter?

    Does CSS :hover conflict with jquery .mousseenter?February 15

    Does CSS :hover conflict with jquery .mousseenter? Currently having an issue with a nav where a jquery event and css animation trigger at the same time. The css :hover event will not trigger unless I mouseover the element slowly. If it is mouse'd ove

  • Conflicts with jQueryJuly 10

    I wrote a plugin that works fine, but in one site I get jQuery loaded twice even if I don't enqueue it myself (I guess the theme loads it also). I tried to deregister it and than again enqueue but then I get an error like Uncaught ReferenceError: jQu

  • Why is jQuery conflicting with jQuery Mobile?

    Why is jQuery conflicting with jQuery Mobile?January 25

    The libraries that are included in my HTML page are <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/bootstrap.min.css"> <script src="js/jquery.min.js"></sc

  • Why is jquery-ui-core enqueueing in my footer instead of the header?September 1

    This is what I'm using to make sure that I have jquery-ui-core available: if (!is_admin()) add_action('wp_enqueue_scripts', 'zg_load_scripts'); function zg_load_scripts(){ wp_enqueue_script("jquery-ui-core"); } I also tried wp_enqueue_script(&qu

  • Drupal 6 not playing nice with jquery 1.11.1July 30

    I am trying to incorperate a sequential fadIn of several img using a simple Jquery script $(document).ready(function(){ $(".fadeInCopy").each(function(index) { $(this).delay(900*index).fadeIn("900"); }); }); I have the jquery loading p

  • Module conflicting with JQueryApril 6

    I've set up a simple hide-show.js file for my website and I'm working on a module as well. Problem is, if my module is active, the JQuery for the page doesn't work, is there something I need to do to 'close' my module after writing or anything? Edit:

  • Risk of conflict between jQuery document ready and _spBodyOnLoadFunctionNames?February 29

    I recently read in the jQuery documentation that: The .ready() method is generally incompatible with the body onload attribute. If load must be used, either do not use .ready() or use jQuery's .load() method to attach load event handlers to the windo

  • "Conflict" with jQuery (or its plugins)?October 11

    I've been working on localhost and everything looks fine but then when I uploaded my Wordpress theme online, all of the jQuery plugin functions are undefined! One solution that worked (which I haven't tested a lot so I still don't know if it will wor

  • Does using Drupal.ajax() offer any benefits over jQuery.ajax()?May 8

    I'm updating a node's references (list of them - rendered entities) manually with AJAX and experiencing performance problems. $.ajax() is used to call a view rendered with the simplest page.tpl.php ever: print render($page['content']). The filters ar

  • Drupal Multiupload Filefield Widget conflict with mutiselect ajax dropdownJuly 20

    I have created a multiupload field in my node using Multiupload Filefield Widget. I am using the code below to alter the default node form. There is an ajax based dependent dropdown field in the form i.e city dependent on country.When I select a sing

  • JavaScript function name conflict with jQueryJanuary 26

    I have been working on some old jsp pages, and am trying to introduce jQuery to it. However, this is what I get when I start using jQuery on the page: base.js:249 Uncaught TypeError: f is not a function So obviously there is a conflict between our le

  • Avoid $ conflict with jQueryFebruary 1

    I am pretty sure this must have been asked in another form, but searching for the $ sign does not yield any results here. I have already made a big system, and used jQuery extensively, referencing it with the $. At this point, I don't want to go back

  • JS file (drupal.behaviors) that does some simple jQuery works for anon users but not authenticated?February 5

    I have an issue where a JS file I've included with my theme using the .info file works for anonymous users but not authenticated. It has a unique namespace and using the debugger, the contents of the function are skipped when logged in. Here is my JS

  • how to solve conflicts between jquery plugins?January 29

    I have a side bar with accordion and I have plugin for it, and I also have plugin for image preview before saving the image in database. Now, the problem is if the plugin for accordion is loaded, the image preview won't work. How should I solve this

  • jQuery sending CORS preflight message with Content-type = false? how to fix this?January 21

    I'm using a drupal module that sends files through Amazon s3 via CORS. The problem is that, when I upload a file with jQuery CORS, the content type is set to false, instead reading the false value in the ajax arguments and setup the multipart/form-da

  • Jquery for covervid.min.js not workingJanuary 25

    I'm working on http://www.williamscreates.com/demo/. I am facing the issue of jQuery conflict. That's why covervid.min.js does not work properly.

  • How to add Jquery plugin to Drupal?July 13

    Should I just paste the code in the main template file, or is there any other recommended way of attaching new Jquery plugins in Drupal 7? --------------Solutions------------- The easiest way is just to add it on your theme's .info file: scripts[] =

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 17 q. 0.745 s.