Connect With WRD
feed via e-mail
feed via e-mail

Posts Tagged ‘Javascript’

Hovercard is a jQuery plugin that eases displaying information with style when an HTML element of our choice is hovered.

The information box appears with a smooth fading effect and accepts any HTML markup to be used as the content.

jQuery Hovercard

It is very useful for enabling users to reach micro info quickly (like a short bio, price of an item, an image, etc.) and comes with built-in Facebook + Twitter integration. Simply, it can display the details of a Facebook page or Twitter user nicely.

There are options for defining its width, position, background color and more.

Also, callback functions exist when hovering in and out from a Hovercard item.

Humane JS is a modern and tiny JavaScript library for displaying customizable notifications.

It has pre-defined notification types: info, success + error which are styled accordingly and new styles/themes can be created easily.

When available, the library uses CSS transitions and falls back to JavaScript animations when needed.

Humane JS

Humane JS doesn't require any JavaScript libraries to function and has several options including: timeout (the delay before a message fades out) or how the notifications can be closed (on any mouse/keyboard/touch action and/or clicking the close button).

And, the library has a callback function that is fired when the notification is displayed with success.

appMobi, a popular platform for creating HTML5-powered mobile apps and websites has recently open sourced several useful resources for mobile developers.

JavaScript Bridge API

In order to access the device APIs of iOS and Android, creating native apps is not a must. The JavaScript Bridge API brings this functionality to mobile web apps.

The API has support for accessing the camera, notifications, player, display, geolocation and more.

appMobi - Open Source Mobile Resources

aUX.js

This is a mobile web framework for quickly creating touch-enabled interfaces that run equally good on iOS and Android.

It has on-device caching, offers block-based architecture rather than page based (only necessary block are updated during browsing), supports fixed headers/footers and includes several workarounds for known bugs on mobile web development.

Others

appMobi has also open sourced mobiUs, a mobile browser that offers a native-like experience when browsing web apps.

It enables web apps to access all of the hardware features of a smartphone, has a good game performance with DirectCanvas technology, comes with built-in caching and much more.

And, there is Direct Canvas/Box2D/Sound which helps running web apps (mostly games that require calculations) much faster, play multiple audio files at the same time (HTML5 normally supports 1 at a time), etc.

Fotorama is a highly flexible image gallery plugin for jQuery that works in both desktop and mobile browsers.

It offers multiple options for browsing through the images including thumbnails, prev-next buttons, swiping, slideshow or bullet navigation.

The thumbnails can either be prepared and defined manually for maximum quality or the plugin will display a stretched version of the original images.

Fotorama jQuery Image Slider

Images can have captions, the image to be displayed on initial load can be defined and transition duration can be changed.

There are also multiple options for arranging dimensions and positions of the slider and thumbnails (can be vertical too).

Sharrre is a jQuery plugin that eases creating social sharing widgets for Facebook,Twitter, Google Plus, Digg and Delicious.

The plugin calls the social buttons on demand which is great for minimizing the number of initial requests and improving loading speeds.

Sharrre jQuery Plugin

Any type of custom designs can be created for the widgets (no need to use the default buttons provided by the social networks) and events(like, +1, tweet, etc.) can be fired up with the plugin's API calls.

P.S. Google Plus widget requires PHP to work (the PHP file is already included in the package).

Some of us are already familiar with Node.js and for some others, it is probably "another new development tool/language/standard that is getting popular but what the heck..".

Node.js is really getting popular + being used more and more each day and it deserves this attention with the flexibility and performance if offers.

What is Node.js?

In a single definition: Node.js is a server-side JavaScript environment that uses an asynchronous event-driven model.

JavaScript is mostly ran/rendered on the client-side, in the browsers. However, Node.js is a server-side JavaScript interpreter and allows us to handle and make requests via JavaScript.

Node.js Logo

It is so fast as the engine is powered by the Google's V8 JavaScript Engine, runs under a single thread and every I/O operation is asynchronous which means no waiting for I/O operations of other requests.

A Node.js application can handle thousands of concurrent connections with minimum resource usage

Also, the ability to share code between the server and client-side is another plus. For ex: you can easily run the same form validation code on both sides.

It is not alone in the world of server-side JavaScript as there are other solutions like Aptana Jaxer, Ringo, Narwhal or EJScript. And, running JavaScript in the server is not something new as well considering classic ASP with IIS can do that too. But, things running asynchronously changes many things.

How to learn Node.js?

There are already a good number of tutorials and (e)books on Node.js. Here are some great ones to start with:

There are many modules and resources to easily get going with Node.js. Also, some great open source applications built with it. Here they are:

 

Node Development


npm (Node Package Manager)

Node Package Manager

The popular package manager for Node.js which can be used for installing and publishing Node programs.

Also, it can manage dependencies and the website has a package-search-engine.

Socketbug

Socketbug Nodejs

A remote debugging tool built with Node.js and Socket.io which enables your mobile application to send/receive messages from other connected devices (mostly mobile in this case) to your desktop browser.

P.S. It was previously mentioned at WRD.

Socket.IO

Socket.IO For NodeJS

Socket.IO brings WebSockets real-time communications to every browser whether they support it or not.

It has several transport methods like WebSockets, Adobe® Flash® Socket or JSONP Polling and the best method for the client's browser is selected automatically.

Read the rest of this entry »

It seems like there is almost no limit in minimizing the weight of the web pages we are creating.

For the JavaScript part, 140byt.es (a tweet-sized, fork-to-play, community-curated collection of JavaScript) is sharing a set of very useful tips for saving bytes.

Byte Saving JavaScript Techniques

They are simply smart replacements for the functions, equations, loops, etc that we are regularly using.

An example from conditionals:

  • Before: if(a)if(b)return c
  • After: return a&&b&&c

A good number of bytes saved : ). The bytes saved are definitely minimal but trying to keep things small and focusing on this is definitely a good habit (but also it is worth considering that such usage can make the code unreadable for other coders).

  • Tags:
  • Filed under: Extras, Info, No License
  • 6 Comments
  • Countdown.js is a JavaScript library for calculating and displaying the timespan between two dates.

    The library calculates the value continuously considering "the time goes on" and keeps generating an accurate output.

    It can provide the timespan in many formats like milliseconds, seconds, minutes, hours, days, weeks and even millennias.

    Countdown.js

    There are methods for displaying it as an English sentence like "3 years, 6 months, 21 days, 10 hours, and 32 minutes".

    The countdown can be reset easily and there are callbacks both on start and end.

    DOM Monster is a bookmarklet, created by Thomas Fuchs of script.aculo.us, for analyzing the DOM and several other features of a page.

    It works cross-platform/browser, checks the HTML + JavaScript codes and can come with warnings/suggestions like:

    • Reduce the number of tags that use the style attribute (85 elements)
    • Found 16 JavaScript globals. Reducing them can increase performance
    • and more..

    The bookmarklet is not an all-in-one solution, however, can be used side-to-side with other tools like Firebug, PageSpeed, YSlow, etc.

    Also, it is open source and can be improved/customized further.

    DOM Monster

    jqPagination is a jQuery plugin for quickly creating a JavaScript-controlled pagination interface and functionality.

    The plugin is controlled with the special class names and attributes of HTML elements (for defining the prev, next buttons or setting the max pages).

    It has a pretty unique, simple-yet-functional feature which is the ability to clicking on the pagination item and setting the page to be displayed manually.

    jqPagination

    jqPagination has a single callback which is ran when a pagination request is made and returns the page number to be displayed.

    Its design can be customized easily and the plugin degrades nicely when JavaScript is disabled.

  • Tags:
  • Filed under: Browsing, Goodies
  • 0 Comments
  • Uptime Robot
    Loading...
    Get WebResourcesDepot Weekly
    A Weekly Newsletter For Web Designers And Developers
    feed-holder
    FeedBurner
    • file uploading, video/audio/image encoding, s3 storage and much more
    • PSD to HTML
    • PSD to HTML
      aXmag - Flash Page Flip Magazine Software, PDF to Flash Converter