Jump to content

Tricky javascript/CSS/jQuery for mouse click simulation needed


pstein

Recommended Posts

Lets start with a (german) sample webpage which shows some data information:

https://www.wikifolio.com/de/de/wikifolio/futecus

Now when user click on a "+" sign right of one of the grey bars in the mid (e.g. right of "Aktuelles Portfolio")
then the content inside this section is expanded.

Unfortunately I cannot tell the webpage to always automatically expand this section when it is loaded.

So I need some javascript/CSS/jQuery statements in a Greasemonkey script to emulation/simulate such a mouse click.

Have a look at the following snapshot of Firebug inside Firefox:

http://postimg.org/image/mlcjwdnh7/

You can see yellow hightlighted parameters which change when users click on the "+" and toogle expansion status.

 

How can I emulate/simulate these changes (=a mouse click) with Javascript/CSS?

 

Peter

Edited by pstein
Link to comment
Share on other sites

@justsomeguy:

 

Thank you for the answer.

 

But: What excatly is a click handler?

 

The element in focus looks like:

 

<i class="ieon-expand accordion-icon pull-right"></i>

 

What is the corresponding click handler?

 

How do I execute such a click method from JavaScript?

 

Peter

Edited by pstein
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...