简体   繁体   中英

IE8 says prototype's Form class is undefined

I'm doing an observer with

new Form.Observer('id', freq, etc...)

and my doctype is

<!DOCTYPE html> 
<html>
...

and the error is 'Form' is undefined

using prototype 1.6.0.3 in IE8
Works in chrome, safari, FF, etc

In some cases this error seems to be solved by replacing

type="text/javascript"

with

type="application/javascript"

In the tag.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM