View Full Version : [SOLVED]debugging help needed...

18 Feb 2010, 10:23 AM
I have the following function which gets loaded into a new tab in a panel when a certain menu item is chosen: http://gist.github.com/307886.

On line 42 I create a store object called titleStore and on 57 a comboBox object called titleCombo that uses it. On line 182 I try to instantiate titleCombo it in a fieldset, but I get an error in Firebug that says:

invalid object initializer
[Break on this error] (319 out of range 286)

This error isn't too helpful since it refers to a line in the static code that doesn't exists (is currently inline js in a Joomla! template and can be seen here http://gist.github.com/307893).
Firgebug's "Break on all errors" doesn't help since it offers me a non existent line to break on (and it seems to know so since it says it is out of range).

When I comment out the titleCombo on line 182, js script execution completes and the page renders.

I have been staring at my code and am sure the error is staring right back at me ready to bite me on the nose, but so far I am blind to it.

Can anyone help?

The rendered page is shown in the attached image.

18 Feb 2010, 11:02 AM
Line 84: extra comma
Instead of

use just

no need in {}

18 Feb 2010, 11:30 AM
Many thanks :)