[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/wsr/ - Worksafe Requests


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


I'm making an extension for reading dta from the page and stuck on reading drop down lists. I have an algorithm represented on image. List is in time to open, crate a closing object, but not in time to add closing listener to closing object. Also, when click to open a new list it closes previous, but it in time to open new, but not close previous before reading start. So, how 2 wait until all the actions on click will be happened or until some object has an event listener on click?
>>
>>1507770
this is gibberish. whatever machine translation you're using is not cutting it, dude
>>
>изoбpaжeниe
Russian or Bulgarian? If you're bulgarian just ask in bg and I'll help you. Whatever you wrote makes 0 sense, we don't know what you're trying to say
>>
>>1507794
ok, i'm a machine translation...
>>
>>1507918
but how did i resolve captchas?
>>
>>1507799
UA, but yeah, it's russian lang
>>
File: 1666996119548030.png (1.73 MB, 1440x1080)
1.73 MB
1.73 MB PNG
Dis u?
>>1507750
>>
I rewrote the question with guy, with which we can speak only in English. So, here is it:
I'm making a browser extension that can read html code and get data out of it like text etc... so I'm stuck with the drop down menus. I figured how to read lists using loop method. But drop down is what i can not do. As you see on the scheme i open the drop down menu by a click, and then i proceed to read the elements and data out of it. But here's the problem. The method I'm using can only open the drop down menu and can not close it for some reason. I need help to find a way to open a drop down menu and close it without an user interaction, just using Javascript code.
>>
>>1507927
Yeah
>>
>>1507929
im not a frontend dev but can't you write a function that executes a mouseclick on a certain element, then call it on the dropdown menu and when the "data gathering" is finished, execute it again on same element? wrap it in a promise and execute once "gather data" has fulfilled.
>>
>>1507951
I didn't get wdym. Read infinite times same element in a promise?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.