mortsahl wrote: > Abel > > Thanks ... you were correct. I'm not a Javascript programmer -- I am > a Java programmer but > have gotten lazy by letting Eclipse do my syntax checking for me. > I've got to find a good > Javascript plugin for Eclipse. I originally created my site in Java > with JSPs but decided I wanted > to learn something about AJAX ... Javascript is proving difficult for > me because it isn't typed. > Oh well, I'll figure it out.
It is not typed, indeed, and variables need not be declared to be used in comparisons (however, they do need to be declared in most other uses). It makes it altogether a rather messy language and when going cross browser, the mess will quickly grow exponentially. Stick to the lessons you learned when using Java and propagate them to Javascript (even though the language does not enforce them on you). There are several libraries that ease your world. One is prototype.js, which comes as part of PWC. If you are considering Ajax, you may consider client side XSLT, in which case Sarissa may be a good bet. You found PWC already to spice up your pages. And AJAX: a word of advice here, make your first tries by hand, to understand the techniques involved (google for some examples) and then switch as quickly as possible to one of the many helpful auxiliary libraries that are around (again, prototype.js), it may save you months of work. Good luck! -- Abel PS: there are many Javascript syntax checkers and plugins for Eclipse around, but none of them is able of doing what Java plugins in Eclipse can: i.e. show the errors the clients compilers (browsers) would show/find. This is even more through when you build your libraries grow bigger, if you have browser specific code (stay away from it as much as you can) and when you start loading/creating js files dynamically (i.e., by, again, Javascript). _______________________________________________ Javawin mailing list [email protected] http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
