UX, Javascript, WordPress, Drupal, more..

Category Web Development

Starting mysql in fedora 8 through terminal

MySQL Error: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) Solution: STEP 1: login as root in terminal [navayan@localhost ~]$ su Password: STEP 2: Start the mysqld [root@localhost navayan]# /sbin/service mysqld start You will get… Continue Reading →

Opening an url in same window

Opening an url in same window First create the javascript function: function selfWindow(){ window.location.href = ‘http://www.navayan.com’; } then call that function on ‘onclick’ event on button or on anchor link <input type=”button” onclick=”selfWindow();” value=”open”> <a href=”#” onclick=”selfWindow();”>Open this</a>

Customizing default browse button

Customizing the default browse button is now a very easy stuff 🙂 You will need only four things: File field Javascript function CSS classes and ID Browse button image Follow this process: 1. Javascript function: <script type=’text/javascript’> function fileForm(){ document.overForm.overInput.value… Continue Reading →

Display logo (favicon) in browser’s address bar

There are two methods to display logo (popularly known as ‘favicon’) in browser’s address bar. First is with rel=”icon” and second is with rel=”shortcut icon”. At the beginning it would confusing which ‘rel’ should be apply. Here you will find… Continue Reading →

Newer posts »

© 2024 Web Design Colors — Powered by WordPress

Theme by Anders NorenUp ↑