• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

simple busy processing widget with css

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am primarily a Java developer, but lately I had to write more and more of javascript. What frustrates me most is that one has to write even the simplest string manipulation functions as no such libraries are deployed with browsers.

My current problem is creating a "busy processing" widget.
Any suggestion for a simple and slim widget like that? I'd love to be able to redefine the look of it with CSS too, since the look of any UI element evolves all the time and I'd hate to touch the code too much.

I am learning to appreciate the use of CSS, but I find it hard
- to organize styles as far as naming goes
- no inheritance means redefining lots of attributes
- not all style attributes are applicable to all HTML elements so cross-element use of styles is questionable too.
Any word of advise on this? Does the book address any of them.
[ October 09, 2007: Message edited by: evguenia ]
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
evguenia,

On the off-chance that you aren't aware, there are several javascript toolkits out there that you can use. One is Dojo. Dojo has a couple of built-in widgets that might get you started in the right direction:


http://archive.dojotoolkit.org/dojo-2007-10-08/dojotoolkit/dijit/tests/test_Dialog.html
http://archive.dojotoolkit.org/dojo-2007-10-08/dojotoolkit/dijit/tests/test_ProgressBar.html

I find that if nothing else, Dojo can simplify the javascript you write with some helper classes.

Hope that helps.
-Mike
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic