Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #7715

Re: javascript function name printed

From "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Newsgroups comp.lang.javascript
Subject Re: javascript function name printed
Date 2011-10-27 08:08 +0300
Organization A noiseless patient Spider
Message-ID <j8ap06$kth$1@dont-email.me> (permalink)
References <8b1ba0eb-31a2-4c7a-9b89-47f385aab146@d37g2000prg.googlegroups.com> <4ea89e68$0$28447$a8266bb1@newsreader.readnews.com> <29d9a76e-ba9f-4d09-a168-9646bb18aae4@u37g2000prh.googlegroups.com>

Show all headers | View raw


27.10.2011 7:38, cerr wrote:

> On Oct 26, 4:57 pm, Denis McMahon <denismfmcma...@gmail.com>  wrote:
>> On Wed, 26 Oct 2011 16:40:23 -0700, cerr wrote:
>>> Why is my function name checkdetails() being printed onto my html page?
>>
>> Got a url? My first and best guess is that it appears outside the script
>> tags somewhere.
>
> Sure do, sorry, I meant to post it with my first posting...
> http://pizzalita.com/store/

As suspected, it appears as naked inside the head element:

  </style>
  checkdetails()
</head>

The validator http://validator.w3.org would have told this (in its own 
somewhat technical way: "character data is not allowed here") and some 
other problems with your markup.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

javascript function name printed cerr <ron.eggler@gmail.com> - 2011-10-26 16:40 -0700
  Re: javascript function name printed Denis McMahon <denismfmcmahon@gmail.com> - 2011-10-26 23:57 +0000
    Re: javascript function name printed cerr <ron.eggler@gmail.com> - 2011-10-26 21:38 -0700
      Re: javascript function name printed "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-10-27 08:08 +0300
        Re: javascript function name printed cerr <ron.eggler@gmail.com> - 2011-10-27 14:22 -0700

csiph-web