Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Showing posts with label development. Show all posts
Showing posts with label development. Show all posts

Friday, March 8, 2013

Basic JQuery Interview Questions


Is jQuery a library for client scripting or server scripting?
Ans: Client scripting

Is jQuery a W3C standard?
Ans: No

What are jQuery Selectors?
Ans: Selectors are used in jQuery to find out DOM elements. Selectors can find the elements via ID, CSS, Element name and hierarchical position of the element.
jQuery Selectors are used to select one or a group of HTML elements from your web page.
jQuery support all the CSS selectors as well as many additional custom selectors.
jQuery selectors always start with dollar sign and parentheses: $()
There are three building blocks to select the elements in a web document.

Friday, December 14, 2012

Sending E-mails with attachments

Sending E-mails with attachments
After hours of searching for sending emails with attachment, my search results in below solution.
For sending emails with attachments, we can use ZEND library, but it make no sense for me to use such a big library just for sending email. Here is simple solution for this problem with couple of simple lines.


Friday, November 2, 2012

Creating custom module in Drupal 7

Creating custom module in Drupal 7
Drupal is very rich in terms of modules. There are hundreds of modules available on Drupal official site. One just need to find the appropriate module and start playing with that module after installing it in his application. 

But sometimes, there comes a situation when developer has to develop his own module. Here I am writing the steps to develop a module which will create a web form. In this tutorial we will learn how to develop a web form, validating the data & submitting data into database. 

Wednesday, September 19, 2012

Detect Android with PHP, Javascript & .htaccess

Android is a Linux-based operating system, designed primarily for touchscreen mobile devices such as smartphones and tablet computers. Andriod is initially developed by Android, Inc. 
While working in web technology environment, many times we came accross the situation where we need to detect that if it is Android is not. This detection can be done in multiple ways like: 
1. Using PHP 
2. Using Javascript 
3. Using .htaccess 
It totally depends on the interest of developer, which mechnaism he/she choose to detect android.

Tuesday, September 11, 2012

Reload page using PHP

Sometimes we need to reload any page using php.





    $sec = "10"; // Time in seconds
    $url = "http://www.google.com";
    header("Refresh: $sec; url=$url");

Stop caching using PHP

A cache is a temporary storage area. For example, the files you automatically request by looking at a Web page are stored on your hard disk in a cache subdirectory under the directory for your browser. When you return to a page you've recently looked at, the browser can get those files from the cache rather than the original server, saving you time and saving the network the burden of additional traffic. Sometimes we don’t need caching at any particular page. We can stop caching using PHP.

Request Detection for Mobile Application

Market for mobile application is growing with a great speed. Even there are lots of mobile application created in PHP itself. Sometimes, we have common application for web and mobile but need to detect the mobile devices before rendering the content. Here is a useful code snippet to detect the source of request for application using PHP. If application is requested by any mobile device then the function will return true else it will return false.

Wednesday, April 11, 2012

LDAP implementation using PHP

The Lightweight Directory Access Protocol is an application protocol for accessing and maintaining distributed directory information services over an Internet Protocol (IP) network. In this post we'll see that how we can connect to LDAP using PHP. Bais knowledge of PHP is required to understand this functionality. 

Monday, June 20, 2011

Remove optgroup from selectbox

HTML optgroup element creates a grouping of options within a select  element in web page. You might be working on optgroup in select box. Here is the simple script for the addition and deletion of optgroups. 

Friday, June 17, 2011

Prevent Grey box from hiding drop down



Today I was working with Grey box component and every thing was going smooth... But suddenly I came to know that select box on parent page become invisible as the Grey box popup comes up.