WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => jQuery => Topic started by: pieterb on June 21, 2010, 03:24:14 PM

Title: [SOLVED] Forms get duplicated with jQueryAdmin
Post by: pieterb on June 21, 2010, 03:24:14 PM
Hi everybody,

I'm working on a new website where I have included the featurelist and the prettyphoto scripts as part of the jQuery Admin framework. On my local system with jQueryAdmin v1.0 everything works fine, but now I've uploaded everything to my host, all forms on all pages get duplicated a couple of times. When I remove the calls to the jQueryAdmin objects (e.g. [[jQueryInclude?preset=featureList]]) everything works fine again, but of course, I don't have the jQuery effects anymore. Very strange behavior... Does anyone know why it's doing this?
Title: Re: Forms get duplicated with jQueryAdmin
Post by: BlackBird on June 21, 2010, 03:57:38 PM
Try upgrading to v1.2. If the problem persists, let me take a look.
Title: Re: Forms get duplicated with jQueryAdmin
Post by: pieterb on June 21, 2010, 04:31:01 PM
Sorry, I forgot to mention that on my live site, I have 1.2 running. You can take a look at www.conceptversie.n l. The homepage is fine (it doesn't contain any forms) but any other page is messed up.
Title: Re: Forms get duplicated with jQueryAdmin
Post by: BlackBird on June 21, 2010, 05:56:46 PM
First, try to go back to v1.0, which you said worked fine. (Just replace the *.php files in the jqueryadmin folder. Leave presets and plugins intact.) If possible, let me take a look into the backend for analysis.
Title: Re: Forms get duplicated with jQueryAdmin
Post by: pieterb on June 21, 2010, 07:18:32 PM
Hmm, when I overwrite the PHP files, no jQuery plugins are loaded. I do see in the source that jQuery itself is loaded, but not the modules that I've installed. So now i've put back the 1.2 files.
Title: Re: Forms get duplicated with jQueryAdmin
Post by: BlackBird on June 21, 2010, 08:04:04 PM
Sorry, but there's no way to analyze this issue without backend access. :roll:
Title: Re: Forms get duplicated with jQueryAdmin
Post by: pieterb on June 21, 2010, 08:43:43 PM
I've just sent you a PM with login details. Thanks for your help!
Title: Re: Forms get duplicated with jQueryAdmin
Post by: BlackBird on June 22, 2010, 10:25:52 AM
I'll see what I can do.
Title: Re: Forms get duplicated with jQueryAdmin
Post by: BlackBird on June 22, 2010, 06:27:49 PM
I found that this problem is caused by inline CSS created by the Form module when register_frontend_m odfiles() is missing in the template. So please add the register_frontend_m odfiles() calls to the template to fix this issue.

Anyway, it seems to be a bug in jQueryAdmin I will try to fix.

But adding the register_frontend_m odfiles() calls to the template should help.
Title: Re: Forms get duplicated with jQueryAdmin
Post by: BlackBird on June 23, 2010, 12:30:42 PM
"pieterb" reported by PN that the solution posted here -> https://forum.WebsiteBaker.org/index.php/topic,17705.msg123837.html#msg123837 <- works for him.