?
Solved

How to auto submit a website form?

Posted on 2014-03-20
4
Medium Priority
?
872 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 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

752 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