Solved

How to auto submit a website form?

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apache error.log 19 43
Problem to refer to value 8 50
javascript comparing two dates 3 19
Firing an ASP.NET event on selection of a JQuery datepicker 4 21
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

831 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