I don't think the issue is really whether they *should* be used or
not, because the technique is still used.  Case in point... I JUST
encountered this error, and it was because I'm using ASP.NET... and
ASP.NET uses this type of comment markup around the JavaScript that
they output to the page.  One caveat though... I only got this error
in IE 6 - I'm didn't test IE 7, so I don't know if it's a issue
there.  Firefox worked fine.

Network Newbie - your modification did the trick, thanks!

Chad

On May 27, 3:48 pm, "Matt Stith" <[EMAIL PROTECTED]> wrote:
> Well i dont know specifically, but im sure at least the older ones do. Any
> newer phones should hide it, but i dont know any specifics.
>
> On 5/27/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hmmm I'm curious ... which cell phone browsers will show the script?
> > Do you have or know of any articles on the topic?
>
> > --
> > Brandon Aaron
>
> > On 5/27/07, Matt Stith <[EMAIL PROTECTED]> wrote:
> > > True, but alot of cell phone browsers will show the scripts if its not
> > > commented out.
>
> > > On 5/27/07, RobG <[EMAIL PROTECTED] > wrote:
>
> > > > On May 28, 5:10 am, "Matt Stith" < [EMAIL PROTECTED]> wrote:
> > > > > The HTML comments are to hide the script from older browsers that
> > dont
> > > > > understand javascript.
>
> > > > The use of HTML comments inside script elements hasn't been needed
> > > > since Navigator 2 or IE 3.  I doubt that anyone is still using those
> > > > browsers and if they are, they have far more serious problems that
> > > > seeing a bit of script source.
>
> > > > --
> > > > Rob

Reply via email to