Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vimium - unable to click javascript buttons #4603

Open
sasank89 opened this issue Jan 7, 2025 · 4 comments
Open

Vimium - unable to click javascript buttons #4603

sasank89 opened this issue Jan 7, 2025 · 4 comments

Comments

@sasank89
Copy link

sasank89 commented Jan 7, 2025

On a web page with a form, the "submit" button has the link -
WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$cphMainBody$lbSubmit", "", true, "", "", false, true))

This gets highlighted by Vimium on pressing the 'f' key. But, it doesn't do any action on using that key. On Vimium 2.1.2, chrome 131.

Tried checking all the online solutions, but unable to find an answer why. Thank you for your help on this.

@philg-dev
Copy link

Is there any chance you could link that page? Without further information, it's going to be difficult to analyze the situation properly.

A quick google search brought up that this is something that ASP.NET seems to generate. I'm personally not familiar with that framework, so any additional information you can provide would be helpful.

@philg-dev
Copy link

Also a quick test on jsfiddle showed on my end that Vimium is definitely capable of detecting and clicking buttons with onclick=javascript:... even though the usage of javascript: URLs is highly discouraged. So it is definitely not a general problem in that regard.

See MDN about javascript URLs

Tiny JS Fiddle Demo:
https://jsfiddle.net/7p5aL8rz/7/

@sasank89
Copy link
Author

sasank89 commented Jan 8, 2025

Thank you for looking into this so quickly. You are correct in the ASP.NET. The web page ends in .aspx. Unfortunately, the page is behind a login page.

I extracted the HTML code from the page source, the parts which pertain to the elements in question. I have removed some of the copyright text from within it, but the HTML code is otherwise intact. The lines in question are on line 108 and 109. In the rest of the file, there are other similar javascript:WebForm_ links. All of them are not able to be clicked by vimium.

extract_vimium.md

Hope this helps. Please let me know if I can provide any more information. Thank you so much for this extension!

@philg-dev
Copy link

Just to clarify: I'm not the Vimium author - I'm just a user trying to help out to my best ability.

Unfortunately I'm kinda at my whit's end with your issue. As I'm not familiar enough with the ASP.NET tech stack and I don't know any sites that use it in the same way as the website in question. As long as I can't easily reproduce the issue, I can't try to debug it efficiently - I'm sorry.

Maybe somebody else is able to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants