Form code changes not showing up

Please post any bugs you found here

Form code changes not showing up

Postby Horst on Wed May 14, 2008 9:05 am

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
Horst
Fresh Boarder
 
Posts: 14
Joined: Wed May 14, 2008 8:50 am

Re:Form code changes not showing up

Postby GreyHead on Wed May 14, 2008 10:57 am

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
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3251
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Form code changes not showing up

Postby admin on Wed May 14, 2008 4:56 pm

Try more than 1 browser and click the refresh button, is it the same ?
ChronoForms Developer Thanks for using ChronoForms.
If you have any problems with ChronoForms please tell us.
If you like ChronoForms please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
User avatar
admin
Platinum Boarder
 
Posts: 2127
Joined: Mon Aug 14, 2006 5:29 am

Re:Form code changes not showing up

Postby Horst on Sun Jun 01, 2008 9:31 am

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
Fresh Boarder
 
Posts: 14
Joined: Wed May 14, 2008 8:50 am

Re:Form code changes not showing up

Postby Horst on Sat Jun 07, 2008 7:35 am

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
Horst
Fresh Boarder
 
Posts: 14
Joined: Wed May 14, 2008 8:50 am

Re:Form code changes not showing up

Postby GreyHead on Sat Jun 07, 2008 8:29 am

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.
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3251
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Form code changes not showing up

Postby Horst on Sat Jun 07, 2008 9:00 am

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
Horst
Fresh Boarder
 
Posts: 14
Joined: Wed May 14, 2008 8:50 am

Re:Form code changes not showing up

Postby GreyHead on Sat Jun 07, 2008 9:25 am

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:
Code: Select all
<?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
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3251
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Form code changes not showing up

Postby Horst on Sat Jun 07, 2008 2:19 pm

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
Horst
Fresh Boarder
 
Posts: 14
Joined: Wed May 14, 2008 8:50 am


Return to Bugs

Who is online

Users browsing this forum: No registered users and 2 guests