Hi

I'm trying to grab the form data being posted by a web page hosted in
my application, but I always seem to end up with nothing. For example,
my html page has the following:

<form action="http://myesrver.com/testpost"; method="post">
<input type="checkbox" value="my_very_first_checkbox">
<input type="submit" value="Test">
</form>

When I press the 'submit' button, I correctly receive the
BeforeNavigate2 event, but when I try to access the VARIANT PostData,
it always ends up empty. I tried both the MS sample test, which was

if (V_VT(vtPostedData) & VT_ARRAY)

and the one I found earlier in this newsgroup

if( PostData && PostData->vt == (VT_VARIANT|VT_BYREF) &&
PostData->pvarVal->vt != VT_EMPTY)

where PostData is of type VARIANT*.

Both tests consistently fail -- does anyone know why this is
happening? Is there some other way to get the data from the form
besides the BeforeNavigate2 event? I assume at some point Mozilla has
to construct the string it sends to the server - even if I could grab
that I could parse and use the information there.

I did find a reference to this
http://bugzilla.mozilla.org/show_bug.cgi?id=24213 but I'm not sure if
it still applies as it's a few years old.

TIA for any information on this.
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to