Javascript error while administering modules (document.adminForm.task is null or not I am repeatedly encountering a Javascript error while trying to configure some modules in the admin console.
The javascript error is being triggered by the
document.adminForm.task.value=pressbutton;
and the error is
document.adminForm.task is null or not an object.
I tried fiddling with the mambojavascript.js file. If I put a null check
if(document.adminForm.task != null)
in the function submitform(pressbutton), I no longer get the Javascript error but then the action too does not get performed.
I have encountered this with various modules. mod_textads and awesom are two of them.
It seems that while some modules and components provide for a hidden form field named task <input type="hidden" name="task" value="" />, not all do that and so these erring modules cause Javascript errors.
My Mambo version is 4.5.1 Beta 4 and I am running it on Windows 2000 with Apache/2.0.47 (Win32) PHP/4.3.2 mod_jk/1.2.4 and
MySQL 3.23.53-max-nt.
I am very much a Java guy and my knowledge of PHP is pretty ordinary. The reason I am trying out PHP CMS for a new site is that there are so many well evolved options with PHP and while getting good PHP hosting is easily possible, Java hosting can be a pain.
Your help will be sincerely appreciated as I unable to configure various modules important to my site. Only by directly tweaking the DB entries have I kept things moving.
thanks,
harshad |