Form Help - Ajax JS

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
michellemaree
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Oct 22, 2014 2:26 pm

Form Help - Ajax JS

Post by michellemaree » Wed Oct 22, 2014 2:29 pm

Hi Guys,
I am building a very basic site for my client and have inherited some old code from a previous developer.
They want to incorporate a contact form that they had before which was written for them. I've been able to get it to come up but the error messages are showing. The form is supposed to reference a file form.ajax.js to hide the error messages until you hit submit and the validation occurs.

Can anyone tell me what I'm doing wrong?

http://www.iecs.michellemaree.com.au is where it's at on my subdomain.

Thanks in advance.
Last edited by imanickam on Thu Oct 23, 2014 7:56 am, edited 1 time in total.
Reason: Moved the topic from the forum Language - Joomla! 2.5 to the forum General Questions/New to Joomla! 2.5

michellemaree
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Oct 22, 2014 2:26 pm

Re: Form Help - Ajax JS

Post by michellemaree » Thu Oct 23, 2014 12:10 pm

Thanks for moving to the right section for me admin.

Can anyone help?

coding1
I've been banned!
Posts: 340
Joined: Mon Oct 20, 2014 10:42 am

Re: Form Help - Ajax JS

Post by coding1 » Mon Oct 27, 2014 4:04 am

your page always refresh, can not click submit in footer...

RedEye
Joomla! Ace
Joomla! Ace
Posts: 1460
Joined: Sat Jan 21, 2006 8:42 pm

Re: Form Help - Ajax JS

Post by RedEye » Tue Oct 28, 2014 11:33 pm

The js code is using $ what is already used by mootools, use jQuery instead.
Also your textarea isn't within the form tag.
But you should use Joomla to send this instead of some php code from an extra file. Btw does that sendemail.php script a redirect on success, I'm getting a 404 from bluehost after sending a post request to it.


Locked

Return to “General Questions/New to Joomla! 2.5”