Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-08-29 12:28:44

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Zem_Contact_Reborn submitting with AJAX


Offline

#14 2009-04-04 08:27:45

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: Zem_Contact_Reborn submitting with AJAX

Thanks Matthew and Patrick for this but I still can’t seem to get it to work; I have followed your tute from the link above but cannot quite figure it all out.

Here’s where I’m at:

  • I have my usual page with the contact form in it (content from a presentations form)
  • I have made a new section named ajax and created a page that calls the contact presentation form.
  • I have included the relevant javascript in my headers – I am using the latest jQuery from Google’s CDN.
  • I do see the loading animation but it just goes on forever

What else is there? Please help.

Alternatively, is there another, better way to make an ajax form in TXP

Many Thanks


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#15 2009-04-06 08:43:19

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: Zem_Contact_Reborn submitting with AJAX

bump..


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

#16 2009-04-06 15:36:03

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Zem_Contact_Reborn submitting with AJAX

Zander, do you have firebug?

If so you can see what comes back from the ajax call in the console. Make sure that the request is not generating an error for some reason (404, or 500). The script only updates on a Succesful response, so if the /ajax/ errors the progress indicator will just be there forever.

It should really do something on failure (like submit the form normally or something), but we didn’t need that at the time.


Shoving is the answer – pusher robot

Offline

#17 2009-04-07 13:17:23

rathersplendid
Plugin Author
From: London
Registered: 2008-05-02
Posts: 163
Website

Re: Zem_Contact_Reborn submitting with AJAX

I do have Firebug and I think it was an issue with an incorrect path and the fact that I’m still on a local MAMP test server, because I do not get any form content sent to me. I can only assume that this is the reason. I will post back if it’s not.


Admin Themes Prometheus | Stung | <txp:coder/
My Portfolio | ɹǝpuɐz.com | @MrMartineau
<txp:coder /> – Convert your designs into Textpattern-based websites
jQuery Style | @jquerystyle

Offline

Board footer

Powered by FluxBB