Solved

How to auto submit a website form?

Posted on 2014-03-20
4
809 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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 if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
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:

688 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