Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

simple busy processing widget with css

 
Evguenia Krylova
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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 ]
 
Michael Beauchamp
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic