Search This Blog

Wednesday, July 31, 2013

Hide and show multiple html elements using javascript

 Welcome to Designers Dairy blog here i have posted how to show and hide the selected Elements using

JavaScript dynamically

Step1:

Script:

<script type="text/javascript">
function myfunction(divid,actionid,up,down)
{
     if ($('#' + actionid).hasClass("display_hide"))
     { 
             $('#'+ divid).removeClass('up').addClass('down');           
            $('#'+actionid).removeClass('display_hide').addClass('display_show');
     }

  else
     {
         $('#'+ divid).removeClass('down').addClass('up');
         $('#'+actionid).removeClass('display_show').addClass('display_hide');
           
     }   
 return false; 
 }
</script>

Step2:

Style:

<style type="text/css">
.up
{
    background:url(images/Actionarrowdown.png) no-repeat 0 0;
    height:16px;
    width:16px;
    content: "cccccc"
}


.down
{
    background:url(images/Downarrowblue.png) no-repeat 0 0;   
    width:16px;
    border-color: #337DB2 #337DB2 -moz-use-text-color;
    border-radius: 10px 10px 0 0 !important;
    border-style: solid solid none;
    border-width: 4px 4px 0;
    height: 34px !important;
    margin: 0 !important;
    width: 64px !important;
 
   
   
}
.action_dropdowncontainer {
    border: 4px solid #337DB2;
    font-size: 13px;
    height: auto;
    border-radius:0px 10px 10px 10px !important;
    margin: 0 10px 0 0;
    min-height: 50px;
    padding: 0 0 15px;
    position: absolute;
    width: 205px !important;
    z-index: 10;
}
.display_hide
{
    display:none;
}
.display_show
{
    display:block;
}
</style>

Step3: 

HTML Code :

<div style="height:250px;">

  <div class="up" id="divid-1" onClick="myfunction('divid-1','action_event','up','down')">  </div>

<div id="action_event"  class="dropdownlist actions action_dropdowncontainer border-radius white_bg w186 right display_hide">
                  <div class="action_event_strip"></div>
                  <div class="left"> <a href="#"><i class="icon-large level-1"><b class="left marginleft_33 white_color">1</b></i> <strong class="marginleft_5">View Level 1 </strong> </a></div>
                  <div class="left"> <a href="#"><i class="icon-large level-2"><b class="left marginleft_33 white_color">2</b></i> <strong class="marginleft_5">Request Level 2 </strong> </a></div>
                  <div class="left"><a href="#"> <i class="icon-large callback margintop_5"></i><strong class="paddingleft_8">Callback Pending</strong></a></div>
                  <div class="left"> <a href="#"><i class="icon-large validate left"></i><strong class="alignleft paddingleft_8 margintop_5 w110">Validate</strong></a></div>
                  <div class="left"> <a href="#"><i class="icon-large edit left"></i><strong class="alignleft paddingleft_8 margintop_5">Edit</strong></a></div>
                </div>

</div>



  <div class="up" id="divid-2" onClick="myfunction('divid-2','action_event-1','up','down')">  </div>

<div id="action_event-1"  class="dropdownlist actions action_dropdowncontainer border-radius white_bg w186 right display_hide">
                  <div class="action_event_strip"></div>
                  <div class="left"> <a href="#"><i class="icon-large level-1"><b class="left marginleft_33 white_color">1</b></i> <strong class="marginleft_5">View Level 1 </strong> </a></div>
                  <div class="left"> <a href="#"><i class="icon-large level-2"><b class="left marginleft_33 white_color">2</b></i> <strong class="marginleft_5">Request Level 2 </strong> </a></div>
                  <div class="left"><a href="#"> <i class="icon-large callback margintop_5"></i><strong class="paddingleft_8">Callback Pending</strong></a></div>
                  <div class="left"> <a href="#"><i class="icon-large validate left"></i><strong class="alignleft paddingleft_8 margintop_5 w110">Validate</strong></a></div>
                  <div class="left"> <a href="#"><i class="icon-large edit left"></i><strong class="alignleft paddingleft_8 margintop_5">Edit</strong></a></div>
                </div>

                </div>


 Step4:

Screenshot:




 Click on the Arrow button it will hide the select element and change the arrow up and down


Enjoy Folks

Monday, July 29, 2013

Show and Hide the Elements using javscript function

 Welcome to Designers Dairy blog here i have posted how to show and hide the selected Elements using

JavaScript dynamically

Step1:

Script:

function myfunction(divid,id,up,down)
 {       
    if ( $('#' + id).css('display') == 'block')
   
     {
          $('#' + id).css('display', 'none');
         
         $('#' + divid).removeClass(up);
         
 $('#' + divid).addClass(down);
           
           
     }

  else
             {
                  $('#' + id).css('display', 'block');
                   $('#' + divid).addClass(up);
         
 $('#' + divid).removeClass(down);
           
       
              
            }
           
return false;

}

Step2:

Style:

.up
{
    background:url(up_arrow.png) no-repeat 0 0;
    height:16px;
    width:16px;

}
.down
{
    background:url(down_arrow.png) no-repeat 0 0;
    height:16px;
    width:16px;
   
   
}

Step3: 

HTML Code :

<div class="up" id="divid"  onClick="myfunction('divid','tab1','up','down')"></div>
 <div id="tab1">
            <input name="" type="text">
</div>


 Step4:

Screenshot:



 Click on the Arrow button it will hide the select element and change the arrow up and down


Enjoy Folks

Wednesday, July 24, 2013

toggle() method


Welcome to Designers Dairy blog here i have posted how to show and hide the selected Elements in

toggle() Method

Step 1:

Script


<script type="text/javascript">

$(function()
{
 $("#arrow").click(function()
 {
    $("#tab1").toggle();

if ($("#arrow").hasClass("up"))
{
    $("#arrow").removeClass("up");
    $("#arrow").addClass("down");
}
else
{
    $("#arrow").removeClass("down");
    $("#arrow").addClass("up");
}

});
});
</script>

Step 2:

Style:

<style type="text/css">
.up
{
    background:url(up_arrow.png) no-repeat 0 0;
    height:16px;
    width:16px;
   
   
   
}
.down
{
    background:url(down_arrow.png) no-repeat 0 0;
    height:16px;
    width:16px;
   
   
}

</style>


Step 3:

Html Code:

<div id="arrow" class="up"></div>
 <div id="tab1">
            <input name="" type="text">
          </div>


Step 4:

Screenshot:

 Step5:

 Click on the Arrow button it will hide the select element and change the arrow up and down


Enjoy Folks






Tuesday, July 23, 2013

How to import large sql file in wamp using phpMyAdmin


 Fatal error:   

  Maximum execution time of 300 seconds exceeded in

 C:\wamp\apps\phpmyadmin3.3.9\libraries\dbi\mysqli.dbi.lib.php

Solutions : 1

Step 1

Go to to phpMyAdmin folder usually it is located in "C:\wamp\apps\phpmyadmin3.4.5".

Step 2

Open config.inc.php file.

Find the code  

$cfg['UploadDir'] =''; and replace it with $cfg['UploadDir'] = 'upload';

add the new line

$cfg ['ExecTimeLimit'] = 0;

Save config.inc.php file.

Step 3 

Now u can upload 3mb sql file  in phpmy admin

Step4:

Enjoy Folks


Solutions : 2

You can change these values by left clicking wamp > php > php.ini


Find:
post_max_size = 8M
upload_max_filesize = 2M
max_execution_time = 30
max_input_time = 60
memory_limit = 8M

Change to:
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M

Why to use BootStrap?

BootStrap is a collection of tools or a toolkit, used for developing websites and web applications. It consists of CSS and HTML based design templates that enable you to create interface components like Typography, Navigation, Grids, Forms, Layouts, Alerts, Tables, Charts, Buttons, Forms, Popovers, etc.

BootStrap is created mainly for modern browsers. It is used to build websites and web applications that work perfectly on all modern browsers like Internet Explorer, Firefox, Chrome, Safari and Opera.

Also, BootStrap supports responsive designs i.e. the graphic design of web pages automatically gets adjusts themselves, based on the characteristics of the device used to view the website.  bootstrap4

Why to use BootStrap?

BootStrap has built with flexible pre-processor and hence it provides more power and flexibility when     compared to regular CSS.

BootStrap is easy to implement and it supports Compiling Less accomplishment through JavaScript

BootStrap doesn’t contain any superfluous JavaScript, Flash or images after the compilation has done.


BootStrap

BootStrap is a collection of tools or a toolkit, used for developing websites and web applications. It consists of CSS and HTML based design templates that enable you to create interface components like Typography, Navigation, Grids, Forms, Layouts, Alerts, Tables, Charts, Buttons, Forms, Popovers, etc.
BootStrap is created mainly for modern browsers. It is used to build websites and web applications that work perfectly on all modern browsers like Internet Explorer, Firefox, Chrome, Safari and Opera.
Also, BootStrap supports responsive designs i.e. the graphic design of web pages automatically gets adjusts themselves, based on the characteristics of the device used to view the website.  bootstrap4
Why to use BootStrap?
  • BootStrap has built with flexible pre-processor and hence it provides more power and flexibility when compared to regular CSS.
  • BootStrap is easy to implement and it supports Compiling Less accomplishment through JavaScript.
  • BootStrap doesn’t contain any superfluous JavaScript, Flash or images after the compilation has done.
- See more at: http://www.k2bindia.com/services/responsive-web-design/bootstrap/#sthash.OGjOynva.dpuf

What is Responsive Web Design

Responsive Web design or RWD is a web design approach enables you to craft websites. It provides an optimal viewing experience for users over all devices ranging from desktop computers to mobile devices. It facilitates users to easily read the website content and navigate to other Web pages, without requiring them to do much scrolling, resizing and panning Web pages.

Responsive Web design enables you to create websites that are compatible for devices of all sizes. It automatically adjusts the image sizes, resolution and scripting abilities of the website when the user switches from laptop to mobile to view the same website.

Responsive Web design has three key technical features:

Media queries: It allows the Web pages to use various CSS style rules based on the capabilities of the device on which you view the website. It adjusts the size, resolution, color depth and aspect ratio of the website.

Fluid or liquid layout: It defines all container widths or page element sizes in terms of percentage values. Therefore, when you stretch a layout across a wide-screen or squeeze it in a small screen, then all the elements in the layout will automatically resize their widths based on the screen size.

Flexible images: It allows you to set images that reside in the maximum display width. This helps images to get resized consequently based on the devices used to view websites.

As our clients require their websites optimized for mobile devices and tablets, we use the Responsive Web design approach and develop custom mobile websites that improves users’ experience. We implement the technology in the websites that respond to the user’s preference.

We also think about what the user requires first when visiting your website and accordingly we design the layout of the website. We modify the fonts or interactive areas of the website that have a good response to a touch environment.

We create responsive designs with HTML5/CSS3 media queries.

Responsive Web Design

Responsive Web design or RWD is a web design approach enables you to craft websites. It provides an optimal viewing experience for users over all devices ranging from desktop computers to mobile devices. It facilitates users to easily read the website content and navigate to other Web pages, without requiring them to do much scrolling, resizing and panning Web pages.
Responsive Web design enables you to create websites that are compatible for devices of all sizes. It automatically adjusts the image sizes, resolution and scripting abilities of the website when the user switches from laptop to mobile to view the same website.

Responsive Web design has three key technical features:

Media queries: It allows the Web pages to use various CSS style rules based on the capabilities of the device on which you view the website. It adjusts the size, resolution, color depth and aspect ratio of the website.
Fluid or liquid layout: It defines all container widths or page element sizes in terms of percentage values. Therefore, when you stretch a layout across a wide-screen or squeeze it in a small screen, then all the elements in the layout will automatically resize their widths based on the screen size.
Flexible images: It allows you to set images that reside in the maximum display width. This helps images to get resized consequently based on the devices used to view websites.
As our clients require their websites optimized for mobile devices and tablets, we use the Responsive Web design approach and develop custom mobile websites that improves users’ experience. We implement the technology in the websites that respond to the user’s preference.
We also think about what the user requires first when visiting your website and accordingly we design the layout of the website. We modify the fonts or interactive areas of the website that have a good response to a touch environment.
We create responsive designs with HTML5/CSS3 media queries. Therefore, we provide our clients with intelligent and responsive websites that facilitate their customers to view the websites on any web-enabled devices on the move.
- See more at: http://www.k2bindia.com/services/responsive-web-design/#sthash.xih9spzo.dpuf

Responsive Web Design

Responsive Web design or RWD is a web design approach enables you to craft websites. It provides an optimal viewing experience for users over all devices ranging from desktop computers to mobile devices. It facilitates users to easily read the website content and navigate to other Web pages, without requiring them to do much scrolling, resizing and panning Web pages.
Responsive Web design enables you to create websites that are compatible for devices of all sizes. It automatically adjusts the image sizes, resolution and scripting abilities of the website when the user switches from laptop to mobile to view the same website.

Responsive Web design has three key technical features:

Media queries: It allows the Web pages to use various CSS style rules based on the capabilities of the device on which you view the website. It adjusts the size, resolution, color depth and aspect ratio of the website.
Fluid or liquid layout: It defines all container widths or page element sizes in terms of percentage values. Therefore, when you stretch a layout across a wide-screen or squeeze it in a small screen, then all the elements in the layout will automatically resize their widths based on the screen size.
Flexible images: It allows you to set images that reside in the maximum display width. This helps images to get resized consequently based on the devices used to view websites.
As our clients require their websites optimized for mobile devices and tablets, we use the Responsive Web design approach and develop custom mobile websites that improves users’ experience. We implement the technology in the websites that respond to the user’s preference.
We also think about what the user requires first when visiting your website and accordingly we design the layout of the website. We modify the fonts or interactive areas of the website that have a good response to a touch environment.
We create responsive designs with HTML5/CSS3 media queries. Therefore, we provide our clients with intelligent and responsive websites that facilitate their customers to view the websites on any web-enabled devices on the move.
- See more at: http://www.k2bindia.com/services/responsive-web-design/#sthash.xih9spzo.dpuf

Responsive Web Design

Responsive Web design or RWD is a web design approach enables you to craft websites. It provides an optimal viewing experience for users over all devices ranging from desktop computers to mobile devices. It facilitates users to easily read the website content and navigate to other Web pages, without requiring them to do much scrolling, resizing and panning Web pages.
Responsive Web design enables you to create websites that are compatible for devices of all sizes. It automatically adjusts the image sizes, resolution and scripting abilities of the website when the user switches from laptop to mobile to view the same website.

Responsive Web design has three key technical features:

Media queries: It allows the Web pages to use various CSS style rules based on the capabilities of the device on which you view the website. It adjusts the size, resolution, color depth and aspect ratio of the website.
Fluid or liquid layout: It defines all container widths or page element sizes in terms of percentage values. Therefore, when you stretch a layout across a wide-screen or squeeze it in a small screen, then all the elements in the layout will automatically resize their widths based on the screen size.
Flexible images: It allows you to set images that reside in the maximum display width. This helps images to get resized consequently based on the devices used to view websites.
As our clients require their websites optimized for mobile devices and tablets, we use the Responsive Web design approach and develop custom mobile websites that improves users’ experience. We implement the technology in the websites that respond to the user’s preference.
We also think about what the user requires first when visiting your website and accordingly we design the layout of the website. We modify the fonts or interactive areas of the website that have a good response to a touch environment.
We create responsive designs with HTML5/CSS3 media queries. Therefore, we provide our clients with intelligent and responsive websites that facilitate their customers to view the websites on any web-enabled devices on the move.
- See more at: http://www.k2bindia.com/services/responsive-web-design/#sthash.xih9spzo.dpuf

Wednesday, July 10, 2013

how to open .ico file in photoshop cs5


Error Attempting To Open .ICO File In Photoshop:
If you attempted to open a .ICO or Windows Icon file in Photoshop before the ICO plugin is installed you will see an error similar to the below example image.




This just means that you do not yet have the Windows Icon plugin installed which we will complete in the below steps and then you will be able to open, edit, and save .ICO files.

 Step1:

Download Photoshop ICO Plugin:

First click here to download the correct version of the ICO (Windows Icon) File Format Plugin For

 your windows 32 bit or 64 bit in Photoshop
 
Go to Link

http://www.telegraphics.com.au/sw/product/ICOFormat

 and download




  Step2:
 
   Unzip the file in the path

C:\Program Files\Adobe Photoshop CS5 (64 Bit)\Plug-ins\File Formats

   Step3:

   Now start Photoshop and open a .ico file it will ask for

    Do u need it  original size or 256 * 256, 32bit/pixel

 
 Step4:

 Have a fun............

Validating to select in sequencial order using angular

    < input type = "checkbox" (change) = "handleSelectTaskItem($event, taskItem)" [checked] = " taskItem . i...