Page 1 of 1

Toolbars Failing to work on a Component.

Posted: Fri Dec 21, 2007 10:43 am
by reashlin
OK,

This could turn into a long post but I'm not sure where to go from where I am other than here. 

I have custom coded a component which seems to be working OK other than the Joomla! toolbars are not operating at all.

Using Opera and its error console get the quoted error message every time I click one of the buttons.

I am guessing that this is something to do with what is most likely a typo in my code but I cannot for the life of me see what it is. 

Can someone point me in a direction on where I should be looking in more detail.  I will of course be continuing my hunt but some guidance would be nice.

opera - error console wrote:JavaScript - http://lexisaa1.miniserver.com/~mglexis ... com_hotels
Event thread: click
Error:
name: TypeError
message: Statement on line 323: Could not convert undefined or null to object
Backtrace:
  Line 323 of linked script http://lexisaa1.miniserver.com/~mglexis ... ascript.js
    document.adminForm.task.value = pressbutton;
  Line 315 of linked script http://lexisaa1.miniserver.com/~mglexis ... ascript.js
    submitform(pressbutton);
  Line 1 of  script
    if (document.adminForm.boxchecked.value == 0)
    else
      At unknown location
    [statement source code not available]

Re: Toolbars Failing to work on a Component.

Posted: Fri Dec 21, 2007 12:11 pm
by reashlin
OK,

Stupidly I had missed out a " one one of the pages and that was killing everything for some reason.

Fixed now anyway