Over the holidays I read Javascript Patterns by Stoyan Stefanov. Its a pretty light book consisting only of 240 pages, which is light in computer reading, where majority of the books are like yellow pages phone book over 1000 pages. It was quite enjoyable to have a concise book written by Stefanov, another highly recommended […]
Tag: Javascript
Was coding some new functionality and though I would post this, so that others can find it helpful. Lets say you have a form that has a checkbox that will update the select dropdown box with different values, when the checkbox is clicked. Something like the UI below. Your html code might look like
1 2 3 4 5 6 7 8 |
<input type="hidden" name="fieldId" value="123" /> Parent: <select name="FieldType" id="fieldTypeDropDown"> <option value="16">None</option> <option value="4">Apple</option> <option value="3">Orange</option> </select> Multiple: <input type="checkbox" name="fieldMultiple" id="fieldMultiple" /> |
[…]
So was going through some legacy code to fix some security issues. One of them was there were links that were passing the data on url request. e.g NewFile.aspx?uid=1234 Rather than storing data in a session sometimes developers use shortcuts to do this, could be due to the pressure or time limit we have in […]