Posts tagged tips

Top jQuery Tips for Beginners

0

Hot Tip #1: Access Elements by Javascript Array Indexing

Application of a selector creates a Javascript array which can be used for accessing DOM elements with array index easily.

For Example:

var element = $(“img”)[2];

will set the variable element to the second <img> element in the matched set of document’s all <img> elements.

Hot Tip #2: Create Union of Elements with Multiple Selectors

Union of multiple selectors can be created by listing selectors separated by commas ‘n a s’ngle call to $()

For Example:

$(“img,p”)

will match all <img> and <p> elements, while the following matches all <div> elements with a title attribute and all <img> elements with alt attributes.

$(“div[title],img[alt]“)

Hot Tip #3: Be Careful with not() and remove() methods!

.not() method removes elements from the matched set while the .remove() method removes the elements in the matched set from the HTML DOM.

Rss to Email Te Free and Easy Way

0

FeedBurner is probably the best option to start with for most blogs. It’s free and gets the basic job done. The only reason you might want to upgrade to FeedmailPro is the same reason people upgrade to Aweber: you might need some more advanced features.

Here are a few signs you might have outgrown FeedBurner:

1. If you want more flexible scheduling. The only option in FeedBurner is to send daily emails and this can overload your subscribers causing them to unsubscribe. With FeedmailPro you can schedule delivery to weekly or whatever you’d like.

2. If you want a “thank you” email to go out with a sign-up bonus or ebook after someone subscribes. Many bloggers use sign-up bonuses to increase readership and you can’t do this with FeedBurner.

3. If you want to send out the occasional email blast to your list that isn’t More >

Setting Focus to an ASP.NET Control – Set Focus After PostBack – After Submit – on Page Load in ASP.NET 1.x

0

Management of control focus is one of the common tasks when building web applications with effective and friendly user interface. In order to set focus on a certain control such as textboxes, buttons dropdowns after postback / after submit / on Page Load in ASP.NET 1.x, we can use a dynamic javascript block that facilitates Javascript’s focus() function.

private void SetFocus(String controlID) { // Build the JavaScript String System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(“<script language=’javascript’>”); sb.Append(“document.getElementById(‘”); sb.Append(controlID); sb.Append(“‘).focus()”); sb.Append(“</script>”)

// Register the script code with the page. Page.RegisterStartupScript(“FocusScript”, sb.ToString()); }

For the above code, you need to pass the control’s id as the parameter, then define the Javascript function in a string variable then call the Page class to register the script.

How To Design An Effective Web Form

2

When your users have dedicated enough time on your website to be interested in your service or product, and want to learn more, there is no bigger turn-off than an inaccessible, unusable form. A form can be anything from a sign-up form, to an email opt-in form, to a contact form, and more. You want to make sure that these forms are convenient, easy to use, and of course, good looking, for any of these visitors that are interested in what you do.

In this post, I want to explore the countless tools and resource for designing forms, and I want to show you how you can use these tools to your benefit to create the perfect form that will help to maximize conversions, sales, subscribers or for whatever else you may be using your form.

What To Consider When Designing The Perfect Form

The following sections are meant to More >

Increase your online security – Tips & Tricks for a better Passwords

0

Creating strong passwords is key to your online security. Since the computers trying to hack passwords are getting more powerful everyday, passwords you are using could be the weakest link you are using.

Password cracking tools use one of the following approaches:

  1. Guessing – using personal information (ex: using date of birth, phone number as password)
  2. Dictionary Attacks – using single words found in dictionaries as password
  3. Bruce Force Attack – trying every possible password

A brute force attack will always be successful if there is no limit to the number of attempts. In order to delay a brute force attack, a strong password should be chosen.

Guide to Strong Passwords:

A strong password should:

  1. Contain 8 or more characters
  2. Combine letters, numbers and symbols
  3. Be easy to remember, but should not contain any easy to guess personal information

You should:

  1. avoid sequences (ex: abcdef)

More >

Methods to Create Equal Height Columns

0

Back when tables were used for layouts, creating equal height columns was very simple. All you had to do was create three cells in a row and you have a layout with equal height columns. The method for creating equal height columns isn’t as straightforward when you use CSS for layouts.

This article discusses some methods to create equal height columns that work on all major web browsers (including the infamous IE6). All of these methods show how to create a three column layout.

Create a layout in which all the three columns assume the height of the tallest column.

Method 1: Using display: table Attribute

In this method we use a list or one div enclosing a set of <div>s (one for each column). The enclosing div is given a display: table attribute and each enclosed div is given a display: table-cell attribute.

I’ll discuss this with an example: More >

Web Form Enhancement with jQuery Plugins and Tools

1

Easy user interaction and data collection is really a key functionality on most websites and web applications. Providing users high quality and intuitive input forms may be just what is needed to make your users take the time to fill in and submit the information you’re trying to collect. In this article I have collected a number of really essential jQuery Form Enhancements. A few cheat sheets have been added as well.

(more…)

Great Useful Apache Rewrite Techniques and Tricks

0

Apache HTTP Server (usually just Apache) has been the most popular web server in the Internet for more than a decade, with millions of installations serving up a huge portion of the World Wide Web. In 2009 it became the first web server to surpass the 100 million web site milestone. As of july 2009[update] Apache served over 47% of all websites and over 66% of the million busiest. Knowing that Apache is this popular makes it worth spending a some time learning the basics. If you’re an IT professional working with web development it is almost certain that you will need, if not now then later.

(more…)

Go to Top