Widget doesn't show: firebug reports js errors

joachim - December 4, 2008 - 11:20
Project:CCK Node Reference ASM Select
Version:5.x-1.0-rc3
Component:User interface
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

Having downloaded what looks like the matching version of nodereference_asmselect.js from CVS (see http://drupal.org/node/342634), I'm still not getting the widget in a node edit page.

Firebug says:

$("#edit-field-audio-noderef-nids").asmSelect is not a function
[Break on this error] highlightRemovedLabel: 'Removed '
edit (line 65)
ASSERT: *** Search: Invalid URI passed to the nsISearchEngine constructor
[Break on this error] Components.utils.reportError(assertionText);
nsSearch...ervice.js (line 3172)
[Exception... "'Illegal value' when calling method: [nsITimerCallback::notify]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: file:///D:/Mozilla%20Firefox/components/nsUpdateService.js :: anonymous :: line 2787" data: no]
[Break on this error] timerData.callback.notify(timer);
nsUpdate...ervice.js (line 2787)
[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIChannel.contentType]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: file:///D:/Mozilla%20Firefox/components/FeedProcessor.js :: FP_onStartRequest :: line 1440" data: no]
[Break on this error] channel.contentType = "application/vnd.mozilla.maybe.feed";

#1

nath - December 4, 2008 - 12:44
Status:active» postponed (maintainer needs more info)

Did you follow the installation instructions?

INSTALLATION
------------

1. Copy the nodereference_asmselect module directory to your sites/SITENAME/modules
directory.

2. Download ASM Select from http://code.google.com/p/jquery-asmselect/ (last known version
to work is 1.02 beta)

3. Extract it as a sub-directory called 'asmselect' in the module folder:

/sites/all/modules/nodereference_asmselect/asmselect/

4. Enable the module at Administer >> Site building >> Modules.

#2

joachim - December 4, 2008 - 13:38

Turns out this was some weird problem with XAMPP on Windows -- I was getting 404s on those JS files for no reason I can fathom.

It's working now, though the items aren't orderable.

#3

nath - December 4, 2008 - 13:42

Have you set the field to sortable in the configuration?

#4

joachim - December 4, 2008 - 17:04

Yup :)

#5

nath - December 5, 2008 - 10:25

Hmm and your jquery and jquery_ui installations are correct and up to date?

#6

joachim - December 5, 2008 - 11:03

jQuery 1.2.6 vie jquery_update module
jQuery UI 1.5.3
Alternate Select Multiple (asmSelect) 1.0.2 beta

#7

nath - December 5, 2008 - 13:33

The same as here. I guess we have to wait for electricmonk to come back.

#8

joachim - December 6, 2008 - 14:16
Status:postponed (maintainer needs more info)» closed

Closing this as the initial bug I filed for was probably XAMPP weirdness that seems to have gone away. Opening a fresh issue for the lack of sortability: http://drupal.org/node/343619.

 
 

Drupal is a registered trademark of Dries Buytaert.