Skip to main content

Error: this._data[x][0] has no properties. Please help

1 reply [Last post]
jptarqu
Offline
Joined: 2007-11-17
Points: 0

Dojo combo boxes are not working for me anymore. The combo boxes appear on the page but without any data (no list). When I click the "down" arrow to see the list, nothing happens. I looked at the error console in Firefox and it says:

Error: this._data[x][0] has no properties
Source File: http://localhost:3000/resources/dojo/resources/libs/dojo/v.4.2/dojo.js
Line: 204

I tried other widgets susch as the yahoo autocompleter but the same happens (no options from the list are displayed.

This is my rhtml file:

<%= javascript_include_tag "jmaki" -%> <%= jmaki_setup -%>

<%= jmaki_widget 'dojo.combobox',
:value => [
{:label => 'Alabama', :value => 'AL'},
{:label => 'California', :value => 'CA'},
{:label => 'New York', :value => 'NY', :selected => true},
{:label => 'Texas', :value => 'TX'}
]
-%>

This is what gets generated:

RenWeb Dashboard

jmaki.webRoot = '';
jmaki.resourcesRoot = '/resources';
jmaki.xhp = '/xhp';

jmaki.webRoot = '';
jmaki.resourcesRoot = '/resources';
jmaki.xhp = '/xhp';

if (typeof djConfig =='undefined') djConfig = { parseWidgets: false, searchIds: [] };

jmaki.addWidget({"value": [{"label": "Alabama", "value": "AL"}, {"label": "California", "value": "CA"}, {"label": "New York", "value": "NY", "selected": true}, {"label": "Texas", "value": "TX"}], "name": "dojo.combobox", "uuid": "dojo_combobox_2", "widgetDir": "/resources/dojo/combobox"});

I am using rails 2.0 and jruby 1.1 rc2 with Netbeans.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jptarqu
Offline
Joined: 2007-11-17
Points: 0

I updated to the last version of the Netbeans' jmaki plugin and re-installed the core and dojo rails plugins. I also upgraded to mongrel 1.1.4 and now it works fine (the error does not show up anymore in the error console).