window.addEvent is not a function

fuxo 16 Mar, 2012
Hi guys,

(sorry, for my english, i am beginner🙂 )

chronoforms is great and very usable extension, but sometime i have one problem:

I want to create a simple form to calculate for example two numbers from Text boxes with "Load JS".
All is ok and form show correct value, but when i want edit a form directly (without Form Wizzard or Easy Form Wizzard) and save him, form in FrontEnd view is "inactive".

When i turn on a console in FireBug, show error message:

window.addEvent is not a function
[Break On This Error] 	
window.addEvent('domready', function() {


Enough when i click on name of form and save him (without any changes) and form in FrontEnd is "inactive" (FireBug: window.addEvent is not a function)

Chronoforms: V4_RC3.21
Joomla! Version 1.5.25
Mootools Upgrade Version 1.2 on Site; 1.2 on Admin



Thanks very much for your answers.
GreyHead 16 Mar, 2012
Hi fuxo,

There is probably a JavaScript conflict with something else on the page that is stopping MooToosl form working. If you resolve the conflict then all will be OK.

Bob
fuxo 16 Mar, 2012
Hi Bob,

thank you for prompt answer.

But, when i create this "calculator" without direct edit (only with Wizzard Edit or Easy Wizzard Edit), all works fine.

For example:
I have this form. Open him on "FrontEnd view" and work perfectly... (this tab let opened). I click on formname (direct edit) and immediately click on save (without any changes). Refresh initially opened tab and Firebug already show error give on above and form does not work.

Its really only conflict with something else on page ?
(I am noob in JavaScript🙂 )

Thanx.
GreyHead 16 Mar, 2012
Hi fuxo,

Please post a link to the form so I can take a quick look.

Bob
GreyHead 16 Mar, 2012
Hi fuxo,

There is no conflict but the JavaScript files aren't being loaded. Please open the form General tab anc check that 'Load necessary files' is set to Yes.

Bob
fuxo 16 Mar, 2012
Bob,

sorry, but problem with form is not solved.

Option "Load necessary files" was been set always from begin...
All options of form are default, look on attached picture.

window.addEvent is not a function image 1

I don't understand, what I work wrong😟

Send you PM with admin pass from my test page?
GreyHead 16 Mar, 2012
Hi fuxo,

Please check for yourself - none of the main JavaScript files are being loaded for that form :-(

If that isn't the cause there has to be another explanation . . .

Bob
GreyHead 17 Mar, 2012
Hi Fuxo,

It looks as though that form is somehow damaged and is not loading any of the JavaScript files. I can't see any obvious reason for that. Other copied files seem to have been OK. It's probably simplest to start over with a new copy of the wizard form.

Bob
fuxo 17 Mar, 2012
Hi Bob,

you're right, other copied files seem to have been OK, but i need customize html in form, who has been created with Wizzard...

Never mind, I'll try review the specification and recreate solution of form.

Thank you very much for really sacrificially support and your time.

fuxo
GreyHead 17 Mar, 2012
Hi fuxo,

i need customize html in form


I think that gave me a clue. On the JS Validation tab validation was turned off. I've turned it back on and the files are loading OK.

Bob
fuxo 17 Mar, 2012
Wow, it works great🙂

Yes, JS Validation was cause of my problems...
(Valitadion is default turned off, a lot of beginers can have a same problem...)

Thank you much again.
(You have realy perfect support for a free Extension)
This topic is locked and no more replies can be posted.