[desc]: _Hi, thanks for the great plug-in I am building up my website. I have generated a simple form. I cusomized my CSS as well. When you open http://baka.mine.nu/simple-contact-form/ and click Submit button in FireFox it shows the required fields in red but then it jumps to the home page, same thing happens in Safar 3.1.2. This problem does not occur in IE 7.I have other plug-ins installed in Wordpress.
Is it possible to fix this major issue?
Let me know what I need to do in order to fix this. Thanks!
Thank you for your reply. For me it is a major issue because my users will think that the form was submitted even if they did something wrong at least for non IE users.
I clicked view source for the page and I saw that cforms has localhost. But I wonder why is it the only one that has localhost as the other plug-ins didn't. However, I went ahead and followed your advice. I deactivated the plug-in and reactivated it. Now when I go to view source I see no more localhost in front of cforms. I tested the page again after clearing the cache in Safari and FF but the same problem is still there.
For me it is a major issue because my users will think that the form was submitted even if they did something wrong at least for non IE users.
I understand that, but you made it sound like there is something wrong with the plugin code, while it's been a configuration issue on your end.
By the way, looking at your HTML header, it seems that you're running a huge number of plugins and a couple of different contact form plugins on top…this all can easily break any plugin or cforms in particular.
The reason why Ajax is stil broken is the most common mis configuration and covered all over the place: the "js/cforms.js" issue:
var sajax_uri = 'http://localhost/wp-content/plugins/cforms/lib_ajax.php';
I am sorry if I sounded like criticisizing your work. I have disabled all plug-ins and tested again but the same problem presisted. Shouldn't the plug-in read bloginfo('url') so if I changed my blog url the forms would still work?
However, I went ahead and did some further tests to analyze the problem. I changed the theme to default and it worked! I managed to identify the source of the problem for FF and Safari. Actually, I am using Adobe spryframe work from dreamweaver to do the navigation (for the top bar drop down menu) and since I am using Permalink. It breaks relative linking for some reason. for exampke index.php link becomes year/month/day/index.php. After some extensive searching over the web I found a solution for my problem. I inserted this line into my header section <base href="<?php bloginfo('url'); ?>/" />
So far everything has been working nice except for cforms with FF and Safari. When I remove this line cforms operates as expected but it breaks my linking with Permalink pretty. Can you help please, you have better knowledge than me in the web design and scripting! Thanks ahead! I really want to use cforms and I do need it!
Note the missing "simple-contact-form" link thus redirected to the home page. If I set base href to <base href="http://baka.mine.nu/simple-contact-form" />
instead of <base href="<?php bloginfo('url'); ?>/" />
Now I am redirect to simple contact form instead of home page. I guess for some reason IE is not affected by this problem. Can you help please ?
It Worked !!! I disabled Jump to Error (Only Javascript) and everything worked out of the box. Indeed, I have a quite specific setup and you saw the plug-ins :)
I will have to use that fix for all of my forms. However, would I expect a fix for this javascript thingie in future updates of cforms ? that would be nice!
After some thinking, I decided to remove the whole base href thing. I can never tell when it will break something else next time. Besides, I'd like to have a better integration. So the topbar was messed up again. I went to my header and instead of just relative linking to something like this:
Where by SpryAssets folder resides under my www directory directly. I took anything related to the design (CSS + JS) and placed them under my theme directory and I changed the lines to the following: