Hello,
I develop a dll in c++ which simulate the mouse and keyboard actions for the web pages. In many situations its works fine, but there is two situations where it doesn't work with a mozilla blocking : - Submiting a form - clicking on a button
Here there are the crash situations: ( 1/ and 2/ for all form with a post methode, and for all xul button for the 3/) 1/ nsIDOMHTMLFormElement pFormElement = .... if(!pFormElement) return false; pHtmlFormElement->Submit();
2/ nsIDOMHTMLInputElement pInputElement = .... if(!pInputElement) return false; pInputElement->Click();
3/ nsIDOMXULElement pXulElement = .... if(!pXulElement) return false; pXulElement->Click();
Paradoxically for the checkbox buttons and radio buttons, it work fine with the same methode. This nsIDOMHTMLInputElement pcheckboxElement = .... if(!pcheckboxElement) return false; pcheckboxElement->SetCheched(true);
This many situations (xul, form and button) leave me to conclude that there is a probleme to validate the mozilla web pages. Nevertheless i try to execute the same code in javascript, and it's works fine in all cases ! So, is there a bug in the c++ functions to evoke it ?
Thank for your help ! :)
Hello
this is a problem with postdata ,
in src > mozilla\embedding\browser\activex\src\control\WebBrowserContainer.cpp
i found on line 712 this:
// TODO get the post data passed in via the original call to Navigate()
you must find a otherway example url?fieldname1=value1&fieldname2=value2... from the forms _______________________________________________ mozilla-embedding mailing list mozilla-embedding@mozilla.org http://mail.mozilla.org/listinfo/mozilla-embedding