4

I have the following page:

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<script>
var dbo = openDatabase('HelloWorld');
</script>
</body>
</html>

and I'm getting in firebug: openDatabase is not defined.

Phillip Senn
  • 46,771
  • 90
  • 257
  • 373
  • What sort of database are you expecting to open? My best guess is IndexedDB which is still experimental in Firefox 4 and needs to be accessed via mozIndexedDB.open - see https://developer.mozilla.org/en/IndexedDB/IndexedDB_primer – Neil Apr 06 '11 at 19:20

1 Answers1

9

You are trying to open a SQL storage but Firefox has no such feature. Mozilla will never implement it. Have a look at this question: Which version of firefox will support Web SQL?

Community
  • 1
  • 1
rocky3000
  • 1,134
  • 8
  • 9