new JS Objects

acc acc at tid.es
Tue Jul 15 18:40:38 CEST 2003


Hello,
I've programmed and add-ons module that extends the standard JS objects 
(like Window, History,...) with 3 new objects (A, B and C). I use the 
following line:
  ...
  hostobj.put("A",KJSO(s_objectA));
  ...
  hostobj.put("B",KJSO(s_objectB));
  ...
  hostobj.put("C",KJSO(s_objectC));
  ...
Then, when Konqueror starts the objects A, B and C are loaded.
But one thing doesn't work: Konqueror doesn't work when analizes the 
following JS code:
  ...
  var variable;
  ...
  variable = new A;
  ...
How can I modify the add-ons module to create objects of A, B or C with 
JS code?
Thanks in advance.



More information about the konq-e mailing list