Call a javascript function via vb.net in a webbrowser control



Hi!

Since you could help me fixing my last problem, I would like to demand
your help again.

In summary I'm writing an appliation that remotely controls a website.
It has to login (works), choose the right action (works) and put customer
data (works partially)in some fields.

Now some of these fields are being checked via javascript functions. For
example: is the account and the banking code correct?
This function is called in different ways, for example via the onblur
event of the input type in the html form.

How can I call these functions since a simple webbrowser.GetElementById
("inputid").SetAttribute("value",sAccountNo) won't call the onblur event?
I tried

Me.WebBrowser1.Document.GetElementById("customerForm").InvokeMember
("Blur")
or
Me.WebBrowser1.Document.GetElementById("customerForm").InvokeMember
("Change")
or

Me.WebBrowser1.Document.Forms.Item("customerForm").InvokeMember
(nameofthejsfunction)

but nothing works.


the call of the function is similar to this:

fieldChanged('bankAccountPaymentForm');;return;;A4J.AJAX.Submit
('customerForm:bankAccountPaymentForm:BankPaymentRegion','customerForm',e
vent,{'parameters':{'customerForm:bankAccountPaymentForm:
_id548':'customerForm:bankAccountPaymentForm:_id548'}
,'actionUrl':'/OEWeb/pages/newOrder.jsf'} )

the website is realisied by JavaServerFaces if this could have any
meaning.

Hope you can help me again
Greetings from Germany,
André
.



Relevant Pages

  • Re: useful tips on how to write your C codes more efficiently
    ... > I'm writing some C codes to run simulations. ... isolate as much as possible. ... > you wish to put some information in an array, ... I'm wondering if anybody knows of a website that may contain ...
    (comp.lang.c)
  • Re: A Proposal for rmmga08
    ... well then I'll end up writing a song all ... people will be inspired to jump in and record their own version of the ... since I already have the website http://www.rmmga08.com - ...
    (rec.music.makers.guitar.acoustic)
  • Re: Blackwater Questions
    ... Scarey stuff. ... book about Blackwater - "The Rise of the World?s Most Powerful ... numerous interviews with and writing by him can be found ... read at Schahill's own rebelreports.com website ...
    (soc.senior.issues)
  • Re: Effects of Magic
    ... someone here volunteer to give the first four scenes of the S&E ... one person it mattered) that I just want to improve my writing, ... But, well, website is website. ...
    (rec.arts.sf.composition)
  • User Administration in ASP.NET 2.0
    ... Im currently writing a website which utilizes the built in user ... My users login via the included login control and everything works ... I know that this can be done via the admin console when in Visual ...
    (microsoft.public.dotnet.framework.aspnet)