« Return to Thread: Including other JS files and using "class" and custom styles

Including other JS files and using "class" and custom styles

by Stefano POGLIANI :: Rate this Message:

Reply to Author | View in Thread

Hi all
 I hope that, even if these are very basic questions, someone could give
me some hints.

   1. Does it work including an external Javascript script inside a GM
      script?
      For instance, if I want to include some "AJAX effects" and want to
      use one of the Open Source javascript libraries out there...
   2. In my GM script I am programmatically creating ALL the widgets
      that I need.
      Is there a way where I could use some "static HTML" to shortcut
      the development time? If yes, does someone have an example?
   3. one of the issues related to my poor knowledge of JS is that, when
      programmatically creating my widgets, I do not know how to set a
      custom CSS class (the equivalent of saying <div class="myclass">
      ..... how can I specify in Javascript this?)
   4. associated to the latter. If I create my own CSS classes, can I
      store their definition in a CSS style sheet file and "import" it
      in the GM script? If yes, how?

   5. Final one. Can I use XUL inside a GM script?

Thanks a lot for your help and patience
/Stefano

_______________________________________________
Greasemonkey mailing list
Greasemonkey@...
http://mozdev.org/mailman/listinfo/greasemonkey

 « Return to Thread: Including other JS files and using "class" and custom styles