Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 WEB


  The Death of .NET and the Power of Perception

One of my long-standing issues with Microsoft is its inability to control the perceptions surrounding its own products. One of the biggest examples was during the Windows Vista years when, even after the product had been fully patched and worked fine, Apple continued to do a better job to define the image of Windows (compilation of ads here) than Microsoft did, costing Microsoft billions in lost revenue for the millions it saved on a strong advertising campaign. The firm has a history of being penny wise and pound foolish in this regard; saving money on expensive marketing that otherwise would...

2,565 0       .NET DEVELOPMENT FUTURE DEATH BOTTLENECK


  Manipulating JavaScript Arrays

Our first tutorial on JavaScript arrays covered the basics: creating arrays, accessing the contents of arrays, array lengths, and looping through arrays.In this tutorial, you explore arrays in more depth, and learn how to use various methods of the Array object to manipulate arrays.Extracting sections of an array with slice()You're not limited to accessing single array elements at a time. Thanks to the slice() method, you can grab a whole section of an array at once. slice() has the following syntax:arraySlice = array.slice ( begin [, end] )The two parameters, begin and end, work as follows:be...

9,908 0       JAVASCRIPT ARRAY MANIPULATE JOIN SPLICE


  mysql_fetch_array(),mysql_fetch_assoc() and mysql_fetch_row()

In PHP MySQL mannual. There are three functions which need to be clarified for some users who may get confused when choosing which one to use to get the result.mysql_fetch_array() : by seeting the different parameters, there are three ways to return the result set. MYSQL_ASSOC(Result set with field names as the associative indexs.It means you can use the field name as the index to get value of the specified cell). MYSQL_NUM(Result set with field names as the number indices). Or MYSQL_BOTH(you can use both modes to get value of a specified cell).mysql_fetch_assoc():Result set with field na...

9,219 0       PHP COMPARISON MYSQL RESULTSET MYSQL_FET


  JavaScript: Passing by Value or by Reference

In JavaScript, we have functions and wehave arguments that we pass into those functions. But how JavaScript handleswhat you’re passing in is not always clear. When you start getting intoobject-oriented development, you may find yourself perplexed over why you haveaccess to values sometimes but not other times.When passing in a primitive type variablelike a string or a number, the value is passed in by value. This means that anychanges to that variable while in the function are completely separate fromanything that happens outside the function. Let’s take a look at the followingex...

4,128 1       JAVASCRIPT FUNCTION PASS BY REFERENCE PA


  Best Rich Text Editors ready to use in web projects

This post illustrates five interesting rich text editors ready to use in your web projects. I also provided some guidelines regarding how to implement them on your pages using a few lines of HTML code. Try them!1. Yahoo! UI Library: Rich Text EditorThe Yahoo! Rich Text Editor is a UI control that replaces a standard HTML textarea and is based on Yahoo! UI Library; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images.Implement this editor in your web...

8,949 0       RTE EXAMPLE PROJECT OPEN SOURCE BEST SIM


  JavaScript showModalDialog method

In JavaScript, showModalDialog()  method creates a simple modaldialog box which is a simple html page but when a modal dialog opens, user can't switch to another page until it closes the modal dialog box.Syntax:  window.showModalDialog( url, arguments, feature options); Where url is the URL of page which is to be opened in modal window and argumentsare those arguments which we are passing to the modal window and featureoptionsare the attributes set for the modal window.Description of code:Suppose we have an image file and we want to view that particular image fileinto a separat...

10,270 0       JAVASCRIPT JS SHOWMODALDIALOG EXAMPLE


  Highly efficient PHP code writing

Next are some tips for writing highly efficient PHP codes. They are described below:0. Use single quote to replace double quote, this will be better since PHP will serach for variables in double quoted strings. Note, only echo can do this;1. If we can define methods of a class as static, then do it. It will increase access speed by 4 times;2. $row["id"] is 7 times faster than $row[id];3. echo is faster than print, and also use echo's multiple parameter format such as echo $str1,$str2 instead of echo $str1.$str2;4. When using for loop, make sure the maximum number of executions instead of calcu...

12,339 3       PHP CODE WRITING HIGH EFFICIENT TIPS


  Source code for sharing webpage to facebook

Copy and paste the following code blocks into your site and replace '<url>' with the link you want to Share.Text link:<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" onclick="return fbs_click()" target="_blank">Share on Facebook</a>Small icon and text:<script>function fbs_click() {u=location.h...

16,987 0       SOURCE CODE FACEBOOK SHARE WEBPAGE