Mobile Tech Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 8 October 2013

Customize dropdown menus with the DropKick jQuery plugin!!!

Posted on 05:55 by Unknown
If you want to revamp your default dropdown menus, give the DropKick jQuery plugin a try. 
DropKickjs_thumb_100713.gif
The open source DropKick jQuery plugin allows you to create custom dropdown menus, saving you time and tedium that typically comes with the usual setup of making dropdowns from scratch. The DropKick example pagedemonstrates several ways to implement it. 
The plugin was originally created by Jamie Lottering, and the default theme was designed by Addison Kowalski, but it was recently taken over by Robert DeLuca and is available from GitHub as the download DropKick.js. Even though DropKick has been around since July 2011, the recent changes and the hand over to Mr. DeLuca indicate the plugin shows no signs of falling off the radar. According to the resource repository page, Mr. DeLuca plans to make it one of the best jQuery plugins available.

The one requirement

In order to use DropKick, your website or web pages must link to the latest version of jQuery, which is currently jQuery 1.10.2. So you don't have to worry about linking to the latest jQuery version, the best practice implementation is to use the Google hosted libraries resources forjQuery, using the script snippet below (this is added within the <head> section).
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
How does the DropKick jQuery plugin work? The DropKick plugin transforms your existing select <select> lists into customizable HTML dropdowns. Name is the only required attribute -- unless you want to add keyboard tabbing to the dropdowns, and then you'll need to add a tabindex attribute to enable tabbed navigation. Since the DropKick plugin only uses these two attributes, your existing forms and AJAX requests will work the same without having to make major changes to your code. You'll only need to set a "class" or "id" to the select attributes.

Browser acceptance

According to the repository resource page, the DropKick plugin has been tested and currently works in Opera 10+, Google Chrome 10+, Firefox 5+, Safari 5+, and Internet Explorer 7+.

Implementing the DropKick jQuery plugin

1. Be sure the jQuery library is called from the <head> of your website or web pages.
2. Download DropKick.js (which is available as a zip file), and then unzip the files to your web root directory (i.e., web/dk). Then, at a minimum, add all the calls to these DropKick script and CSS files:
  • dropkick.css
  • example.css
  • jquery.dropkick.js
  • jquery.dropkick-min.js
3. Set a "class" or "id" on the <select> attributes. The example uses the following:
  • class="default"
  • class="change"
  • class="custom_theme"
4. Call the JavaScript function found in the example, which is also included within the download, and the snippet of the code is copied below:
<script type="text/javascript" charset="utf-8">
$(function () {
$('.default').dropkick();

$('.black').dropkick({
theme : 'black'
});
$('.existing_event').dropkick();

$('.change').dropkick({
change: function (value, label) {
alert('You picked: ' + label + ':' + value);
}
});

$('.custom_theme').dropkick({
theme: 'black',
change: function (value, label) {
$(this).dropkick('theme', value);
}
});

$('.dk_container').first().focus();
});
</script>
Figure A shows the example page as displayed in Google Chrome.
Figure A
DropKickjs_FigA_100713.gif
I also tested the example page on my iPhone using Google Chrome and found all the dropdowns worked as expected (Figure B).
Figure B
DropKickjs_FigB_100713.gif

Summary

If you're looking to revamp your default dropdown menus, you might consider using the DropKick jQuery plugin. Implementation is easy, and the example page provides plenty of use case samples to get you started. 
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • EMC Defenders CTF - Week 3 - Contest 14 - Reversing
    I played the EMC defenders CTF with a few of my friends a while back. We sadly couldn't complete all the challenges. All the same it was...
  • AuthenTec co-founder discusses how Touch ID fingerprint reader evolved from early prototypes!!!
    AuthenTec co-founder F. Scott Moody recently stopped by his alma mater to deliver a  speech  about the company he helped launch. His company...
  • Hackers breach vBulletin support forum using zero-day vulnerability!!!
    A group of European hackers by the name of Inj3ct0r Team have taken  responsibility  for hacking the support forums of vBulletin.com and the...
  • ASRock unveils a pair of motherboards designed specifically for Bitcoin mining!!!
    Those looking to generate some extra cash by mining for Bitcoin now have a couple of new hardware options courtesy of ASRock. The motherboar...
  • Amazon's trio of biospheres gets two thumbs up from Seattle Design Review Board!!!
    Earlier this year Amazon  submitted a building proposal  to construct a series of massive biospheres in downtown Seattle adjacent to three o...
  • 20 Life Hacks and Tools to Boost Productivity on Your Computer!!!
    With the flood of  new technologies , websites, apps, news, work files, pictures, articles and the like, staying organized and focused is be...
  • Why and how to set up your own wiki with Dokuwiki!!!
    DokuWiki is a simple but versatile wiki. Find out how to install, configure, and begin using DokuWiki.  A couple of weeks ago, I had to set ...
  • A peek at the inside of Sony's PlayStation 4!!!
    See  what's inside the PlayStation 4 with these exclusive photos  Inside Sony headquarters, at the heart of Tokyo’s Shinagawa district, ...
  • Every generation iPhone compared simultaneously!!!
    Apple has released a  new iPhone  almost like clockwork each year since the original 2G model launched in 2007. Many in the media have poked...
  • Crysis developer releases free-to-play FPS browser game Warface!!!
    Crytek is well known for its graphically impressive and visually stunning games on PC and console, but now the developer is taking its exper...

Categories

  • 100
  • 12.04
  • 2.2
  • 2013
  • 21
  • 4848
  • 8080
  • add
  • alternative
  • analysis
  • android
  • apk
  • app
  • applet
  • applets
  • appletviewer
  • application
  • appsec
  • asmx
  • assembly
  • attack
  • attacks
  • basic
  • basics
  • beginner
  • blazeds
  • blog
  • book
  • books
  • breakpoint
  • breakpoints
  • browser
  • burp
  • CALL
  • capture
  • certificate
  • chain
  • cheops
  • client side
  • code
  • conference
  • console
  • content-type
  • coverage
  • CRLF
  • cross
  • crossdomain
  • csrf
  • ctf
  • customer service
  • database
  • deblaze
  • debug
  • debugger
  • decision
  • defcon
  • delete
  • deleting
  • dll
  • dogbert
  • dom
  • dynamic
  • element
  • emulator
  • encryption
  • engineering
  • entity
  • environment
  • example
  • executable
  • external
  • firebug
  • flash
  • flex
  • FlourineFX
  • flow
  • flowchart
  • forensics
  • fs
  • fuzz
  • glassfish
  • graph
  • handbook
  • harden
  • hash
  • hints
  • hit
  • hittrace
  • howto
  • IDA
  • idapro
  • IDB
  • immunity
  • in use
  • incremental
  • inetsim
  • injection
  • install
  • introduction
  • java
  • java.policy
  • javaee
  • javascript
  • jks
  • jump
  • keyboard
  • lab
  • loaderdata
  • malware
  • management
  • mapper
  • market
  • MD Description
  • MD FAQ
  • MD Technical Support
  • MD Updates
  • MD User Guide
  • md5deep
  • mount
  • msdn
  • network
  • newbie
  • olly
  • ollydbg
  • options
  • packet
  • password
  • pbkdf
  • pcap
  • peb
  • peb_ldr_data
  • penetration
  • pentest
  • permissions
  • phone
  • pkcs12
  • policytool
  • port
  • practical
  • procedure
  • proxy
  • resign
  • resignation
  • response
  • restrict
  • reverse
  • reversing
  • review
  • salt
  • same origin
  • sample
  • scripting
  • sdk
  • secure
  • security
  • set
  • setup
  • sharif
  • shortcuts
  • SI
  • signed
  • site
  • snapshot
  • soapui
  • source
  • splitting
  • ssl
  • start
  • static
  • steps
  • stunnel
  • superblock
  • support
  • test
  • thoughts
  • thread
  • tips
  • tool
  • tools
  • tor
  • trace
  • truecrypt
  • tutorial
  • ubuntu
  • umask
  • understand
  • university
  • unsigned
  • video
  • view
  • virgin
  • virtual
  • virtual box
  • virtual machine
  • virtualbox
  • vm
  • watch
  • web
  • web application
  • web service
  • work
  • wsdl
  • xhr
  • xml
  • xss
  • xxe

Blog Archive

  • ▼  2013 (496)
    • ►  November (143)
    • ▼  October (297)
      • Samsung fined $340,000 for online smear campaign a...
      • Google is experimenting with massive banner ads fo...
      • What is your best idea for an invention?!!!
      • Take a ride in a helium balloon to near-space for ...
      • New York City to retrofit 250,000 street lamps wit...
      • Chrome used more than Firefox, Opera and Internet ...
      • Leaked documents reveal NSA spied on the phone con...
      • Self-driving cars projected to reduce injuries by ...
      • Fon makes US debut, hoping to grow the Wi-Fi shari...
      • Japanese restaurant replaces waiters with conveyor...
      • Vine update finally delivers editing and draft mod...
      • Nexus 5 expected to debut October 31 in the US!!!
      • Germany proposes locked-down national internet aft...
      • This modified Lexus paints a unique portrait of it...
      • Moto X and LG G2 now available starting at $99 on-...
      • Comcast offering 25Mbps Internet, local channels a...
      • BlackBerry denies any involvement in questionable ...
      • New Firefox add-on allows you to see how, when and...
      • Samsung turns in another record-setting quarter wi...
      • PlayStation 4 will require a Day One update to ena...
      • Batman: Arkham Origins Review!!!
      • Amazon's trio of biospheres gets two thumbs up fro...
      • Google believed to be constructing a floating data...
      • Understanding Amazon's "profitless" business model!!!
      • World's first Bitcoin ATM to open in Vancouver thi...
      • LG announces G Flex with curved 6-inch display and...
      • SoapUI - Client side cert - Burp
      • The Unthinkable Risks of the Cloud!!!
      • Yahoo Tops Google In Web Traffic Again!!!
      • Yahoo Is Now Actually Beating Google In Traffic. H...
      • The Decline of Wikipedia!!!
      • De Blasio Outlines Plans To Curb New York's iPhone...
      • Apple announces iPad Air, iPad mini with Retina di...
      • Apple refreshes MacBook Pro Retina laptops with Ha...
      • 20 Life Hacks and Tools to Boost Productivity on Y...
      • Best Tablet Computers 2013!!!
      • Gaming Mice Roundup 2013: Corsair, Steelseries, Gi...
      • Google Quantum AI team releases quantum mechanics ...
      • Research team designs and builds a disk drive that...
      • Malware Alert: Downloading the "GTA V PC torrent" ...
      • TSA now starts its security check of passengers be...
      • Apple announces iPad Air, iPad mini with Retina di...
      • Apple refreshes MacBook Pro Retina laptops with Ha...
      • Apple's OS X Mavericks goes live today as a free d...
      • Crysis developer releases free-to-play FPS browser...
      • Microsoft is working on a Google Glass competitor,...
      • BlackBerry's new BBM app sees 5 million downloads ...
      • EA preparing a high-end Battlefield game for mobil...
      • Check out this bullet-time rig that uses 130 HTC O...
      • Nvidia has a Logan-powered Shield 2 console in dev...
      • Windows RT-based Nokia Lumia 2520 to take on the S...
      • Nokia announces 6-inch Lumia 1520, Lumia 1320, and...
      • Nvidia releases GeForce 331.58 WHQL drivers!!!
      • How to recreate the iOS 7 home screen and iPhone h...
      • Digital dating: One in 10 Americans have used an o...
      • John Carmack isn't convinced that Steam Machines w...
      • At least 10 million 'innocent' files destroyed in ...
      • Twitter expected to kill music app after just six ...
      • Leaked Intel roadmap shows Broadwell-K chips to ar...
      • LG reportedly creating its first Chrome OS devices!!!
      • Netflix in position to surpass HBO in paid subscri...
      • Nokia's phablet detailed in leak as Lumia range is...
      • Microsoft pulls Windows 8.1 update for Surface RT ...
      • BlackBerry resumes rollout of BBM for Android and ...
      • Apple expected to reveal retina iPad mini at tomor...
      • Verizon website glitch potentially exposed texting...
      • When Amazon's Customer Reviews Get Ridiculous and ...
      • Dell now accepting pre-orders for Windows 8.1, Bay...
      • Worldeye is the animated globe that offers a reali...
      • When Amazon's Customer Reviews Get Ridiculous (and...
      • Microsoft pulls Windows 8.1 update for Surface RT ...
      • Is Wikipedia for sale? Ubuntu 13.10 is out, Core i...
      • Nvidia bids adieu to V-Sync limitations with G-Syn...
      • Facebook app finally arrives for Windows 8.1 along...
      • repeat post: Windows 8.1 now available through Win...
      • SpaceX Grasshopper rocket launch filmed from aeria...
      • Verizon adds 1.1 million wireless connections duri...
      • Amazon's long-rumored smartphone could arrive via ...
      • Acer's second 8-inch Windows 8 tablet sees improve...
      • Microsoft to host Windows 8.1 'Ask Me Anything' se...
      • Samsung submits proposal to European Commission in...
      • Ireland's Department of Finance considers shutting...
      • AuthenTec co-founder discusses how Touch ID finger...
      • AT&T revealed as Tesla's mobile partner for in-veh...
      • Mapbox goes up against Google Maps with $10M in fu...
      • Motorola's new migration tool can preload the Moto...
      • Nexus 5 briefly appears on Play Store, 16 GB for $...
      • Apple iPhone 5s: The Geekysupport Review!!!
      • Samsung launches free Galaxy S4 battery replacemen...
      • Nvidia GeForce GTX 760 Ti appears as rebranded GTX...
      • Deep Web drug bazaar Silk Road set to become a Hol...
      • Neowin reviews Windows 8.1!!!
      • Nvidia GameStream transforms Shield into a serious...
      • AMD turns a profit in Q3 thanks to custom PS4, Xbo...
      • Elon Musk buys James Bond 'Lotus sub', plans to ma...
      • Security research firm says Apple can read your iM...
      • IsoHunt to shut down, pay MPAA $110 million!!!
      • Sony rolling out PlayStation 4 kiosks at select re...
      • Monthly video game sales rebound thanks to Grand T...
      • Researchers in China use light bulbs as a speedy a...
    • ►  September (51)
    • ►  August (2)
    • ►  March (1)
    • ►  January (2)
  • ►  2012 (16)
    • ►  October (3)
    • ►  September (1)
    • ►  August (4)
    • ►  June (1)
    • ►  May (4)
    • ►  April (2)
    • ►  February (1)
  • ►  2011 (22)
    • ►  October (1)
    • ►  September (2)
    • ►  August (1)
    • ►  July (9)
    • ►  June (1)
    • ►  May (2)
    • ►  April (6)
  • ►  2010 (8)
    • ►  August (3)
    • ►  April (2)
    • ►  January (3)
  • ►  2009 (6)
    • ►  December (6)
Powered by Blogger.

About Me

Unknown
View my complete profile