Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #15929
| Message-ID | <5486107.giMBzBjr1v@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2012-09-17 21:00 +0200 |
| Subject | Re: Background image in <TD> |
| Newsgroups | comp.lang.javascript |
| References | <5054ed07$0$6897$e4fe514c@news2.news.xs4all.nl> <5055ae9a$0$6850$e4fe514c@news2.news.xs4all.nl> <k34g55$u30$1@dont-email.me> <5056d6e4$0$6900$e4fe514c@news2.news.xs4all.nl> |
| Followup-To | comp.lang.javascript |
Followups directed to: comp.lang.javascript
Tom de Neef wrote: > I find that coding in Javascript takes me ages. This must have to do with > the lack of a proper development environment. I am used to one (Delphi) > where the IDE checks spelling, offers a list of possible > properties/methods, warns against unassignments, dubious assignments, etc. > With Javascript I have to use a simple editor There still is no "Javascript" and no, you don't. > and none of such help is available. You might want to try Eclipse JavaScript Development Tools (JSDT) [1]. It is the best ECMAScript and DOM editor that you can get for free that I have encountered for years; it can do what you ask, and more. It still has some language bugs, though; primarily because it is based on a Java parser that cannot deal with the very dynamic nature of the language and the different patterns this allows. I am using it for all my ECMAScript-based scripts; JSX includes some of the JSdoc comments only for JSDT (for example, `@memberOf'). > The result is that you may get stuck without a clue. I must > learn to call upon JSlint in such cases. No, you don't. > But here I didn't. I followed what was happening in > inspection mode. thisTD.style.backgroundImage = "expl.bmp" did not raise > an exception and yet the attribute remained as was (empty string). That is strong indication that the value right-hand side was invalid. The setter of the style property prevented the change of the current property value to an invalid value. That is as close as you can get with DOM properties; an exception does not need to be thrown. See also jsx.dom.setStyleProperty() (and an improvement for that is coming to my mind now). > I tried url() but may have made a mistake with the quotes. Quotes in the `url(…)' value are optional per the Specification. Some non- conforming layout engines used to make a difference there, but I am not convinced they are relevant anymore. > I've learned one thing and hope to keep it at heart: validate html, css > and script before posting ACK. Trim your quotes to the relevant minimum, please. [3] PointedEars ___________ [1] <http://www.eclipse.org/webtools/jsdt/> [2] <http://PointedEars.de/websvn/filedetails.php?repname=JSX&path=%2Ftrunk%2Fdom%2Fcss.js> [3] <http://jibbering.com/faq/notes/posting/> -- When all you know is jQuery, every problem looks $(olvable).
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Background image in <TD> "Tom de Neef" <tdeneef@qolor.nl> - 2012-09-15 23:03 +0200
Re: Background image in <TD> "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-09-15 21:13 +0000
Re: Background image in <TD> SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-09-16 00:21 +0200
Re: Background image in <TD> Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-16 01:54 +0200
Re: Background image in <TD> Martin Leese <please@see.Web.for.e-mail.INVALID> - 2012-09-16 11:16 -0600
Re: Background image in <TD> evlanovsasha@gmail.com - 2012-09-15 17:06 -0700
Re: Background image in <TD> "Tom de Neef" <tdeneef@qolor.nl> - 2012-09-16 12:48 +0200
Re: Background image in <TD> "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-09-16 15:19 +0300
Re: Background image in <TD> "Tom de Neef" <tdeneef@qolor.nl> - 2012-09-17 09:53 +0200
Re: Background image in <TD> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-09-17 06:44 -0700
Re: Background image in <TD> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-09-17 06:46 -0700
Re: Background image in <TD> Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-09-17 21:00 +0200
Re: Background image in <TD> SAM <stephanemoriaux.NoAdmin@wanadoo.fr.invalid> - 2012-09-18 02:55 +0200
csiph-web