I have some drop downs where the user makes selections of car make, model, year, mileage and son on, and text boxes where they enter the price of the car, market value, book value and so on and it automatically updates the total market value. When the user clicks the add button to add the car information into the database I want to have an alert message which asks the user if they want to print an invoice with all the details. My code so far inserts the records correctly into the database but I don't get the alert message to allow the user to print.
All the help is appreaciated, ad thank you in advance.
Do you know if the success function is being called at all? Have you tried printing the data from the server to console? You can also try adding a complete function to the ajax call to see what the status code of the response was.
Note that it's a bad idea to have you database code so tightly coupled with your request handling code. Have you already looked at an MVC framework like Laravel?
posted 2 weeks ago
@Stephan I am not sure if the success function is being called, I am a bit new when it comes to ajax and linking it with the server side. since I don't get the alert message I doubt it is being called but I am not sure how to fix that issue.
I haven't looked at any MVC framework as yet, but i will take a look at it, thank you for the tip.
Look! It's Leonardo da Vinci! And he brought a tiny ad!
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps