[sqlite] Accessing SQLite from Javascript in Firefox

2008-06-10 Thread Ujval Mysore
Hi,

Has anyone tried accessing SQLite from Javascript in Firefox?

I found an Sqlite helper library for Mozilla at 
http://codesnippets.joyent.com/posts/show/1030 .

But when I try to execute the same, firefox throws the following exception
uncaught exception: Permission denied to get property UnnamedClass.classes

Any clues what this exception means?

Thanks,
Ujval



 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Accessing SQLite from Javascript in Firefox

2008-06-10 Thread Igor Tandetnik
Ujval Mysore [EMAIL PROTECTED]
wrote in message
news:[EMAIL PROTECTED]
 Has anyone tried accessing SQLite from Javascript in Firefox?

 I found an Sqlite helper library for Mozilla at
 http://codesnippets.joyent.com/posts/show/1030 .

 But when I try to execute the same, firefox throws the following
 exception
 uncaught exception: Permission denied to get property
 UnnamedClass.classes

 Any clues what this exception means?

Only script running in chrome (basically, in FireFox extensions) can 
access XPCOM components, including Mozilla Storage ones. Script running 
on an HTML page cannot, for security reasons. Hence permission denied.

Igor Tandetnik



___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Accessing SQLite from Javascript in Firefox

2008-06-10 Thread Lauri Ojansivu
2008/6/10 Ujval Mysore [EMAIL PROTECTED]:
 Hi,

 Has anyone tried accessing SQLite from Javascript in Firefox?

 I found an Sqlite helper library for Mozilla at 
 http://codesnippets.joyent.com/posts/show/1030

Hi,
do you mean like in Google Gears?
http://gears.google.com

- Lauri
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Accessing SQLite from Javascript in Firefox

2008-06-10 Thread Ujval Mysore
Hi Igor,

Can you please help me to understand the point - Only script running in chrome 
(basically, in FireFox extensions) can
access XPCOM components. Excuse for my ignorance.

I was able to use SQLite in Internet Explorer using client side ADO. I am 
looking for a similar solution for Firefox.
Is there any way in which I can achieve this without using any Firefox 
extensions?

Thanks,
Ujval

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Tandetnik
Sent: Tuesday, June 10, 2008 5:32 PM
To: sqlite-users@sqlite.org
Subject: Re: [sqlite] Accessing SQLite from Javascript in Firefox

Ujval Mysore [EMAIL PROTECTED]
wrote in message
news:[EMAIL PROTECTED]
 Has anyone tried accessing SQLite from Javascript in Firefox?

 I found an Sqlite helper library for Mozilla at
 http://codesnippets.joyent.com/posts/show/1030 .

 But when I try to execute the same, firefox throws the following
 exception
 uncaught exception: Permission denied to get property
 UnnamedClass.classes

 Any clues what this exception means?

Only script running in chrome (basically, in FireFox extensions) can
access XPCOM components, including Mozilla Storage ones. Script running
on an HTML page cannot, for security reasons. Hence permission denied.

Igor Tandetnik



___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Accessing SQLite from Javascript in Firefox

2008-06-10 Thread Ujval Mysore
Hi Lauri,

Yes. I mean like in Google gears.

But, I don't want to use Google gears api to do it. I want to access SQLite 
from plain javascript.

Thanks,
Ujval

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lauri Ojansivu
Sent: Tuesday, June 10, 2008 7:44 PM
To: General Discussion of SQLite Database
Subject: Re: [sqlite] Accessing SQLite from Javascript in Firefox

2008/6/10 Ujval Mysore [EMAIL PROTECTED]:
 Hi,

 Has anyone tried accessing SQLite from Javascript in Firefox?

 I found an Sqlite helper library for Mozilla at 
 http://codesnippets.joyent.com/posts/show/1030

Hi,
do you mean like in Google Gears?
http://gears.google.com

- Lauri
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage 
you may sustain as a result of any virus in this e-mail. You should carry out 
your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this 
e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] Accessing SQLite from Javascript in Firefox

2008-06-10 Thread Shawn Wilsher
What you are looking for is the HTML 5 spec from the WHATWG.  This
contains a section on using SQL, but it is not yet implemented in
Firefox (I think Opera is the only browser that supports it, and only
when 9.5 comes out).

Cheers,

Shawn Wilsher
Mozilla Developer

On Tue, Jun 10, 2008 at 10:32 AM, Ujval Mysore [EMAIL PROTECTED] wrote:
 Hi Igor,

 Can you please help me to understand the point - Only script running in 
 chrome (basically, in FireFox extensions) can
 access XPCOM components. Excuse for my ignorance.

 I was able to use SQLite in Internet Explorer using client side ADO. I am 
 looking for a similar solution for Firefox.
 Is there any way in which I can achieve this without using any Firefox 
 extensions?

 Thanks,
 Ujval

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Tandetnik
 Sent: Tuesday, June 10, 2008 5:32 PM
 To: sqlite-users@sqlite.org
 Subject: Re: [sqlite] Accessing SQLite from Javascript in Firefox

 Ujval Mysore [EMAIL PROTECTED]
 wrote in message
 news:[EMAIL PROTECTED]
 Has anyone tried accessing SQLite from Javascript in Firefox?

 I found an Sqlite helper library for Mozilla at
 http://codesnippets.joyent.com/posts/show/1030 .

 But when I try to execute the same, firefox throws the following
 exception
 uncaught exception: Permission denied to get property
 UnnamedClass.classes

 Any clues what this exception means?

 Only script running in chrome (basically, in FireFox extensions) can
 access XPCOM components, including Mozilla Storage ones. Script running
 on an HTML page cannot, for security reasons. Hence permission denied.

 Igor Tandetnik



 ___
 sqlite-users mailing list
 sqlite-users@sqlite.org
 http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

  CAUTION - Disclaimer *
 This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
 for the use of the addressee(s). If you are not the intended recipient, please
 notify the sender by e-mail and delete the original message. Further, you are 
 not
 to copy, disclose, or distribute this e-mail or its contents to any other 
 person and
 any such actions are unlawful. This e-mail may contain viruses. Infosys has 
 taken
 every reasonable precaution to minimize this risk, but is not liable for any 
 damage
 you may sustain as a result of any virus in this e-mail. You should carry out 
 your
 own virus checks before opening the e-mail or attachment. Infosys reserves the
 right to monitor and review the content of all messages sent to or from this 
 e-mail
 address. Messages sent to or from this e-mail address may be stored on the
 Infosys e-mail system.
 ***INFOSYS End of Disclaimer INFOSYS***
 ___
 sqlite-users mailing list
 sqlite-users@sqlite.org
 http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users