<p>So looks like i found the answer.  My javascript was submitting the data as json instead of as regular form data.  I reformatted and it works as expected. </p>

<p>Whoops.</p>

CC BY-SA 3.0
2014-08-23T23:40:50.673Z
2014-08-23T23:40:50.673Z
Keith Mancuso
<p>Does anything need to be done to allow for ajax submittions using the GuestEntries plugin? 
<a href="https://github.com/pixelandtonic/GuestEntries" rel="nofollow">https://github.com/pixelandtonic/GuestEntries</a></p>

<p>I'm following the method used here for Contact form, it submits fine and returns success but nothing shows up in the DB?</p>

<p><a href="https://github.com/pixelandtonic/ContactForm#ajax-form-submissions" rel="nofollow">https://github.com/pixelandtonic/ContactForm#ajax-form-submissions</a></p>

<p>in chrome the request looks right?</p>

<pre><code>Request URL: http://familiar.dev/
Request Method: POST
Request Payload:
{"action":"guestEntries/saveEntry","sectionId":"5","enabled":"1","redirect":"contact/thanks","title":"asdsa"}
</code></pre>

<p>any ideas?</p>

CC BY-SA 3.0
2014-08-23T23:23:28.687Z
What's the response look like in Chrome?  Anything weird getting logged in craft/storage/runtime/logs?
Brad Bell
CC BY-SA 3.0
2014-08-23T23:40:10.267Z
So i think i figured it out.  my payload was sent as json instead as regular form data.  I reformatted and everything is working!
Keith Mancuso
CC BY-SA 3.0
2014-08-23T23:41:13.030Z
Ahh... nice catch.
Brad Bell
<ajax><guest-entries>
Ajax Submittions to Guest Entries
# Ajax Submittions to Guest Entries

(Asked by: username_0 on 2014-08-23)

Does anything need to be done to allow for ajax submittions using the GuestEntries plugin? 
https://github.com/pixelandtonic/GuestEntries
I'm following the method used here for Contact form, it submits fine and returns success but nothing shows up in the DB?
https://github.com/pixelandtonic/ContactForm#ajax-form-submissions
in chrome the request looks right?
Request URL: http://familiar.dev/
Request Method: POST
Request Payload:
{"action":"guestEntries/saveEntry","sectionId":"5","enabled":"1","redirect":"contact/thanks","title":"asdsa"}

any ideas?

**Tags:** ajax, guest-entries

> **Comments:**
> **username_1**: What's the response look like in Chrome?  Anything weird getting logged in craft/storage/runtime/logs?  
> **username_0**: So i think i figured it out.  my payload was sent as json instead as regular form data.  I reformatted and everything is working!  
> **username_1**: Ahh... nice catch.  

---

## 1 answers

### Answer by username_0 on 2014-08-23. Score: 1 | Accepted answer

So looks like i found the answer. My javascript was submitting the data as json instead of as regular form data. I reformatted and it works as expected.

Whoops.


---

