|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Problem with jslib in FirefoxOn Firefox 3.x installed extension jslib. In chrome file script like
var date = new Date(); dump(date + "\n"); works fine but unable to get something like var gFile = new File("/tmp/jslib.dat"); to work. May be related to the namespace problem referred to in > http://www.mozdev.org/pipermail/project_owners/2009-March/012236.html but what is the solution. jslib did wonders for me under old seamonkey but would like to change to Firefox now and must get my xul program to work first. Appreciate any help. Enno Fennema _______________________________________________ Jslib mailing list Jslib@... https://www.mozdev.org/mailman/listinfo/jslib |
|
|
Re: Problem with jslib in FirefoxEnno Fennema wrote: > On Firefox 3.x installed extension jslib. In chrome file script like > var date = new Date(); > dump(date + "\n"); > works fine but unable to get something like > var gFile = new File("/tmp/jslib.dat"); > to work. > This should work. You are including the correct lib right? include (jslib_file); I have been using jsLib w/ FF 3.x and have had mo problems. I do know that the top level jslib object is probably broken as for FF 3.x they changed how top level objects can be exposed to the DOM. So it is possible that instantiating using: jslib.init(this); is broken\ on FF 3.5.x --pete -- Pete Collins - Founder, Mozdev Group Inc. www.mozdevgroup.com Mozilla Software Development Solutions tel: 1-719-302-5811 fax: 1-719-302-5813 _______________________________________________ Jslib mailing list Jslib@... https://www.mozdev.org/mailman/listinfo/jslib |
|
|
Re: Problem with jslib in FirefoxPete Collins wrote:
> > Enno Fennema wrote: >> On Firefox 3.x installed extension jslib. In chrome file script like >> var date = new Date(); >> dump(date + "\n"); >> works fine but unable to get something like >> var gFile = new File("/tmp/jslib.dat"); >> to work. >> > > > This should work. You are including the correct lib right? > jslib.init(this); ... > include (jslib_file); You put your finger on all problems. I muddled around before I had the correct library loaded correctly. Then the first thing that worked was the Date object which didn't need jslib.init nor include. I then erroneously assumed that these instructions were not needed any more in the FFox new setup. Script now runs as it used to, that is flawlessly. Thanks, Enno Fennema _______________________________________________ Jslib mailing list Jslib@... https://www.mozdev.org/mailman/listinfo/jslib |
|
|
Re: Problem with jslib in Firefox> You put your finger on all problems. I muddled around before I had the > correct library loaded correctly. Then the first thing that worked was > the Date object which didn't need jslib.init nor include. I then > erroneously assumed that these instructions were not needed any more in > the FFox new setup. > > Script now runs as it used to, that is flawlessly. > > Yes, I need to do some updating in docs and code as well. --pete -- Pete Collins - Founder, Mozdev Group Inc. www.mozdevgroup.com Mozilla Software Development Solutions tel: 1-719-302-5811 fax: 1-719-302-5813 _______________________________________________ Jslib mailing list Jslib@... https://www.mozdev.org/mailman/listinfo/jslib |
| Free embeddable forum powered by Nabble | Forum Help |