Results 1 to 2 of 2
Sep 9, 2012, 22:44 #1
- Join Date
- Aug 2012
- 0 Post(s)
- 0 Thread(s)
Need ajax input in form to NOT post on enter, and much more
Hey guys. I am developing a full system for my company. I have VERY LITTLE understanding of jquery and this is my first time working with it significantly. I clearly need to get a book and start reading about it. Until then, please help me get this working.
I have a "check in" page where staff members will be checking in the received orders. Because an order can have multiple items, and one form the php looks through for each item to check in.
If an item is received BUT not the proper item there is a field to search for the item received. The ajax then lists the search results which can be selected. There is also and ajax portion that checks to see if the device has a valid ESN IF it is in the array.
I built the page without the form tags. Once I completed the page and started testing, my ajax calls for the product search and check esn field were posting instead of performing their function. Before the form tag they performed perfectly. So, I then modified the product search ajax. It worked PERFECTLY and only runs itself on an enter. However, after doing the same thing to the ajax call for "checking esn" it WOULD NOT work. So I reverted back to the old code. The ESN check should be performed on change.. so after an enter or they tab to the next field etc... where as the product search can be "just enter" or on change.
Lastly, I was trying to "hide" the drop down for each item my page displays once the product search returns results. Once the user selects the radio, the drop down will be shown by slideDown. You can see that commented out at the bottom but it did not work. I assume it has to do with it being an ajax call.
So, basically 3 times. I need both ajax calls to run but NOT to post the full form to my page and prematurely process information before everything can be processed. Lastly, the drop down be hidden until an input is selected for the Ajax call. If the another radio is selected it hides the shown one and slides the new one down.
Thanks so much for any help guys! Its been so frustrating