Forums

Form code changes not showing up

Horst 14 May, 2008
Hi there,

when I replace my form code with a changed versions
the changes do not show up (immediately), but the old version
of the form is displayed.
I have turned off all caches (browser, Joomla).
One way to come around this is to save the changes with
a different form like Form1, then Form2, etc.
But that is not very user-friendly...


Greets,
Horst
GreyHead 14 May, 2008
Hi Horst,

Normally this isn't a problem. I often work on forms by FTP and changing the code and refreshing the form shows me the change immediately.

I wonder if there is a proxy cache somewhere that isn't being updated. Joomla is dynamic and sends out no-cache headers but it coudl be that these are being ignored.

Bob
Max_admin 14 May, 2008
Try more than 1 browser and click the refresh button, is it the same ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Horst 01 Jun, 2008
Hi there,

I had to work on a different project the last days, so that's why there is this delay...

I've tested it with Firefox 2 and IE6, both have the same problem.
Reloading/disabling browser cache doens't change anything.

But I don't work with FTP but paste the changed code into the
corresponding text box in the admin backend and then press "save".

Greetings,
Horst
Horst 07 Jun, 2008
Hi GreyHead,

if I understand you correctly, you upload your changed
forms via FTP.
I want to give that a try but don't know where
to put my file with the form code.
I already did a "grep" on my hosters file system
but couldn't find anything containing the name of the form.

Regards,
Horst
GreyHead 07 Jun, 2008
Hi Horst,

It's not 'standard' ChronoForms but I find that it works well with complex forms as I can use a PHP/FTP editor and see immediate results.

To make it work I just put an 'include' instruction in the ChronoForms code box, add a components/com_chronoforms/include folder and put the editabel files in there.

I wasn't suggesting that you do this, just that - when I do - code changes immediately show up in the form.

Bob

PS If you want to do this, ask again and I'll write it out in more detail.
Horst 07 Jun, 2008
Hi GreyHead,

yes please, give me more details🙂
I want to set up Dreamweaver to publish the file(s).
At least for the form. The email template doesn't have this
problem, here changes show up immediately.

Thanks,
Horst
GreyHead 07 Jun, 2008
Hi Horst,

I start out with a caution. This is a hack, it is not recommended or supported!!

You need to know what you are doing here as some ChronoForms functionality will not work with this approach. If you have problems you can always cut and paste the code back into the ChronoForms form box.

1) Create a components/com_chronocontact/includes folder.

2) Inside that create a 'form_name' sub_folder (I often have several forms in development at the smae time and this keep them apart).

2) Inside the 'form_name' folder create some empty files 'autogenerated.php', email.php', 'formhtml.php', 'onsubmit_after.php', and 'onsubmit_before.php' You may not use all of these but that's no problem.

3) In the corresponding ChronoForms boxes put:
<?php
require_once JPATH_BASE . DS . 'components' 
. DS . 'com_chronocontact' . DS . 'includes' 
. DS . 'form_name' . DS .'formhtml.php';
?>
with the appropriate file names in each place.

4) You can now edit your code in the included files using FTP and they will be included into the form.

5) Some things will not work like this!! [u][*]{imageverification} will not be found, you can either paste in the full imageverification code, or put the end piece of the form into the code box.[*]'Create data table' will not work. You can fool ChronoForms by putting a list of name attributes into a comment in the form code box: <!-- name="name1" name="name2" . . . -->[*]Form validation won't work. Enter the class names in your form code by hand e.g. class="required" and set it 'On' in the Forms Manager without putting anything in the field name boxes.[/list]There may be more but that give you the main idea.

Bob
Horst 07 Jun, 2008
Hi Bob,

ahh, thank you. I see, it is a bit complicated.
I will try it later because my form has to go productive
very soon, so I postpone all experiments🙂


Best wishes,
Horst
This topic is locked and no more replies can be posted.