PDA

View Full Version : [CLOSED] button with href (hyperlink) not open hyperlink when fireEvent('click') is called



supera
Mar 06, 2013, 1:39 PM

Daniil
Mar 06, 2013, 3:11 PM
Hi @supera,

The fireEvent doesn't simulate a user click. Generally, it just executes an event's listeners defined by a developer or inside the framework.

I would try it.

btn.el.down("a").dom.click();

supera
Mar 06, 2013, 4:09 PM
Daniil! Works very fine.
thanks a lot for your help!

Daniil
Feb 02, 2015, 5:32 AM
From some point a Button's el became <a> itself. Please use:

btn.el.dom.click();

Here is a related post.
http://forums.ext.net/showthread.php?52792&p=242472&viewfull=1#post242472