• Home
  • New Entries
  • Popular Entries
  • Submit a Story
  • About

Create Facebook-like Windows with Popup.js ...



Over the past couple of months I’ve been working on a little library for a client that allows us to create Facebook-like popup windows with ease. It’s called popup.js. The library depends on Dan Webb’s excellent Low Pro and comes complete with it’s own behavior for easy unobtrusive use.

So how does it work? Well, once you have the proper plumbing in place you can declare a simple popup window like this:


<div class="popup" id="test" style="display: none">
  <h3 class="title">Popup Window</h3>
  <div class="popup_content">
    <p>Hello world!</p>
    <p><a href="javascript: Element.closePopup( est)">Close</a>
  </div>
</div>

This markup assumes that you are using the included facebook.css stylesheet, but the only thing that is necessary to have a functioning popup window is a div with an ID attribute. You should also set style=”display: none” to ensure that the div is not visible when the page loads.

Popping up the window is as simple as linking to it:



<a href="#test" class="popup">Popup</a>

Links with the class of “popup” get the Popup.TriggerBehavior which will trigger the popup when clicked. Note that the href should be set to the ID of the element to popup. If you prefer you can set the href to a URL that returns the HTML for the popup and an AJAX call will be made to that URL.

source: wiseheartdesign

 View Full Story.

AddThis Social Bookmark Button

Posted at 09:26:52 am | Permalink | Posted in Facebook  

Related Stuff

  • MooV: Using cutting edge Video phones and Software Video Phones - coupling all that with VoIP and empowering the disabled.

  • Moo Telecom: VoIP communications made easy - Ring anyway with the fun and ease of using a normal phone

  • TagR:Mobile Social Network with Real Time Locations Based services, and Ambience Intelligence, VoiP, IM, Skype, Googletalk, Mapping, Flickr, Events, Calendaring, Scheduling, SecondLife Support

  • ClearSMS : ClearSMS is a Web-based application that lets you send bulk SMS messages to your customers, contacts, or just about anyone.

  • Jajah:jah is a VoIP (Voice over IP) provider, founded by Austrians Roman Scharf and Daniel Mattes in 2005[1]. The Jajah headquarters are located in Mountain View, CA, USA, and Luxembourg. Jajah maintains a development centre in Israel.

  • Skype: It’s free to download and free to call other people on Skype. Skype the number one voice over ip software

  • PrivatePhone: a free local phone number with voicemail and messages you can check online or from any phone.

Top Stuff

e-messenger

MessengerFX

eBuddy

ILoveIM

AIM Express

Top 20 Ruby CMS


Short Poems

Best Short Poems

University Management System

ICampus is a web-based information management system, designed to automate the entire operations within a modern university.

Wordpress Themes

Unique Themes & Templates for wordpress, download and create your own.

Stock Exchange Chat

Stock exchange community, chat room for each quote

pixrat

Pixrat is a social photo bookmarking site for users to collect, organize and share interesting photos they discover while browsing the Web.

Brian Tracy Videos

Self help, Self Improvement videos for Brian Tracy

Ajax Projects

Ajax Toolkits, Projects, Libraries and Frameworks for all technologies

how to be witty

I believe that every one of us can be witty in their own way. Because being witty is not something to be taught at schools or learnt in books

Facebook Applications

Do you want to know the latest facebook applications?

Linens exporters

Visit Aqttan online store for famous egyptian cotton home textile products.


About Ajaxlines

Ajaxlines is a project focused on providing its audience with a database of most of Ajax related articles, resources, tutorials and services from around the world.

Its purpose is to showcase the power of Ajax and to act as a portal to the Ajax development community.


Search


Topics

  • .Net (118)
  • Ajax (24)
  • Ajax Games (10)
  • Articles (95)
  • Bookmarking (35)
  • Calendar (19)
  • Chat (41)
  • ColdFusion (3)
  • CSS (52)
  • Email (23)
  • Facebook (47)
  • Flash (17)
  • Google (36)
  • Html (17)
  • Image (11)
  • International Calls & VOIP (7)
  • Java (41)
  • Javascript (196)
  • jQuery (11)
  • JSON (26)
  • Perl (2)
  • PHP (101)
  • Presentation (19)
  • Python (3)
  • Resources (2)
  • RSS (2)
  • Ruby (16)
  • Storage (4)
  • Toolkits (96)
  • Tutorials (203)
  • UI (12)
  • Utilities (173)
  • Web2.0 (18)
  • XmlHttpRequest (22)
  • YUI (4)

© 2006 www.ajaxlines.com. All Rights Reserved. Powered by IRange