On Fri, 07 May 2004 23:06:12 GMT, Steve Burrus wrote:
[ Comments all the way to bottom ]
(sighs) OK Steve.. I will give you one last chance.
Please stop top-posting.
...I tried out your code which u supplied me with, but alas, I
still didn't get my desired alert dialogue box to pop up at all!!! Here
is the code which I had (which again compiled okay!) :
It is important realise this Steve.
Java code that compiles does *not* produce
valid HTML/XHTML/JavaScript..
Whether the latter is 'valid and well formed'
an entirely separate matter.
The stuff you produced, was not valid if it
had been typed in notepad. So writing it
using Java is not going to fix it.
[[ If you want a JS alert, it is best to
do it all in HTML first. ]]
This is something that a lot of Java
programmers get wrong.
That is how I develop my sites - I work out
the HTML/JS/applet calls in a web page ..THEN,
once it is working and valid, I write more
advanced page(s) generated by the server.
If I mess with 3 technologies at once
(e.g. Java/HTML/JS) I stuff it up.
import javax.servlet.*;
import javax.servlet.http.*;
So I shouldn't have to be looking at this crap.
This should have _nothing_ to do with servlets yet.
Which ultimately means you should be
asking THIS question on...
<
http://google.com/groups?group=comp.lang.javascript>
As it happens I need to pop in there myself
to get some help with a URL/parameters problem,
so I might be seeing you there.
Now, I considered sitting down and writing
a simple HTML/JS pop-up example for youm
but neither do I have time, nor is it fair to
the other members if this Java group.
What I recommend is. Mosey on over to c.l.js
and you will have working HTML/JS in 20 minutes.
Then write that back into your servlet.
HTH