Thursday, July 02, 2009

jQuery UI ThemeRollerReady IFRAME in a dialog box

Whilst making preparations for upgrading to uPortal 3.1.x from uPortal 2.5.x I came into contact with jQuery UI themes.

In our previous portal the help screens were displayed using Cody Lindley's ThickBox. At the time I first introduced Thickbox to our portal I thought this was pretty revolutionary, clicking on a link made the background dim and the help text (via an IFRAME) was shown in sharp contrast in the foreground of the page (very Web 2.0!).

The interface for uPortal 3.1 has evolved considerably from 2.5.x. The fluid project have worked on uPortal 3.1 to improve the user experience. jQuery and jQuery UI have become an integral part of the uPortal interface. uPortal 3.1 makes good use of jQuery UI dialog and tab widgets. (Incidentally, when did dialogue become dialog?) As the range of jQuery UI widgetry expands so too will the options for portal improvement, all with a common look and feel and easily themed.

In our new portal I would still like to access the help pages in a Thickbox/IFRAME style. However, the jQuery plugins that provide this kind of functionality (Thickbox and jqModal) do not look like the other jQuery UI widgets and are not themeable via jQuery UI themes. I could probably map the plugin CSS to the jQuery UI theme CSS but this seems like it could be a lot of work. So I have produced my own version of a dialog using an IFRAME.

I am fairly new to jQuery and what I have produced isn't quite up to jQuery plugin standard but if somebody out there wanted to apply some finishes touches to it I would be happy to contribute it back to the jQuery effort. The main difference between my effort and Thickbox and jqModal is that I am only interested in IFRAMEs and my version should be ThemeRollerReady. All being well you should see the themeswitcher below and a click on the link below that should give you a dalog box IFRAME:

jQuery UI IFRAME dialog box example

alternatively you can see it at standalone jQuery UI IFRAME dialog box example.

3 comments:

ismjml said...

What is the license for this, open sourced?



I really like to use this for a community website.



Oh and btw... can you use relative links for this e.g. '/adirectory' instead of the full link 'http://example.com/adirectory' ? And if not... how can i enable it?
Note: Comment imported. Original by Anonymous at 2009-07-16 17:39

ismjml said...

The license for any of the work on my blog is >Creative Commons Attribution 2.0 UK (unless otherwise stated). This means you are free to do whatever you want as long as I am given some credit.





Please use it as you see fit. As far as credit goes a comment on this blog referencing your site would be sufficient for my needs.





I believe an IFRAME can use a relative URL.






Note: Comment imported. Original by markmc website: http://content.mark-mclaren.info/ at 2009-07-17 17:48

Coco Ada said...

Omega Watches Swiss Watches accept been the dream watch for omega replica those who apperceive a bit about watches. The sole agitation is that not anybody can pay for to acquirement it. The abatement Franck Mueller watches at www.online abundance are of breitling replica the incomparable top superior which accept the ability to endure best at a decidedly bargain rates.The awfully to activate with Omega watch was produced in 1983 and was referred to hublot replica as Tourbillon. Each of the movements aural the Omega watches are developed by Omega alone, and they may be one of its sorts back in the accomplished crafted appearance and actions.Nonetheless, there appear to be a abundant amount of cartier replica additions to the watch anon afterwards it was launched in 1983 about the a lot of cogent 1 would be the abiding agenda & minute repeater. Aural just a abbreviate amount of time Cartier has advised a name for rolex replica abandoned and is been admired as the baton while in the industry. As a aftereffect of its technology and incomparable craftsmanship, Omega watches has been a accepted central the celebrity and appearance collectors. It is aswell admired for its abnormally advised dials and its ultra avant-garde cases.Adding jewels to the acme Omega Speedmaster of louis vuitton replica the Cartier band of watches could be the Casablanca which comes with an automated movement in a stainless animate case. This abnormally advised watch from Switzerland can be beat accidentally or on a dress too, as it fits both scenes actual appropriately and nicely.






5.
The Casablanca accumulating unveils the mysteries of far abroad places and has become the watch for
replica watches your ultimate traveller with its skilfully created designs and adapted curves, altogether advised to the being who has a aftertaste for accustomed simplicity, stylishness, & casualness.Original Omega Casablanca watches accept not been for everybody back of hermes replica its affordability. Having said that, www.online abundance offers appropriate accomplished Cheap Omega Casablanca watches that action something added and acknowledgment to this, about everybody can allow to accept this chic watch.
The humans at www.online abundance ensure that the top superior and body in the watches may be breitling replica the best. You can get a array of options to accept from the Cheap Casablanca Omega watches. Our Casablanca Cartier watches attending like absolute watches, and don attending like replicas, if you louis vuitton replica anytime accept had a bad acquaintance aural the accomplished application the Cheap watches, we assure that affairs the appearance from us would ensure the appearance looks original, and cipher can agnosticism its authenticity. You will consistently get adulation if you abrasion the rolex replica Cheap Casablanca Omega watches purchased from us.we assure that affairs the appearance from us would ensure the appearance looks original, and cipher can agnosticism its authenticity. You will consistently get adulation if you abrasion the Cheap Casablanca Omega watches purchased from us.