Skip to main content
edited tags
Link
user2948
user2948
deleted 1 characters in body; edited title
Source Link
Laxman13
  • 6.8k
  • 3
  • 30
  • 39

How to use standard drupalDrupal 7 farbtastic component? jQuery error

So,

  this is my code:

  drupal_add_library('system', 'farbtastic');

I've added it to a page callback function (also tried putting in an implementation of hook_page_alterhook_page_alter()). It doesn't seem to initialize properly, it fails on the first line of the system library farbtastic,

"Uncaught TypeError: Cannot read property 'farbtastic' of undefined"

Uncaught TypeError: Cannot read property 'farbtastic' of undefined

Has anyone had this issue before? Any ideas? I get the sense I'm doing something wrong because farbtastic is part of drupalDrupal core now...

How to use standard drupal 7 farbtastic component? jQuery error

So,

  this is my code:

  drupal_add_library('system', 'farbtastic');

I've added it to a page callback function (also tried putting in an implementation of hook_page_alter). It doesn't seem to initialize properly, it fails on the first line of the system library farbtastic,

"Uncaught TypeError: Cannot read property 'farbtastic' of undefined"

Has anyone had this issue before? Any ideas? I get the sense I'm doing something wrong because farbtastic is part of drupal core now...

How to use standard Drupal 7 farbtastic component? jQuery error

So, this is my code:

  drupal_add_library('system', 'farbtastic');

I've added it to a page callback function (also tried putting in an implementation of hook_page_alter()). It doesn't seem to initialize properly, it fails on the first line of the system library farbtastic,

Uncaught TypeError: Cannot read property 'farbtastic' of undefined

Has anyone had this issue before? Any ideas? I get the sense I'm doing something wrong because farbtastic is part of Drupal core now...

Post Migrated Here from stackoverflow.com (revisions)
Source Link
michael
  • 111
  • 3

How to use standard drupal 7 farbtastic component? jQuery error

So,

this is my code:

  drupal_add_library('system', 'farbtastic');

I've added it to a page callback function (also tried putting in an implementation of hook_page_alter). It doesn't seem to initialize properly, it fails on the first line of the system library farbtastic,

"Uncaught TypeError: Cannot read property 'farbtastic' of undefined"

Has anyone had this issue before? Any ideas? I get the sense I'm doing something wrong because farbtastic is part of drupal core now...