The European Tribune is a forum for thoughtful dialogue of European and international issues. You are invited to post comments and your own articles.
Please REGISTER to post.
But it must be horrendeously painful to code the scripts in vi, restart firefox to test, etc.. Any thing that gets a little bigger than 30 lines would need hot-swapping of script code, a full blown debugger with step-by-step, variable inspection, test-case replay, etc...
Have you got any of these that you would recommend ? Pierre
Then install this: Ted's Mozilla page - Extension Developer's Extension
The Extension Developer's Extension exists to make life easier for Firefox extension developers. Testing JavaScript code, prototyping XUL layouts, and building XPI packages are all made easier by this extension. Install it and try it out!
I also found it convenient to use a trick to prevent javascript caching to cause a major headache. If one writes a script in a file which is read into a string in another script, and the evaluated with the eval() function there are no caching problems. There is also a convenient javascriptobject.toSource(); For writing evaluatable script strings from object. This comes in handy also because sharing data between different window entities is quite inconvenient. I would say this is also a must read: Working with windows in chrome code - MDC
eval()
javascriptobject.toSource();
Working with windows in chrome code From MDC This article describes working with multiple windows in Mozilla chrome code (XUL applications and Extensions). It contains tips and example code on opening new windows, finding an already opened window, and passing data between different windows.
This article describes working with multiple windows in Mozilla chrome code (XUL applications and Extensions). It contains tips and example code on opening new windows, finding an already opened window, and passing data between different windows.
It tells you important stuff, like how to get to the top level chrome window, how to access the sidebar, etc. All in all it is a minor nightmare. Not a very logical layout of an object model at all!
by Frank Schnittger - Sep 24 2 comments
by Oui - Sep 19 18 comments
by Oui - Sep 13 35 comments
by Frank Schnittger - Sep 11 5 comments
by Cat - Sep 13 9 comments
by Frank Schnittger - Sep 2 2 comments
by Oui - Sep 27
by Oui - Sep 265 comments
by Frank Schnittger - Sep 242 comments
by Oui - Sep 1918 comments
by gmoke - Sep 173 comments
by Oui - Sep 153 comments
by Oui - Sep 15
by Oui - Sep 1411 comments
by Oui - Sep 1335 comments
by Cat - Sep 139 comments
by Oui - Sep 126 comments
by Frank Schnittger - Sep 115 comments
by Oui - Sep 929 comments
by Oui - Sep 713 comments
by Oui - Sep 61 comment
by Frank Schnittger - Sep 22 comments
by gmoke - Sep 2
by Oui - Sep 1181 comments
by Oui - Aug 315 comments
by gmoke - Aug 302 comments