Captcha Code questions regarding iMacros - javascript

So I've Googled up a few links on how to auto type in Captcha Codes using iMacros.
Here are the following links I've tried:
http://www.beatcaptchas.com/imacroscode.html
http://karmaproject.co.uk/how-to-solve-captcha-with-deathbycaptcha-in-imacros/
Both of them did not work the problem is that I'm getting after I open a new tab it takes me to this link. Then what happens is it says "-1".
So when I go to the extract part, it doesn't do anything and in the end, it doesn't enter the code.
So here are my questions:
How exactly does the extracting work?
Is it possible if I can manually save my own Captcha codes? There aren't a lot of them in the website I'm playing/using. How would I get to extract them properly if that was the case?

you are using wrong captcha submission link.
here is correct one:
http://api.deathbycaptcha.com/decaptcher?function=picture2&print_format=html
in this link you need to insert your deathbycaptcha username and password, select saved captcha image and click send.
if submission is ok you will get responce with result which you can scrape from the page.

Related

Autofill by Selector not working on all Pages

Normally, i Login to formbased login pages by executing the following:
cefsharp_browser.ExecuteScriptAsyncWhenPageLoaded("document.querySelector('#input-email').value='myemail#test.com';");
cefsharp_browser.ExecuteScriptAsyncWhenPageLoaded("document.querySelector('#input-password').value='mysupersecretpassword';");
But now i´m actually struggeling to login to a Page(https://lagerimgriff.app/login) on which the code above doesn´t work.
The Form is beeing filled with the Values shown above but injecting the Values that way or by ID, the Login-Form doesn´t realize any input, saying the field beeing empty.
I´m not a WebDev but it seems to me that there is some intermediate JS which is checking the Fields for validity(f.e. the mail must contain # followed by a . ), maybe that is the Problem?
As this seems to be JS related i´ll tag it too.
Is there any way of archieving an automated login on that Page?

User account creation and validation (BigCommerce)

I'm having a little trouble with my account creation form.
first of all, my site is on 'BigCommerce', but they can't help me because i changed the design and they don't deal with design related issues.
The problem is like this:
If I fill every textbox with the right information and click submit, everything is just OK. I'm getting transferred to the 'Thank you' page, the new user is added and everything is just fine.
But, If I type something like a wrong E-mail address, Two not-matching passwords, leave some text box blank or something like that and click submit, the form is all blank and I have to start filling the details all over again.
second, I'm getting redirected to another page (with a new and empty form), and the error is written on the top on the form, instead of getting a pop-up message with what's wrong on the same page.
so.. this is the account creation page:
​
http://pastebin.com/pB5mrbtf
​
and the javascript code its redirecting to
http://pastebin.com/gLw5WCEQ
Please help
remove the autocomplete="off" for your text removing issue and for others pls attach jsfiddle link.
Also keep your old id's and class's for validation, otherwise you need to update your js file functions also. please provide jsfiddle link

My form isn't sending visitors to the right page

The page is here:
http://bluebeam.com/us/trials/punch/
It's supposed to send visitors to a download page after it's filled out but it's not. They still get an email confirmation after they fill it out but they aren't sent to a new page.
I don't know enough about javascript to trouble shoot this issue.
Anyone know why they aren't being redirected?
Thanks!
Hrmn. I don't know if this is javascript related, but your form action says it goes to index.asp?src=99. You might want to put a different page that says download and have your code their to download and then redirect back to index.
And/or you might want to edit your question and add code fragments or other stuff to pinpoint where you might think the problem is.

Javascript submit won't work on server?

I have the oddest bug. I have a simple html form. You can see it here:
http://www.learndoearn.org/almost_real_products/food_services.html
This form is just for demonstration purposes only. It doesn't really submit to anywhere. All I want it to do is validate a few fields and if those fields are filled in, redirect the user to a thank you page. This works fine if you physically click on the html file to open it, HOWEVER...if you try to access this html page via the domain name (as seen in the link above), clicking the submit button (once all necessary fields are filled in) doesn't work. It simply doesn't do anything.
The redirection to the thank you page occurs in this file:
http://www.learndoearn.org/almost_real_products/js/forms.js (it's about halfway down the js file where it says window.location = "http://www.learndoearn.org/almost_real_products/thanks.html";
Any idea what I'm doing wrong?
Thanks
The link you have provided to the ajax call "bin/MailHandler.php" is returning a 405 error. Due to this the success function is not being run and the redirect does not take place.
Modify your php file to return success irrespective of the input if its a dummy and it should all work fine.

Sharepoint: Submit form data from Edit form and then redirect to display form

This is for a custom Editform.aspx being used to submit data to a custom list. Once the user completes the form, he should be able to hit a button or even the OK button, and have sharepoint submit the form data to the list, then redirect to the items Display form (dispform.aspx?ID='itemid').
I was able to get the ID of the current item by manipulating document.location.href. I tried to do a postback in javascript using __doPostBack with __commit and __redirect (redirecting to the URL displayform?ID='itemid'), but when the redirect happens, I see that the changes were not updated!
Anyone able to do something like this?
You can get the form to redirect to any location after it's been posted by modifying the URL in the Source querystring parameter. Using javascript, you could look for a specific URL (/location/dispform.asp?ID=) in that querystring parameter and if it doesn't exist, redirect the page to itself, but with the Source parameter filled out to the location w/ ID that you want to send them to.
The hardest part will be parsing the current URL + parameters in javascript. There's some snippets of JS code I've found that make it a lot easier.
One of the bonuses of rewriting the EditForm URL this way is that the Cancel button will send the user to the DispForm page instead of where they originally came from, although most people probably use the back button.
This lead me to solve my problem of a Form Action on my DispForm that would not take the list item ID to the custom EditForm. The following ended up working for me:
onclick="javascript: {ddwrt:GenFireServerEvent(concat('__redirect={ProgEditForm.aspx?ID=+',$ListItemId,'}'))}"
Where I have a DispForm parameter for ListItemID with
Parameter Source: Query String
Query String Variable: ID
Default Value: 0
Hope that helps someone else as this was near driving me crazy!

Categories

Resources