-
- 45 Posts
Hi,
Has anyone attempted to create a snippet based on Dustin Diaz AJAX contact form?
http://www.dustindiaz.com/ajax-contact-form/
I have tried to install it normally, so far so good, just doesn’t seem to send anything! -
http://www.cromwellcare.com/index.php?id=6
The only reason I ask, is that I love the animated loading bar when you press send
http://www.dustindiaz.com/testJax/
Smoking is one of the leading causes of statistics.
Stupid suggestion, I’m sure, but double check to make sure you don’t have the page cached.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
- 45 Posts
sure, caching was off, I decided to default back to your own form now
- was too much headache trying to get it to work. If anyone else has luck, let me know
Smoking is one of the leading causes of statistics.
-
- 45 Posts
Hi Gary,
I managed to get most of mine working, I put a JS alert function into all my JS files to let me know they had loaded, which they had.
My Issue was that I don’t think the JS files were communicating with the rest of the PHP files...
I did mine like so:
The form was made into a chunk and inserted into the page.
I made a specific template for the Contact page, and put in the JS file paths, in my case: assets/js/contact.js etc...
The PHP files were placed in: assets/ajax/contact.php
I changed the four variabled as was indicated in his tutorial.
When playing with the form, it seemed to contact the JS files, display the messages "sending..." , show the nice .gif, then display a success message. But no email...
Smoking is one of the leading causes of statistics.
Good idea about using a separate template, that would avoid using the regClientStartupScript command that I’m having problems with.
I’ll give that a go and post back if I get any success.
Thanks, Garry
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
-
- 45 Posts
I can’t believe you’re still awake too! It’s like 02.33am ....
Mark was very helpful, virtual cadburys roses all round to the modx forum team, a helpful bunch of peeps
Smoking is one of the leading causes of statistics.