Welcome Guest Search | Active Topics | Sign In | Register

Dynamic comboboxes Options
lolikols
Posted: Friday, September 4, 2020 10:56:23 PM
Rank: Newbie
Groups: Member

Joined: 9/3/2020
Posts: 2
I am working on an application that can fill out a form automatically. The issue I am having is that there are two comboboxes on the webpage.
Combobox1 has items that change depending on what is selected in Combobox2.
Combobox2 has items.

If I were to manually select an item in Combobox2, a loading gif pops up on the page, and once finished, Combobox1 has new items. This is the desired result.

If I select an item in Combobox2 through code, no loading gif pops up, and Combobox1 still has the old items even though a Combobox2 item has been successfully selected. This is my code:

eoBrowserWV.EvalScript("frames['main'].document.getElementById('combobox1').value='" + stringItem1 + "';");

How do I adjust this code so that Combobox1 refreshes with the new items?

I am using Visual Studio 2019 Winforms.
eo_support
Posted: Saturday, September 5, 2020 11:00:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

You need to do this with JavaScript and already mentioned previously, we do not provide support on JavaScript programming. As a general rule, anything occurs inside your web page is part of your page and you will need to do with the web page's programming language --- JavaScript. We only provide the means to run the JavaScript code (EvalScript). You are responsible for the JavaScript code yourself.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.