Change the caption of the button on click in JavaScript and jQuery

The following code samples demonstrate how can you change the text of the existing controls at client side. The example change the text of a button ‘show image’ to ‘hide image’ after showing the image on the click event. You can see in the below demo: Continue reading “Change the caption of the button on click in JavaScript and jQuery”

How to See the stored cookies in your Chrome browser

From the last several days I am studying the Google chrome white papers for the managing HTML5 off-line local storage. In the documentation I have discovered some interesting things for my self that may be very useful for the developers such as to see the details of cookies or when you are trying to save the data on the local storage. Continue reading “How to See the stored cookies in your Chrome browser”

Create user control for the footer of the your web application in asp.net

With the help of the following tutorial, you can create a user control for the footer of your web application. The article demonstrates how you can create a user control and how can you use that. In this article code is written using Visual Studio 2008. So first you need to add a web user control in your project, just follow these instructions: Continue reading “Create user control for the footer of the your web application in asp.net”

Bind the html select control from the comma separated string in JavaScript

The following code sample demonstrates how to bind the select control from the comma delimited string. The example contains a commas separated string, form which we will create the option elements of the select element Continue reading “Bind the html select control from the comma separated string in JavaScript”

Example for LINQ Query to ArrayList in C#

In the past I have described some topics on the LINQ over XML such as: generate xml document with elements and attributes using linq to xml, create the xml document using linq to xml in c# and UPDATE THE XML FILE USING LINQ IN C#. This time we will perform some LINQ query over the ArrayList object in the C#. Continue reading “Example for LINQ Query to ArrayList in C#”

Create the PDF at client side in HTML5

Now you can generate the PDF document through the client side library jsPDF. You can create the PDF using main built-in function such as insert image, insert text with different fonts to pdf etc. Normally user creates the pdf programmatically on the server side that may lead to decrease the performance of your web page. Continue reading “Create the PDF at client side in HTML5”

Show the title for the Link and aside post type in twenty fourteen wordpress

In 2014 the WordPress release its new version with its default theme twenty fourteen.The Twenty fourteen theme supports various post types including the Aside and Link. The both Post format doesn’t have the title of post. Continue reading “Show the title for the Link and aside post type in twenty fourteen wordpress”

Set size of an image in the HTML5 canvas

The canvas size and image size both are different things. The canvas is the DOM element in the HTML5 that allows drawing the 2D shapes and bitmap images. To draw the image on the canvas, it should be checked that what the dimensions of the loaded image is, and if the original image’s height and width are greater than the canvas’s height and width, Continue reading “Set size of an image in the HTML5 canvas”