I came across a bug with the jQuery serialize() method. The issue seemed random and I could not identify the source. Now I found it, and it makes total sense.
I have an application that tracks member information and added a feature to allow members to designate their carrier for their cell phone numbers to receive text messages from the club. With carrier information text messages can be sent via email without paying any third party or needing an SMS server.
Yes, AT&T was causing a problem in my application because I didn’t use & for & in my <select> element option’s text. Upon submitting the form I expected the receiving page to only see the value assigned to each option, but no. Apparently the text of the selected option is also serialized and when that happens it confuses the & in the text/name for a post variable name. This resulted in the receiving page to get a text value instead of the numeric “value” represented by the AT&T value.
Lesson learned, and it makes sense. Hope this information helps someone else.
Ampersand image is from The Ampersand Blog,
We celebrated Cora’s birthday with Beef ‘n Bacon Birthday Cake! Jimmy fried the steak in bacon grease. The house smelled amazing! Puppies got steak. We had chicken salad sammies for dinner.
We need a new camera. Pictures taken with my old iPhone 4S. Not the best photos. To be fair, Cora was rushing me, as you’ll see in the photos. 🙂
Click any photo to enlarge and then use right & left arrow keys to navigate through the photos.
Black and white rabbit eating grass. © 1997-2014 by Cumuli, Inc. http://is.gd/RhJtRz
No, not a panda, but you wouldn’t know by their eating habits in New Jersey!
We haven’t seen rabbits in our backyard for a couple years now, no doubt due to Cora and Josh, so I got a little lazy protecting the large new shoots in our first bamboo bed, Yellow Groove.
Lesson learned. Next year and thereafter I will be putting up the fencing to keep out the critters until the shoots gain some maturity and are not as attractive to the appetites of, my guess, rabbits.
Who knows, we do have at least one groundhog in the yard, perhaps there is a family we haven’t seen. I can’t find evidence that they eat bamboo but maybe they do. In any case, I have fencing up to keep them out. Fortunately they haven’t touched the black bamboo, perhaps it is not as yummy. First sign of that happening and I will fence that one in too.
Click any photo and then use left and right arrow keys on your keyboard to navigate.