Category Archives: JavaScript

PHPHOST BLOG

Web Hosting Related Articles You May Need

Use HTML 5 Elements in IE 8 using HTML 5 Shiv

There are a lot of new HTML 5 elements like <header>, <article>, <footer> etc. that browsers like IE 8 and versions prior to that, do not support. These browsers need some help recognizing the new HTML5 elements and Remy Sharp’s HT… Continue reading

Posted in HTML 5, JavaScript, Syndicated | Leave a comment

Most Popular .NET, jQuery and Web Development articles in 2011

With 2012 fast approaching and 2011 drawing to an end, we’ve put together our list of the Most Popular .NET articles on DevCurry.com this year. The year 2011 featured articles on DevCurry covering many technologies like jQuery, HTML 5, ASP.NET, MVC, S… Continue reading

Posted in .NET, ASP.Net, ASP.NET MVC, CSS, HTML 5, JavaScript, jQuery, Link List, Silverlight, Syndicated | Leave a comment

JavaScript Quick Way to Find Max and Min Value in an Array

I have been using some JavaScript techniques in the past to find the maximum and minimum number in an array. I recently stumbled upon a real fast and simple solution to find the max and min number in an array and thought of sharing it with all of you…. Continue reading

Posted in JavaScript, Syndicated | Leave a comment

Prefix an Integer using JavaScript

While formatting numbers, prefixing an integer is a common operation. For example: If you have the 79, but you want to make it five digits always, just prefix it with three zeros – so it becomes 00079.

Let’s see how simple it is to prefix an integ… Continue reading

Posted in JavaScript, Syndicated | Leave a comment

Prefix an Integer using JavaScript

While formatting numbers, prefixing an integer is a common operation. For example: If you have the 79, but you want to make it five digits always, just prefix it with three zeros – so it becomes 00079.

Let’s see how simple it is to prefix an integ… Continue reading

Posted in JavaScript, Syndicated | Leave a comment

JavaScript: Find Day of Year

Here’s a simple script that finds the current day of the year

We first get the timestamp for the 1st day of the year – number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds. This is… Continue reading

Posted in JavaScript, Syndicated | Leave a comment

JavaScript: Find Day of Year

Here’s a simple script that finds the current day of the year

We first get the timestamp for the 1st day of the year – number of seconds elapsed since midnight Coordinated Universal Time (UTC) of January 1, 1970, not counting leap seconds. This is… Continue reading

Posted in JavaScript, Syndicated | Leave a comment

JavaScript, CSS3, Silverlight, ASP.NET, SharePoint articles Link List – July 2011

Here’s a quick wrap up of JavaScript, CSS3, Silverlight, ASP.NET, SharePoint and other .NET articles published on DevCurry.com in the month of July 2011.jQuery, JavaScript and CSS ArticlesjQuery: Load Page in a Div – Loading an external page in a div… Continue reading

Posted in ASP.Net, ASP.NET MVC, CSS, JavaScript, Link List, Sharepoint, Silverlight, Syndicated | Leave a comment

JavaScript, CSS3, Silverlight, ASP.NET, SharePoint articles Link List – July 2011

Here’s a quick wrap up of JavaScript, CSS3, Silverlight, ASP.NET, SharePoint and other .NET articles published on DevCurry.com in the month of July 2011.jQuery, JavaScript and CSS ArticlesjQuery: Load Page in a Div – Loading an external page in a div… Continue reading

Posted in ASP.Net, ASP.NET MVC, CSS, JavaScript, Link List, Sharepoint, Silverlight, Syndicated | Leave a comment

Swap Variables in JavaScript – Different Methods

Here are some different ways to swap variable values in JavaScript. I will show swapping using a temporary variable, without a temporary variable, XOR operator and a single line swap.
Swap variable values using a temporary variable

// Using a Temp Var… Continue reading

Posted in JavaScript, Syndicated | Leave a comment