Skip to main content

form widgets

I often when i start studying new material, and stop looking back for the old one, sometimes I lose the sentence structure, so why not documenting it
form controls "widgets":

don't forget setting any name to be used for retrieving data back at the server side
  • sending data
    • single data using input tag with its type attribute set to text, password, radio or hidden, or with a select tag.
    • multiple choice data, as if sending an array use also input tag with its type attribute set to checkbox or radio, or use select tag mentioning its multiple attribute
  • executing events
    • using input tag with its type attribute set to submit, reset, button
<input type=" " name=" " />
type: text, password, hidden ....

<select name="countries" size="2" multiple>
    <option value="fr"> France </option>
    <option value="en"> England </option>
    <option value="eg">Egypt</option>
</select>
style is either a pop-up menu or scroll-able list

<textarea name="dialog" rows="5" cols="35"> paragraph </textarea>

<input type="radio" name="volume" value="h" checked="checked" /> high
<input type="radio" name="volume" value="m" checked  /> medium
<input type="radio" name="volume" value="l" /> low
last one marked as checked take precedence, and yes can just write checked

<input type="checkbox" name="hobbies" value="read" checked="checked" /> reading
<input type="checkbox" name="hobbies" value="walk" checked="checked" /> walking
<input type="checkbox" name="hobbies" value="watch"  /> watching movies
passed to the server in the from hobbies=reading&hobbies=walking

Comments

Popular posts from this blog

The post-office & the postman

If we were to talk about old messaging system where there exist post-office, postman & mailbox. each component had its own functionality that we looked for when trying to visualize how those component where to interact in a computerized version. Simple scenario: Mail is added in mail box Postman arrive pick mails from his area mailboxes and take them to the post-office. Post-office organize mails by areas. Postman takes mails related to his area "distribute it in mailboxes". A person can go to post-office and  pick his own mail "in case of failure or wishes for early delivery". Mapping in a computerized version: Scenario: Observer design pattern which can use push or pull scenario, to inform those whom are registered for an event about its occurrence. Component: Post-Office = Message-Broker Post-Office-Box = Message-Storage-Validity Mailbox = Topic/Queue Postman !!! where's the postman ? Apache kafka act as a message broker which d

Container Storage

When traveling, we always think of our traveling bag. How our luggage will fit in it, yet have you ever thought, How your bag will be stored or transferred. I think data should be thought of same way. How it will be stored and how it will be retrieved. also sizing would matter, How much size data will occupy. Would it fit in one server or will we need a cluster. Many question would jump in your mind, yet storing and retrieving is the most general one. And so we'll move to ask SQL or NoSQL, I'd go for SQL in-case of having multiple entities communicating with each other, having multiple relation between one another. Yet if what I need is a storage unit, then NoSQL would be my choice. Have a look on the CAP theorem and how each of consistency, availability and partition tolerance will be satisfied using the DB engine you choose

Big data OverView

Could you define Beauty ? So is Big Data, it is itself a definition. you could ask what is its characteristics. Big data has n Vs dimension, where n often changes. Laney (2001) suggested that Volume, Variety, and Velocity as 3 Vs, then IBM added Veracity "realism" as the fourth V, later Oracle introduced Value. So how would we process this Big Data. I use hadoop & wish to learn spark. Hadoop is an opensource framework used for analyzing big chunk of data, its divide to 2 modules. map-reduce module and a file system module "HDFS". hadoop divide data to small chunk, start processing each chunk on its own, then start combining each chunk again "divide and conquer principle we used to do in merge sort", each chunk need a core & memory to run on. as a start I need to define location of my data, where would my data reside data would reside hadoop file system (HDFS) fs.defaultFS : hdfs://rserver:9000/ then I define my resources " number o