Solved

How to auto submit a website form?

Posted on 2014-03-20
4
694 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now