ACF and Vimeo Upload - javascript

I used plugin for https://bitbucket.org/jupitercow/acf-vimeo-uploader-field/src/master/ and unfortunelly it stopped working. Now "Select file" button doesn't make any action. API looks good. Console doesn't display any errors. Variables from JS return correct results. Do you have any ideas?
I would be grateful for any help.

See the last two issues:
It's a plugin bug, so you won't do much about it, unless you're programmer yourself. I'd suggest waiting for the author to fix it, or find a way to reach your goal without the need of having Vimeo upload field.

Related

How to execute invisible captcha

I work with browser automation tool,
I have a problem I get the solution of the captcha but I can not execute the button, the button is invisible, someone may know how to execute it
I tried to use a few things to make it execute:
document.getElementsByClassName("button-submit button").submit();
document.getElementsByClassName("button-submit button").onclick();
and a few more
In addition I tried to use a plugin called anycaptcha (https://anycaptcha.com/)
document.getElementById('anycaptchaSolveButton').onclick('Token');
I inserted the captcha solution to where I was supposed to insert (* token) and it still did not work for me, I do not know if I did the commands correctly or did execute the wrong thing, I would be happy to help
I tried to do it with form as well and send and still did not work for me.
Form:
Button-submit button:
I'm trying to do it to discord does anyone know how to execute it?

web qr-code scanner usage nimiq qr-scanner github

I tried to using this qr-scanner https://github.com/nimiq/qr-scanner
which works good but I don't get it to use the reading information. For example it displays me an URL fine but nothing more, cannot click on the displaying link, cannot safe it, cannot use it. Would be fine to get an auto redirect.
Maybe someone can help me to get next steps with this.
Thanks

How to use the JavaScript Enhancement plugin in Sublime Text 3

I installed JavaScript Enhancement through Package Control.
Does it need to be activated first from somewhere before being able to use it?
Nope, no need to activate anything.
Just create a new JavaScript file and you'll notice its features are working.
Make sure your file is treated as JavaScript. You can check by looking at the bottom right corner. "JavaScript" should be selected.
I also could not get auto completion suggestion or any pop up while typing in sublime. I have tried several pluggins: all autocompletion, javascript enhancement. But nothing worked. So after reading some answer, I installed sublimeCodeIntel. I don't know why but only this plugging can give me the autocompletion popup.
So you can give it a try.

Coda Slider not displaying images during animation

I got a Coda Slider working retrieving data from posts, but now that I've installed other plugins to the site it started failing to display images while the transition is taking place.
http://poesis.savvy-studio.net/
I know that it might be a javascript conflict but I dont know where to start, hope you guys might know where to look at.
Thank you in advance!
Firstly you need to identify which plugin is conflicting, this is just a trial and error process, remove them one at a time until you get results.
I am going to assume you are getting no console errors at this point so the best thing you can do is pin down the plugin then look for more specific information. Currently your question is extremely vague...

Perl Using WWW::Mechanize to set a radio button that has no value

I have to say I am new to Perl, maybe made about 3 or 4 scripts so far, and I find Perl decently easy to understand and use.
Anyways, I have a problem with my current script. I have been stuck on this problem for a while and just can't seem to find a fix for it.
After traversing a certain website I come to a page that has me click between two radio buttons and hit a download button.
I need to get my script to select either button and hit download, but the source of the page does not give me a value to set the radio button to when using WWW::Mechanize.
Here is a little bit of the web page source.
<input type='radio' onclick="url('URL GOES HERE')">
That is pretty much it for the two buttons. I noticed that when I did choose one and looked at the source, the code changes to
<input type='radio' checked onclick="url('URL GOES HERE')">
Yet I can't have WWW::Mechanize set one automatically because I have no idea what to put in the value. I have tried on, checked, onclick, true, checked onclick, select, selected, but to no avail.
Here is the line of code that pertains to this
$mech->set_visible([radio => 'checked onclick']);
Any help would be appreciated, first time here as well.
I forgot to mention that I am working with a computer at work that has a lot of restrictions for now. So I can't get Firefox or Selenium Server on the computer.
Edit
I believe the problem that I might be having also is that this stuff might be in JavaScript. I don't have much knowledge in HTML but the source code looked like it was until I saw JavaScript somewhere in the heading? Anyways, I remembered that WWW::Mechanize doesn't really support JavaScript and so maybe this is the problem.
Thanks for the replies guys, I really appreciated it. But after a ton of digging around and careful inspection, my boss and I sort of realized that all the download links are very similar, and all I really need to do is make the script custom create the links to the downloads instead of going through the hassle of taversing multiple web pages. Wish I saw this sooner.
HTML::Form does not offer an API to activate unnamed radio buttons. You can read the distinguishing attribute by digging into the innards. This should work (mostly untested):
use WWW::Mechanize qw();
my $w = WWW::Mechanize->new;
$w->get('file:///tmp/so11767998.html');
for my $input (($w->forms)[0]->inputs) {
$input->check if q{url('URL GOES HERE')} eq $input->{onclick}
}
You need to find what's happens after you select your radio button in the browser GUI. There are two ways for this:
you can check url() Javascript subroutine
or you can record your browser request after you submit target form.
I recommend to use Firefox's HTTPFox extension for this. So you just select you input, start the session in HTTPFox and submit the form. Next you check what data was POSTed (or GETed) and just replicate same fields
in your Mechanize script. Something like:
$mech->submit_form(
form_name => "form_name",
fields => {
input1_name => "value1",
input2_name => "value2",
.....
},
);
I had this issue too , and resolved it by calling a Javascript to click Radio Button.
$mech->eval_in_page('document.getElementById("id_radiobutton").checked = true;');
This worked for me.

Categories