HNHacker News
TopNewBestAskShowJobs

cafebabe1991

26 karma · joined July 7, 2014

Talk is cheap, show me some code.
submissionscomments
cafebabe1991··on Sending form data made easy with – diver.js
It catered to mine and I am sure it can cater to someone else's as well. A lot of naive users do send json objects by first creating them by writing boilerplate code.

I know the library does not do something extravagant and has been done before by others as well but it is something that I was and am excited to share with the community to make me better in js.

cafebabe1991··on Sending form data made easy with – diver.js
This works for non-form elements as well which was a necessity in my case.
cafebabe1991··on Sending form data made easy with – diver.js
It is on github for over an year now. I was working on my own startup that time and hence could not get much time to publish it here. Now I had time so publishing here to get feedback on it.
cafebabe1991··on Sending form data made easy with – diver.js
Would you give it a try @esaym and maybe if possible do share your issues. May be I can add something new to my library.

Here is a list of even more sophisticated libraries that might help you as well

https://www.npmjs.com/search?q=form+serialize

Someone already posted this link earlier here.

cafebabe1991··on Sending form data made easy with – diver.js
Isn't it fair to any developer to just share what he/she has created all by themselves with the outside community ? I wanted to do the same, guys.
cafebabe1991··on Sending form data made easy with – diver.js
Thanks for sharing this link, I have however used this library. Things that I did not like in this because of the following reasons

1. I cannot put the values of one object inside the other unless they come under the same parent.

2. Arrays in my case can be created in one go and you need not specify the array indexes hard coded in the html itself.

3. In my case some inputs were not inside any forms. This library mandates that it should be so it did not work for me.

I understand my code will be far less sophisticated but I made it to solve a problem and learn javascript as well. I did and wanted to see how many others face the same problem and can use it.

cafebabe1991··on Sending form data made easy with – diver.js
I agree with you, but I was learning javascript and wanted to write something with it that could solve my form related problem. I tried using some libraries but some had bad notations and some did not work as expected. I wrote it on my own and thought to share it with people who have gone far beyond in js and get their feedback. That is why I shared it.