When i have an object with a nested object within, whose keys are numbers and send it to my node.js server, then the nested object is converted to an array. How can i prevent this ? Client: Server: { new: [ ‘Test’, ‘Hello’ ] } When i add a not numeric key, everything works fine. Also when the keys are
Tag: jquery-ajax
JavaScript form (ajax submission) with validation doing something funky
I am trying to do a form validation function with Ajax submission. For some reason the validation doesn’t work and when it submits, my server gets the empty fields (when I am testing for the validation) but it shows that it tried to post to the same page… I don’t know why. Form: My JS File: Where I go when