Monday, 13 June 2011

Run PHTML file as HTML in Dreamweaver

Go to the folder where the dreamweaver is installed...... (Try to install some other drive where the windows is not installed... due to admin permission problem)

Open Adobe dreamweaver CS3 (or whatever you installed).... and paste crack file (dreamweaver) here (overwrite the older one).

Go to configuration folder....

Then DocumentTypes...... Open MMDocumentTypes file .......... find php5 (it would be on two places).....

Just write ,phtml after php5 in both of the places........

Now you can check.... it will work fine.... :)

Install Symfony in XAMPP

http://www.seiler.it/installing-symfony-framework.html

Wednesday, 1 June 2011

Check all checkboxes through JQuery on a Checkbox event

 //chkAllSub function calls on sub checkboxes click
//chkAll function calls on main checkbox
//.sub_chk is the class of sub checkboxes
//master is the ID of main checkbox



function chkAllSub()
{
  $(".sub_chk").each(function(){
    var chkboxLength = $("input.sub_chk").length;
    if($("input.sub_chk:checked").length >= chkboxLength)
    {
      $("#master").attr('checked',true);
    }
    else
    {
      $("#master").attr('checked',false);
    }
  })
}
function chkAll()
{
  if($("#master").is(':checked',true))
  {
    $(".sub_chk").attr('checked',true);
  }
  else
  {
    $(".sub_chk").attr('checked',false);
  }
}