Hi!
I'm trying to write a simple application that takes a xul file and
starts the loop.
But i want to listen to the events from the DOM like a mouse pressed or
when the button is pushed.
What I've done:
watcher->OpenWindow(nsnull,"chrome://pgcd/content/pgcd/pgcd.xul",
nsnull,"chrome,centerscreen",nsnull,
getter_AddRefs(domwindow));
watcher->GetActiveWindow(getter_AddRefs(domwindow));
app->Run();
It opens the window and display the content of the xul file.
But i can't parse the DOM and get the value of the textbox, because i
guess domwindow is empty before the Run.
What should i use to get the DOM and modify it at will after the
application is started? and how?
I want to get the value of the two textbox, do the computing in C++ or
O'Caml and write the result in another textbox, all this when the user
press the button.
Any idea that may help?
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom