How to send a click to Submit button belong to post form?

2005-03-03 Thread Tomasz Pyra
How to send a click to Submit button ( input type=submit ) ?
When I use a:
nsCOMPtrnsIDOMHTMLInputElementformElement(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
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


vb activx cookie?

2005-03-03 Thread Pedro da Costa
Hi @ averyvone
I startet an vb  Project and received through the embeded mozilla Actvix
control my frist webpage.
So far so good, but i don't get, how I can enable Cookies for the Page.
I want to reuse the Cookie, that was set by firefox for further exploring
the webpage.
I hope someone can give me a hint, what to do.
mfGr ;)


___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


Re: XULRunner building

2005-03-03 Thread Eugene Prokopiev
2) export LD_LIBRARY_PATH=objdir/dist/bin into your environment and 
rebuild.

Where is objdir in this case?

If you built with a MOZ_OBJDIR, then it is the directory you specified. 
Otherwise, it is the same as your source directory.
I used
LD_LIBRARY_PATH=./dist/bin gmake -f client.mk build
instead of
gmake -f client.mk build
Current directory has this content:
$ ls
accessible   config.log editor  lib   nsprpub 
  toolkit
aclocal.m4   config.status  embedding   LICENSE 
other-licenses  tools
allmakefiles.sh  configure  extensions  load.sh   parser 
  unallmakefiles
buildconfigure.in   gc  mailnews  plugin 
  uriloader
build.sh contentgfx Makefile  profile 
  view
calendar CVSintlMakefile.in   rdf 
  webshell
caps db ipc makefile.win  README 
  widget
chrome   dbmjpegmodules   README.txt 
 xpcom
client.mak   directory  js  mozilla   security 
  xpfe
client.mkdist   l10nmozilla-config.h  storage 
  xpinstall
config   docshell   layout  netwerk   sun-java 
  xulrunner
config.cache domLEGAL   nglayout.mk   themes

But result was the same. Where is my error?
___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


Re: How to send a click to Submit button belong to post form?

2005-03-03 Thread Tomasz Pyra
Tomasz Pyra napisa(a):
How to send a click to Submit button ( input type=submit ) ?

I tried to submit form in third way:
I took nsIDOMHTMLFormElement, and called method Submit().
Result was just like before - no data was sent to server.

nsIDOMHTMLFormElement * form;
inputElement-GetForm(form);
form-Submit();
___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


Re: How to send a click to Submit button belong to post form?

2005-03-03 Thread Boris Zbarsky
Tomasz Pyra wrote:
I took nsIDOMHTMLFormElement, and called method Submit().
Result was just like before - no data was sent to server.
What does the form tag look like?
-Boris
___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


I got following linker error when build MFCEmbed example

2005-03-03 Thread CHEN Benfeng
Hi,

I am trying to build the MFCembed example using Visual C++.Net 2003 under 
WinXP. And I got the below linker errors. The problem is mainly about 
nsString and nsSubString.

In fact, there are a lot of places using nsString. But only this function 
ReplaceChar will cause linker error.
Why ?

Thanks a lot.

---Copy of the error message 
Linking...
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other 
libs; use /NODEFAULTLIB:library
BrowserView.obj : error LNK2019: unresolved external symbol 
__declspec(dllimport) public: void __thiscall 
nsString::ReplaceChar(wchar_t,wchar_t) 
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function protected: 
void __thiscall CBrowserView::OnFileSaveAs(void) 
([EMAIL PROTECTED]@@IAEXXZ)
BrowserView.obj : error LNK2019: unresolved external symbol 
__declspec(dllimport) public: void __thiscall nsSubstring::Replace(unsigned 
int,unsigned int,wchar_t const *,unsigned int) 
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function public: 
void __thiscall nsSubstring::Append(wchar_t const *,unsigned int) 
([EMAIL PROTECTED]@@[EMAIL PROTECTED])
BrowserView.obj : error LNK2001: unresolved external symbol 
__declspec(dllimport) public: static wchar_t const * const 
nsCharTraitswchar_t::sEmptyBuffer 
([EMAIL PROTECTED]@_W@@2PB_WB)
BrowserFrameGlue.obj : error LNK2001: unresolved external symbol 
__declspec(dllimport) public: static wchar_t const * const 
nsCharTraitswchar_t::sEmptyBuffer 
([EMAIL PROTECTED]@_W@@2PB_WB)
BrowserView.obj : error LNK2019: unresolved external symbol 
__declspec(dllimport) public: void __thiscall nsSubstring::Assign(wchar_t 
const *,unsigned int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced 
in function public: __thiscall nsAutoString::nsAutoString(wchar_t const 
*,unsigned int) (??0nsAutoString@@[EMAIL PROTECTED]@Z)
BrowserFrameGlue.obj : error LNK2001: unresolved external symbol 
__declspec(dllimport) public: void __thiscall nsSubstring::Assign(wchar_t 
const *,unsigned int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
BrowserView.obj : error LNK2019: unresolved external symbol 
__declspec(dllimport) public: void __thiscall nsSubstring::Adopt(wchar_t 
*,unsigned int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in 
function public: __thiscall nsGetterCopies::~nsGetterCopies(void) 
(??1nsGetterCopies@@[EMAIL PROTECTED])
BrowserFrameGlue.obj : error LNK2019: unresolved external symbol 
__declspec(dllimport) wchar_t * __cdecl ToNewUnicode(class nsAString const 
) (__imp_?ToNewUnicode@@YAPA_WABVnsAString@@@Z) referenced in function 
public: virtual void __thiscall 
CBrowserFrame::BrowserFrameGlueObj::GetBrowserFrameTitle(wchar_t * *) 
([EMAIL PROTECTED]@CBrowserFrame@@[EMAIL PROTECTED])
Debug/vtidy.exe : fatal error LNK1120: 6 unresolved externals


___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


Re: How to send a click to Submit button belong to post form?

2005-03-03 Thread Tomasz Pyra
Boris Zbarsky napisa(a):
Tomasz Pyra wrote:
I took nsIDOMHTMLFormElement, and called method Submit().
Result was just like before - no data was sent to server.

What does the form tag look like?
-Boris
form name=wyszukaj action=/indeksik.php3?menu2=11zapytanie=11,45 
method=post

So it is not clean post method, because menu2=11zapytanie=11,45 are 
part of url and it's send by get method.

You can see it on url: http://www.uml.lodz.pl/
At right side there is textfield, and submit button called 'szukaj', it 
is simple search engine.

You can try it by enter a word wybory, and engine will find 2 records.
When you left textfield empty, and click this 'szukaj' button, engine 
will find 3671 records.

When I enter something (i.e. wybory) into texfield, then I use one of 
three methods described earlier to send a form, I am always redirected 
to results page with 3671 records, so I think that the data from 
texfield are not send.

When I click that button simply by the mouse it works.
___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


Re: How to send a click to Submit button belong to post form?

2005-03-03 Thread Boris Zbarsky
The following testcase worksforme:
html
form name=wyszukaj 
action=http://www.uml.lodz.pl/indeksik.php3?menu2=11zapytanie=11,\
45 method=post
  input size=10 name=szukaj value=wyborynbsp;nbsp;input type=submit
   value=Szukaj
/form
script
function foo() {
  document.getElementsByTagName(input)[1].click();
}
/script

input type=button onclick=foo() value=Click here to call click()
/html
So what's special about this page that makes it fail, exactly?  Could the 
mis-nesting of the form in a table be a problem?

-Boris
___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


Re: How to send a click to Submit button belong to post form?

2005-03-03 Thread Boris Zbarsky
Actually, this worksforme as well:
html
table
form name=wyszukaj 
action=http://www.uml.lodz.pl/indeksik.php3?menu2=11zapytanie=11,\
45 method=post
  trtdinput size=10 name=szukaj value=wyborynbsp;nbsp;input 
type=submit \
value=Szukaj/td/tr
/form
/table
script
function foo() {
  document.getElementsByTagName(input)[1].click();
}
/script

input type=button onclick=foo() value=Click here to call click()
/html
So does copying the form off the site...
Do you have a testcase actually showing the problem?
-Boris
___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


Re: I got following linker error when build MFCEmbed example

2005-03-03 Thread CHEN Benfeng
I identified the problem.
Just to change  the Project Setting:  Properties|C/C++|Language|Treat 
wchar_t as Built-in Type -- No.


CHEN Benfeng [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi,

 I am trying to build the MFCembed example using Visual C++.Net 2003 
 under WinXP. And I got the below linker errors. The problem is mainly 
 about nsString and nsSubString.

 In fact, there are a lot of places using nsString. But only this function 
 ReplaceChar will cause linker error.
 Why ?

 Thanks a lot.

 ---Copy of the error message 
 Linking...
 LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other 
 libs; use /NODEFAULTLIB:library
 BrowserView.obj : error LNK2019: unresolved external symbol 
 __declspec(dllimport) public: void __thiscall 
 nsString::ReplaceChar(wchar_t,wchar_t) 
 ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function 
 protected: void __thiscall CBrowserView::OnFileSaveAs(void) 
 ([EMAIL PROTECTED]@@IAEXXZ)
 BrowserView.obj : error LNK2019: unresolved external symbol 
 __declspec(dllimport) public: void __thiscall 
 nsSubstring::Replace(unsigned int,unsigned int,wchar_t const *,unsigned 
 int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function 
 public: void __thiscall nsSubstring::Append(wchar_t const *,unsigned 
 int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
 BrowserView.obj : error LNK2001: unresolved external symbol 
 __declspec(dllimport) public: static wchar_t const * const 
 nsCharTraitswchar_t::sEmptyBuffer 
 ([EMAIL PROTECTED]@_W@@2PB_WB)
 BrowserFrameGlue.obj : error LNK2001: unresolved external symbol 
 __declspec(dllimport) public: static wchar_t const * const 
 nsCharTraitswchar_t::sEmptyBuffer 
 ([EMAIL PROTECTED]@_W@@2PB_WB)
 BrowserView.obj : error LNK2019: unresolved external symbol 
 __declspec(dllimport) public: void __thiscall nsSubstring::Assign(wchar_t 
 const *,unsigned int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced 
 in function public: __thiscall nsAutoString::nsAutoString(wchar_t const 
 *,unsigned int) (??0nsAutoString@@[EMAIL PROTECTED]@Z)
 BrowserFrameGlue.obj : error LNK2001: unresolved external symbol 
 __declspec(dllimport) public: void __thiscall nsSubstring::Assign(wchar_t 
 const *,unsigned int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED])
 BrowserView.obj : error LNK2019: unresolved external symbol 
 __declspec(dllimport) public: void __thiscall nsSubstring::Adopt(wchar_t 
 *,unsigned int) ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in 
 function public: __thiscall nsGetterCopies::~nsGetterCopies(void) 
 (??1nsGetterCopies@@[EMAIL PROTECTED])
 BrowserFrameGlue.obj : error LNK2019: unresolved external symbol 
 __declspec(dllimport) wchar_t * __cdecl ToNewUnicode(class nsAString 
 const ) (__imp_?ToNewUnicode@@YAPA_WABVnsAString@@@Z) referenced in 
 function public: virtual void __thiscall 
 CBrowserFrame::BrowserFrameGlueObj::GetBrowserFrameTitle(wchar_t * *) 
 ([EMAIL PROTECTED]@CBrowserFrame@@[EMAIL PROTECTED])
 Debug/vtidy.exe : fatal error LNK1120: 6 unresolved externals

 


___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding


Proposed freeze for nsIWebNavigationInfo interface

2005-03-03 Thread Boris Zbarsky
I'd like to work on freezing the (somewhat new) nsIWebNavigationInfo interface 
for 1.8.

The interface is at 
http://lxr.mozilla.org/seamonkey/source/docshell/base/nsIWebNavigationInfo.idl 
and I would very much appreciate feedback from embeddors on it (since this is 
primarily designed to be an interface for embeddors to query the capabilities of 
a Gecko instance).

Thanks,
-Boris
___
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding