How to send a "click" to Submit button ( <input type="submit"> ) ?


When I use a:

nsCOMPtr<nsIDOMHTMLInputElement>formElement(do_QueryInterface(formNode.GetCurrent(),&rv));

formElement->Click();

(formNode.GetCurrent() returns nsIDOMNode, of that <input> tag.)



Or other way, that I tried:
        
mouseEvt->InitMouseEvent(NS_LITERAL_STRING("click"),PR_TRUE,PR_TRUE,view,1,1,1,1,1,PR_FALSE,PR_FALSE,PR_FALSE,PR_FALSE,0,nsnull);



Every works fine, but only when form method is "get".
When form sending data using "post", no data is send - browser jumping to target url, but behaviour is just like no other form element was filled.


When I click submit button by mouse it works.


It is my second post with that problem, but now I know some more details. _______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to