Forum OpenACS Development: Re: Show/hide fields based on the different inputs

Collapse
Posted by kousalya S on
Thanks for your help Brian.

sorry for disturbing as well.

In my firefox error console, I am getting an error as "ajax not defined".

I changed the "set container_name "other_fields" to set container_name "field2".

Now I get an error as field1_func not defined in firefox error console.

could you please help me

Collapse
Posted by Brian Fenton on
Hi kousalya

2 things: first, can you test my files UNMODIFIED, as I can't tell what impact your changes have made to them?

Second, the "ajax not defined" error means that the Ajaxhelper Javascript files may be in a different location on your OpenACS install. I would recommend you search your installation for the "prototype.js" file. Then change the brian.adp file to have the correct path.

I should add here that the scripts I posted are running on an older version of OpenACS (5.4) and Ajaxhelper (0.82d), so things may be different if you're running on a different version. I don't have a clean install to hand to retest.

Brian

Collapse
Posted by Brian Fenton on
Also in my previous posting, I asked you "can you run brian2 directly in the browser and check that it's working fine (you should see the ns_log entry)". You didn't do this.