|
Rank: Member Groups: Member
Joined: 4/17/2016 Posts: 11
|
Hi,
We are observing a behavior where LoadCompleted fired multiple times after submitting any form on a web page. I wish, I could make a test project and share it with you but it is a shopping cart and moment we submit the payment, LoadCompleted fires multiple times and hence we get double charged on Credit Card. :(.
Please advise what can be done. Following is the sequence of events.
1. Select an item in specific store online.
2. Add to Cart
3. Make Payment.
But LoadCompleted fires multiple time and orders get processed multiple times.
You quick response will be highly appreciated.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, LoadCompleted will be fired multiple times if you have initialized additional request during the reloading process. You can check the Url property of the LoadCompleted event argument to see if other requests are involved. For a single request, there should be a single LoadCompleted event. If you only have a single request but you are receiving multiple LoadCompleted events, then please try to isolate the problem into a test project and send the test project to us: http://www.essentialobjects.com/forum/test_project.aspxOnce we have that we will investigate further. Thanks!
|
|
Rank: Member Groups: Member
Joined: 4/17/2016 Posts: 11
|
Thanks for your reply,
As i said i can't give you the project as it involves credit card submission. :(.
Yes, I have confirmed that LoadCompleted fired multiple times with same Url property. I can generate a log for you for all LoadComplete events with their Urls.
We don't set Url property of webView, we only submit form using jquery, i.e. click even of any html element.
Here is the Code.
private void eoWebView_LoadCompleted(object sender, EO.WebBrowser.LoadCompletedEventArgs e) { for (; ; ) { if (eoWebView.IsLoading == true) { System.IO.File.AppendAllText("C:\\Temp\\KittOrders.txt", DateTime.Now.ToString() + " - " + eoWebView.Url.ToString() + " - " + "Still Loading" + Environment.NewLine + Environment.NewLine); } else { System.IO.File.AppendAllText("C:\\Temp\\KittOrders.txt", DateTime.Now.ToString() + " - " + eoWebView.Url.ToString() + " - " + "Loading Complete" + Environment.NewLine + Environment.NewLine); break; }
EO.WebBrowser.WebView.DoEvents(1000); }
I will be creating project with the log file seperately
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You need to isolate the problem into a test project, this is not your real project. We have no way of knowing what's happening in your application unless we have something that we can use to reproduce the problem.
Thanks!
|
|