Web Info & Tutorials

October 15th, 2007

SCRIPT.ACULO.US 1.8 PREVIEW

Thomas Fuchs announced a preview release of the Script.aculo.us effects library. Script.aculo.us v1.8 Preview includes:

  • Prototype 1.6 (lastest trunk version)
  • Complete rewrite of Ajax.InPlaceEditor and Ajax.InPlaceCollectionEditor
  • Full CSS inheritance in Effect.Morph
  • New core effect: Effect.Tween
  • Sound: play mp3 files for sound effects; uses native playback on IE and available plugins whereever possible
  • Performance improvements
  • Tons of bugfixes

You can find the full CHANGELOG here.

October 15th, 2007

CSS VERTICAL BAR GRAPHS

Eric Meyer has been keeping a secret since 2005 about CSS Vertical Bar Graphs. Well, not really, but it is good that he has come out with a nifty demo on how you can make this:

HTML:
  1.  
  2. <table id="q-graph">
  3. <caption>Quarterly Results</caption>
  4. <th></th>
  5. <th class="sent">Invoiced</th>
  6. <th class="paid">Collected</th>
  7. </tr>
  8. </thead>
  9. <tr class="qtr" id="q1">
  10. <th scope="row">Q1</th>
  11.  
  12. <td class="sent bar" style="height: 111px;"><p>$18,450.00</p></td>
  13. <td class="paid bar" style="height: 99px;"><p>$16,500.00</p></td>
  14. </tr>
  15. <tr class="qtr" id="q2">
  16. <th scope="row">Q2</th>
  17. <td class="sent bar" style="height: 206px;"><p>$34,340.72</p></td>
  18. <td class="paid bar" style="height: 194px;"><p>$32,340.72</p></td>
  19. </tr>
  20. <tr class="qtr" id="q3">
  21. <th scope="row">Q3</th>
  22. <td class="sent bar" style="height: 259px;"><p>$43,145.52</p></td>
  23.  
  24. <td class="paid bar" style="height: 193px;"><p>$32,225.52</p></td>
  25. </tr>
  26. <tr class="qtr" id="q4">
  27. <th scope="row">Q4</th>
  28. <td class="sent bar" style="height: 110px;"><p>$18,415.96</p></td>
  29. <td class="paid bar" style="height: 195px;"><p>$32,425.00</p></td>
  30. </tr>
  31. </tbody>
  32. </table>
  33.  
  34. <div id="ticks">
  35. <div class="tick" style="height: 59px;"><p>$50,000</p></div>
  36.  
  37. <div class="tick" style="height: 59px;"><p>$40,000</p></div>
  38. <div class="tick" style="height: 59px;"><p>$30,000</p></div>
  39. <div class="tick" style="height: 59px;"><p>$20,000</p></div>
  40. <div class="tick" style="height: 59px;"><p>$10,000</p></div>
  41. </div>
  42.  

i.e. a bog standard table with some divs, and make it look like this:

CSS Vertical Bar Graphs

October 15th, 2007

DOJO IMAGE WIDGETS V1.0

Over the weekend Shane O’Sullivan liberated edition 1.0 of Dojo Image Widgets, a ordered of Dojo widgets that allows cushy creation of ikon galleries from Flickr.

One of the coolest features of every of these widgets is that they every take soured ikon accumulation provided by the dojo.data API. What this essentially effectuation is that apiece widget crapper transfer images from some source, with no change whatsoever. You only transfer it a Dojo accumulation store, and is shows the pictures. Some of the accumulation stores currently in the Dojo toolkit include:

  • dojo.data.ItemFileReadStore - vantage in ultimate JSON accumulation in an array. You could ingest this if you only hit a directory of images on your possess scheme computer you would same to display
  • dojox.data.FlickrRestStore (demo) - ask the Flickr picture distribution website for images. This is every finished on the browser, with no requirement for some server-side redirects. This is added of my additions to the Dojo toolkit - I fuck Flickr, wager liberated to analyse discover my picture course here.
  • dojox.data.PicasaStore (demo) - ask Google’s Picasa ikon distribution website for images. As with the Flickr accumulation store, this is finished on the browser, with no requirement for computer lateral support.

and some more….. You crapper also indite your possess accumulation accumulation if you so desire, but the ones included in the toolkit should counterbalance nearly everything you strength need.

Some of the features included are:

  • Pages of thumbnails.
  • Intelligent pre-loading of images so the images you are hunting at are unexploded first.
  • Fade personalty for transitioning of images
  • Populated using JSON accumulation - some JSON data, not meet Flickr.
  • Flickr combining - remotely alluviation your Flickr images.
  • Paging finished a Flickr collection.
  • Slideshow

You crapper feature the full promulgation notes and wager demos at Sean’s site.