Toolbars Failing to work on a Component.

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
reashlin
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Mon Dec 03, 2007 11:23 am

Toolbars Failing to work on a Component.

Post by reashlin » Fri Dec 21, 2007 10:43 am

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]
Last edited by reashlin on Fri Dec 21, 2007 12:10 pm, edited 1 time in total.

reashlin
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Mon Dec 03, 2007 11:23 am

Re: Toolbars Failing to work on a Component.

Post by reashlin » Fri Dec 21, 2007 12:11 pm

OK,

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

Fixed now anyway


Post Reply