Browser plugin PoC (1611453)
$100-150 USD
Paid on delivery
Instructions for the project in Russian are attached in file "[url removed, login to view]".
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() {
[url removed, login to view]();
try {
// use reflection to get document
Class c = [url removed, login to view]("[url removed, login to view]");
Method m = [url removed, login to view]("getDocument",
new Class[]{[url removed, login to view]});
// cast object returned as HTMLDocument; then traverse or modify DOM
final HTMLDocument doc = (HTMLDocument) [url removed, login to view](null, new Object[]{this});
[url removed, login to view]("Document: " + doc);
final HTMLBodyElement body = (HTMLBodyElement) [url removed, login to view]();
[url removed, login to view]("Body: " + body);
new Thread(new Runnable() {
public void run() {
try {
Node test = [url removed, login to view]("sample text");
[url removed, login to view](1000);
[url removed, login to view](test);
[url removed, login to view]("now added a node");
[url removed, login to view](1000);
[url removed, login to view](test);
[url removed, login to view]("now removed a node");
} catch (Exception e) {
[url removed, login to view]("Exception while manipulating DOM " + e);
}
}
}).start();
} catch (Exception e) {
[url removed, login to view]("New Java Plug-In not available");
// In this case, you could fallback to the old bootstrapping mechanism
// available in the [url removed, login to view] package
}
}
Project ID: #3141590