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.093 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started