Re: prompt not working
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: prompt not working

From: joemac <j_mcarthur@usa.net>
Date: Wed Nov 30 2005 - 22:33:28 CET

Thomas 'PointedEars' Lahn wrote:
>
> A) a) You are declaring an XHTML document type and serve it
> correctly as application/xhtml+xml. Not at all wrong,
> but it would explain points Ab) and B) below.

Since there are no explicit declarations about document types in my
code I infer from the above that XHTML must be the "default" document
type. Is that correct?

> b) document.write() does not work in XHTML 1.1 and later.
> It also does not work in XHTML 1.0 yet, even though W3C
> DOM Level 2 HTML says it should.
>
> B) You successfully commented out script content with the
> empty declaration `<!-- ... -->'.

The book that I am using says to use comment tags to enclose all script
elements so as to prevent wrongful interpretation by browsers lacking
the ability to process said javascript elements. Are you saying that
there are some browsers that are capable of processing javascript but
do know enough to overlook comment tags inside of script begin and end
tags?

> C) 1. There is no global prompt() method in your UA, meaning
> that either the Global Object is not the same object the
> `window' reference points to or this host environment
> method is not supported by your UA's Application Object
> Model (AOM).

What is "UA"?

> 2. Therefore, a ReferenceError occurs and further expressions
> are not evaluated.

Is it possible to determine that this (ReferenceError) has occurred,
and why?

> D) Script support is not present, i.e. either it is
> disabled or not available in the first place.

How would I go about determining this and correcting it if necessary?

> <URL:http://jibbering.com/faq/#FAQ4_43>

I examined the referenced article. I do not see any "little yellow
triangle". In fact I see no triangle at all, of any color.

Joe
Received on Sat Dec 3 04:34:04 2005