J! 3.0 - developing component. Javascript error on add new

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
steinarasb
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon May 04, 2009 4:27 pm
Location: Oslo

J! 3.0 - developing component. Javascript error on add new

Post by steinarasb » Wed Mar 27, 2013 8:51 am

Hi.
I'm in the process of porting a component I've developed from J! 2.5 to J! 3.0.
I've been following the instructions here:
http://docs.joomla.org/Developing_a_Mod ... oomla_3.0:

What happens now is that when I try to add a new "object" by clicking on the "New" button, I get a Javascript-error:

Code: Select all

Warning: Empty string passed to getElementById()
Error: TypeError: form is null
Not sure how to proceede from here, so I hope someone has a pointer...
Thanks!

 
evansmwendwa
Joomla! Intern
Joomla! Intern
Posts: 85
Joined: Fri Jan 14, 2011 8:56 am
Location: Nairobi Kenya
Contact:

Re: J! 3.0 - developing component. Javascript error on add n

Post by evansmwendwa » Wed Mar 27, 2013 6:15 pm

There could be an error in your view or tmpl files. Since it's a javascript error it's hard to know the cause before looking at your code. Ensure your form in tmpl default is named correctly. Otherwise you can attach the files we have a look at your code.
The speed of two moving Objects increases as they converge towards each other.
http://www.authenticvisualsmedia.com
#.If I failed, I tried.#

 

Locked

Return to “Extensions for Joomla! 3.x”