inicio mail me! View Ehsanul Haque's LinkedIn profile sindicaci;ón

Archive for December, 2006

Got married!

On 26th December I have got married to Tithi. We got engaged right before I came to Canada. It was Bangladesh time 11:30 PM and Canada time 10:30 AM when our marriage was conducted, over phone.

Tithi

It’s her picture - left one is during the ceremony called “Gaye Holud” and right one is during marriage ceremony.

I'm with my mother and father.

I’m with my mother and father.

Please pray for our new life together and you all are invited at my reception party in Bangladesh when I will be there after Tithi gets her visa. Hopefully in three to four months.

Thank you.

Javascript: Select Multiple Dropdown Items

If you would like to have a multiple select dropdown and want to use the selection in a specified format, then here is the solution. Sometimes you may need to create a query string value or fill in a textbox or textarea with the selected values. Say for example you have a dropdown list where you can select multiple items. Upon selecting each option you want to fill in a textarea with the selected value.

Example:


HTML Part:

<form method=POST name='testing'>
  <select name='testsel' multiple onchange='showselection()'>
    <option value="one">one</option>
    <option value="two">two</option>
    <option value="three">three</option>
  </select>
  <textarea id="txtEditions"></textarea>
</form>

Javascript Part:

<script language='javascript'>
  function showselection()
  {
    var frm = document.testing
    var opt = frm.testsel

    var numofoptions = opt.length
    var selValue = new Array

    var j = 0
    for (i=0; i<numofoptions; i++)
    {
      if (opt[i].selected === true)
      {
        selValue[j] = opt[i].value
        j++
      }
    }

    selValue = selValue.join(”+”)

    document.getElementById(”txtEditions”).innerHTML = selValue
  }
</script>