code

search page

120 searched posts found

19 Apr 2014
0.75K
No Comments

In html on anchor tag without a href link we had # into href but when we click on that href with # hash its moved scroll to top position of page and add # in end of the page url, and we feeling annoyed on click that link, here

Post in

19 Apr 2014
0.64K
No Comments

These three functions of #jQuery save my alot time in jquery elements manipulation, after extended these three function I cannot do first hide element and then fadeIn, and fadeOut_remove save your time and code,without this you need to first fadeout the element then callback a function in after complete of animation

Post in

15 Apr 2014
1.29K
No Comments
Develop user friendly alerts in jQuery css

We have need the alerts popup to show user friendly alerts and message popup instead a annoying browser alert(‘hhah’); because somehow this javascript alert annoying user and and won’t allow to do anything like go to another tab or scroll down of page until user click on OK or cancel

Post in

11 Apr 2014
0.7K
No Comments

Some of designer when they slice layout they create form submit button with a anchor tag and href=”hashtag” and then users cannot able to submit form when they press enter in form fields, I have wrote little code to submit even from don’t have a input type submit button, and

Post in

11 Apr 2014
0.33K
No Comments

We always avoid to use in-line #css in elements and now also avoid to use in-line #javascript events like onclick=”window.location=’http://www.sdtuts.com’;” on elements, and you most need to make element, div redirectable, and maybe we cannot add all of elements in under of #anchor #tag example then I have wrote a

Post in

6 Apr 2014
0.66K
No Comments

in #MySQL cannot do it with any compression operator to check case sensitive value in column, so first convert your value into hash and compare with column value see code example how to do it. Here is example of table case_sensitive_col_id case_sensitive_col_val 1 SDTUTS.com 2 SDTuts.com 3 Sdtuts.com Using SHA1

Post in

2 Apr 2014
0.88K
No Comments
Protect your wordpress wpadmin panel

users can easily access or hacker’s programmed bots will send login request to your yoursite.com/wp-login page, but #wordpress have a good security with admin login panel, I have a wrote little code using #wordpress #hooks to prevent from other all users from your site wordpress wp admin login page. Prevent

Post in

11 Mar 2014
0.73K
No Comments

Define array to for shuffle keys Define array indexes to get random keys in while loop Assign array keys in random order, they will be shuffled in while loop and Print Array to see shuffled array key result This complete code of function

Post in

10 Mar 2014
0.69K
No Comments

Sometimes we want call a function if user pressed two keys together at the same time. Like Shift+Enter, CTRL+S  more others, I wrote a little code how to call a function if user pressed two keys. copy keys name from another post to use easily with key names

Post in

15 Dec 2013
0.3K
No Comments

Many times we need to store #array in #database with because may we don’t want to create all specified fields with names in #database table, so we just inserted, and here is example that I want to save whole #array data in database table field mysql. mysql cannot allow you

Post in