Instructions for the project in Russian are attached in file "[login to view URL]".
It is expected that someone proficient in browser plugin development (Firefox, Chrome) could crank it out in no time, having all the setup in place.
## Deliverables
Example of code for Applet to manipulate DOM through Java Plugin APIs:
@Override
public void start() {
[login to view URL]();
try {
// use reflection to get document
Class c = [login to view URL]("[login to view URL]");
Method m = [login to view URL]("getDocument",
new Class[]{[login to view URL]});
// cast object returned as HTMLDocument; then traverse or modify DOM
final HTMLDocument doc = (HTMLDocument) [login to view URL](null, new Object[]{this});
[login to view URL]("Document: " + doc);
final HTMLBodyElement body = (HTMLBodyElement) [login to view URL]();
[login to view URL]("Body: " + body);
new Thread(new Runnable() {
public void run() {
try {
Node test = [login to view URL]("sample text");
[login to view URL](1000);
[login to view URL](test);
[login to view URL]("now added a node");
[login to view URL](1000);
[login to view URL](test);
[login to view URL]("now removed a node");
} catch (Exception e) {
[login to view URL]("Exception while manipulating DOM " + e);
}
}
}).start();
} catch (Exception e) {
[login to view URL]("New Java Plug-In not available");
// In this case, you could fallback to the old bootstrapping mechanism
// available in the [login to view URL] package
}
}