Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

TypeError: $(...).live is not a function 15 Feb 2013 02:00 #6758

Getting this error in the /administrator/components/com_mycomponent/js/jquery.validationEngine.js
line 28...
$(".formError").live("click", function() {
Its preventing jQuery(document).ready(function($)... scripts from running.

Has .live has been depreciated?

Workaround - replace line 28 with...
$(document).on("click",".formError", function() {

I'm using
  • Firefox (latest)
  • Jcook V2.0
  • JS Framework:Jquery
  • Embed Framework:No
  • Form Style: Condensed
  • Features: JDom Complete (so I don't get those todo graphics)
  • Todo:No
  • DB Auto: Model

Cheers
Just call me Chris :)

Please Log in or Create an account to join the conversation.

Last edit: by organicwebs.

Re: TypeError: $(...).live is not a function 15 Feb 2013 15:30 #6769

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
What version of jQuery do you have loaded? Is it > 1.9.x ?

If so, I think that the workaround is to grab the 1.8.x version instead... jQuery has recently deprecated many methods to harmonise their naming conventions across many widgets/plugins - good long-term, annoying as hell right now!

Please see: www.j-cook.pro/forum/19-new-tickets/6457...-last-jquery-version

************** ADD - I presume that you are in fact using the latest 1.9.x version as, from the jQuery docs it appears as though it was deprecated from version 1.7 and as of 1.9 it's been removed - hence the .live() is not a function error. You can get around this by changing .live() to .on(). Please see link for more details...
**************

Best wishes,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Last edit: by JoomGuy. Reason: SEE *ADD*

Re: TypeError: $(...).live is not a function 05 Aug 2013 18:45 #10690

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Re: TypeError: $(...).live is not a function 14 Oct 2013 10:42 #11390

Hi,

I've the same problem.
There's no line in helper
$doc->addScript('http://code.jquery.com/jquery.min.js');

I've tried to change in dom/framework/jquery/core.php :
protected $hostedSource = 'http://code.jquery.com/jquery.min.js';
by
protected $hostedSource = 'http://code.jquery.com/jquery-1.8.2.min.js';
and
$this->attachJs[] = 'jquery.min.js';
by
$this->attachJs[] = 'jquery-1.8.2.min.js';

Same error....

PS : there's a reference to 1.9.1 css : $doc->addStyleSheet('code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css');

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.080 seconds

Real time saver and great Component Builder tool ! I have been developing with J-Cook Pro Component Builder for several months now and can say with all honesty that this product/service is second to none. The product is feature rich and is being improved and added to all the time. Do yourself a favor if you need to build a Joomla! Component then you can do no wrong in trying the product. You will save on time and effort while being able to deliver your project on time. J-Cook pro does the hard work for you you then have the freedom to fully customise the end result for your own needs. 

One word: Awesome.
Edwardcox (JED)
         

Get Started