Solved

How to auto submit a website form?

Posted on 2014-03-20
4
744 Views
Last Modified: 2014-03-21
Hi

If you go to this website using this url
http://www.checkgfw.com/?#baidu.com
then it will auto filled the form with "baidu.com"
I will then need to click the SUBMIT button then I will have this result
" ¿¿,¿¿¿¿¿¿¿¿"
I need to click the submit button every hour, is there a way that I can go to a url ( i can upload a script to my website) or a google chrome extention that help me to check every hour (by clicking on the submit button and notify me if there is a changes. I will use a google chrome extension to auto detect for changes)
Thanks
0
Comment
Question by:Shirley80
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
quizwedge earned 500 total points
ID: 39944630
They have the site set up so that you can't load it in an iframe or post to the page from somewhere outside of their servers.

A chrome extension might be possible, but I'm not familiar with writing one of those. You could, however, do something with Javascript. checkgfw.com is running jQuery.

1. In Chrome go to http://www.checkgfw.com/?#baidu.com
2. Right click on the page and choose "Inspect Element"
3. In the tools that come up, choose Console. You may have to expand the tools to be able to see it.
4. Use the following Javascript in the console

setInterval(function(){$('#submit').click()},3600000);

Open in new window


This will wait an hour and then click the submit button every hour.
0
 

Author Comment

by:Shirley80
ID: 39944844
Hi

Thanks for the fast reply.
I followed your steps, but its not working, here is a screenshot (i modified the timer)

http://i.imgur.com/dWyHTYe.png
0
 
LVL 14

Expert Comment

by:quizwedge
ID: 39944898
Doesn't look like it ran at all. Did you hit enter? That is what runs the code.
0
 

Author Closing Comment

by:Shirley80
ID: 39944913
sorry
totally noob here, missed the step 5. ENTER
appreciate your guide~
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question