 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Howard Brazee Guest
|
Posted: Sat Jan 27, 2007 3:18 am Post subject: JavaScript errors |
|
|
JavaScript is hard to debug. If I misspell a function, nothing tells
me that I misspelled a function.
When I have some JavaScript in JBuilder that creates a table, JBuilder
will give me an error: Unmatched <TABLE> tag for code such as this:
var content = "<CENTER><TABLE BORDER>"
.... (more code here building the table)
content += "</TABLE></CENTER>"
Should I be using a different tool when I have JavaScript? Trouble
is, I often combine Java and JavaScript. |
|
| Back to top |
|
 |
Paul Furbacher [TeamB] Guest
|
Posted: Sat Jan 27, 2007 9:13 am Post subject: Re: JavaScript errors |
|
|
Howard Brazee wrote:
| Quote: | JavaScript is hard to debug. If I misspell a function, nothing tells
me that I misspelled a function.
When I have some JavaScript in JBuilder that creates a table, JBuilder
will give me an error: Unmatched <TABLE> tag for code such as this:
var content = "<CENTER><TABLE BORDER>"
... (more code here building the table)
content += "</TABLE></CENTER>"
Should I be using a different tool when I have JavaScript?
|
The advent of AJAX, it seems to me, has been a
big motivator for improving and increasing the
quality and number of Javascript development
environments. A Google search should yield
quite a number of Javascript edit/debugger/IDEs.
(I currently am not doing any Web UI related
work, so I haven't been keeping up well enough
to know which tool(s) might be considered the best.)
JBuilder doesn't understand Javascript so it's
the wrong tool for that.
| Quote: | Trouble is, I often combine Java and JavaScript.
|
That is trouble if what you are saying is that you are
putting Java into your JSPs. Try at all costs to not
do that. Adopt some Web framework for the controller
and action handling aspects, and use tag libraries.
Aim at having no Java code in your JSPs.
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://info.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you. |
|
| Back to top |
|
 |
Paul Nichols [TeamB] Guest
|
Posted: Sun Jan 28, 2007 3:03 am Post subject: Re: JavaScript errors |
|
|
Howard Brazee wrote:
| Quote: | JavaScript is hard to debug. If I misspell a function, nothing tells
me that I misspelled a function.
When I have some JavaScript in JBuilder that creates a table, JBuilder
will give me an error: Unmatched <TABLE> tag for code such as this:
var content = "<CENTER><TABLE BORDER>"
... (more code here building the table)
content += "</TABLE></CENTER>"
Should I be using a different tool when I have JavaScript? Trouble
is, I often combine Java and JavaScript.
|
By all means, the only way to do meaningful work with JavaScript, is to
use the free Mozilla/Firefox plugins. Look for Firebug and Web Tools and
install these plugins, at minimum. NetBeans 5.5 and MyEclipse have
some built in features for Java Script, but none are going to provide
you the feedback you desire and none are as robust as the
Firefox/Mozilla tools.
I do AJAX in almost every Web App I build today. Without the Firefox
plugins, my job would be ten times more difficult. With them, I can
debug pretty well.
Another thing, I would be careful to test in IE and Firefox/Mozilla. IE
handles certain events much differently than Firefox/Mozilla. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|