Hello.
I have the following problem.
I have a web interface of an AP, like http://10.10.50.113
In this page I have a reset button, where I can restart AP. When I push the button, in 8 seconds automatically page is restarted, therefore AP settings. When I push the button I see in the left down corner, a message like that:
javascript: if (!validate(forms[0])) or something like that, but nothing else in the web link address, means only (http://10.10.50.113).
Do you know if there is a possibility to make a script automatically when I load it to access the button, therefore reset the page? If yes, how? I mention I am a beginner in web script technology.
the closest you can get to your request is to mimic what the button does, and have something else do it instead.
so, right click the page that has that "javascript:if(!validate(forms[0]))" stuff, view the source, find everything after "javascript:" and create a new script with a function that calls all that.
then assign that function to the onload attribute of the body tag of the page you created:
Code:
<body onload="automatic()">
1. If you reply to my post, and your reply would then appear directly beneath my post, DON'T QUOTE MY ENTIRE POST!!! IT'S REDUNTANT!!! IT'S ASININE!!!! IT'S REDUNDANTLY ASININE!!!!! DON'T DO IT!!!!
2. jQuery extends the functionality of JavaScript. If you don't know JavaScript, give up on that jQuery script and learn JavaScript. You'll save yourself a lot of frustration, I promise.
3. Use the [code][/code] tags. Otherwise, you may be left wondering why no one responded to your eyesore of a thread.
Hi aaron.martines.
Thank you very much for your ideas, but still not work.
I saved the AP page source, and in correspondent java script section I have only:
"javascript:if(!validate(document.forms[0]));">Save Settings, where Save Settings is the button to reset.
When I push "Save Settings" button, a new Page appear where it say to wait for 8 seconds for reset.If I press right button now and view source, I get something like that:
<HTML>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<HEAD>
<title></title>
<script language="javascript">
<!--
var url=document.referrer;
var page = '' ;
var cnt=0;
var d = new Date();
var t = d.getTime();
var z = d.getTimezoneOffset();
var startTime = parseInt((t+500/1000-z*60)/1000);
for( var i=0 ; i<url.length ; i++ )
{
if( url.charAt(i) == '/' )
cnt++ ;
if( cnt == 3 )
break ;
}
Bookmarks