Ajax call not processing correctly
1 Attachment(s)
I'm using Ubuntu 22.04
My code allows selection of vendors from a database except when; "if (choice=='Add Vendor to List')". When that happens I want to enable the $.ajax call to be able to add a new vendor to the database and re-do the original code again where the added vendor will now be in the database and available as a choice in the selection. Thanks in advance in solving this. R Code:
<script type="text/javascript" > // Drop Down List for Vendors Code:
<!DOCTYPE html> |
Arrange for wire-transfer of $100 an hour and I will then try to debug your code for you.
|
no thank you
|
All right, let me kindly try again. :)
You said: "When [(choice=='Add Vendor to List')"] happens" I want to enable the $.ajax call to be able to add a new vendor to the database and re-do the original code again where the added vendor will now be in the database and available as a choice in the selection." The "'Add Vendor to List'" represents a new path in the overall logic of your program. This is: "an exception." You must now re-direct the user to an entirely-new section of the software – "an entirely-new URL" – which will enable him to successfully add the new vendor. Eventually, if he actually does succeed in adding a new vendor, your program logic must then re-direct him back to "where you are now." This time, the vendor will be there. The flaw in your original statement of the problem is that "the HTTP protocol is stateless." You cannot directly express logic in the manner that you originally stated. |
Quote:
Quote:
|
Thank You for your help. I figured this out finally and split to a new .php file.
R |
All times are GMT -5. The time now is 03:44 PM. |