Suljettu

Jquery Modal form with in-line validations

I have been building an app and have encountered a road block related to AJAX form submission. I am having trouble including in-line validations and getting the form to submit.

The big questions are:

-where to put and how to implement validations for the new user/transaction modal form

-how to submit the modal form

-how to update the page after form submission

My app is integrated with Stripe for payments. I am using client_side_validations gem for in-line form validation.

Here's the user flow:

1. Non-user clicks the "buy" button for a post

2. 'transactions/form' modal dialog form opens: contains a form that creates a new transaction and optionally- a new user (registration)

3. form contains stripe credit card fields and optional password/email fields, also contains hidden fields for information about the post (id, price, etc...)

4. User has two options:

a. enter only credit details

b. enter credit details and password/email, i.e. register

5. click submit

6. IF: option a, only credit details have been entered

- validate card

- charge credit card

- close modal and make appropriate changes to the page

7. IF: option b, credit card + registration details have been entered

- validate card and user details

- create user

- create customer and charge customer

- close modal and make appropriate changes to the page

8. the post is changed from 'active' to 'inactive'

If you take on the job, I'll add you as a contributor to my private github repo

The files and line numbers that need work are:

[url removed, login to view] line: 43- the create action

[url removed, login to view]

[url removed, login to view]

pages/[url removed, login to view] line: 24

transactions/[url removed, login to view]

Would be forever indebted to you if you could take on this job, or at the very least take a look at my code and suggest something.

the final file that needs editing:
application.js line 60

Taidot: jQuery / Prototype, Ruby on Rails

Näytä lisää: validate credit card, update prototype, submit prototype, ruby price, ruby on rails jquery, ruby on rails flow, ruby gem update, registration flow, rails job, prototype validation, prototype update html, prototype update, prototype create form, on line job work, modal prototype, make my prototype, make line, jquery submit form ruby on rails, job on the line, job id card, html to haml, how to make prototype, how to make a prototype, how to make a line card, how to create prototype

Tietoa työnantajasta:
( 0 arvostelua ) Santa Barbara, United States

Projektin tunnus: #4278120

8 freelancers are bidding on average $200 for this job

webzin

Hi Have Gone through your requirement and understood, we are very sure that we can do your needs with your entire satisfaction. We have left a PMB for you plz feel free to have a look over there. Thnx Ram Webzin I Lisää

250 $ USD 7 päivässä
(3 arvostelua)
4.8
rupeshx

Hi, I can work as per your requirement. Thanks

250 $ USD 3 päivässä
(7 arvostelua)
4.3
MOrigoni

Hi brianjoseff, I'm a javascript ninja, ready to help you in this project. Please Check PM for clarification.

200 $ USD 4 päivässä
(16 arvostelua)
4.2
scriptphp87

Hello Please read more than private message thank you

200 $ USD 5 päivässä
(4 arvostelua)
3.9
jsinfoway

Hi, Have Gone through your details. We have left a PMB for you plz have a look over there. Thnx Jay JS Infoway Team

200 $ USD 15 päivässä
(1 arvostelu)
2.6
SpongeeBob

AAAAAAAAAaaaaaa

50 $ USD 30 päivässä
(1 arvostelu)
1.0
neoconcepts

php/mysql/jquery team

350 $ USD 3 päivässä
(1 arvostelu)
0.0
ibapi

please message if you like.

250 $ USD 3 päivässä
(0 arvostelua)
2.6
abanipatra

Hi, I would like to work on your project.

50 $ USD 2 päivässä
(0 arvostelua)
0.0