| | |
Adding javascript to a URL?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2009
Posts: 1
Reputation:
Solved Threads: 0
My router is stupid, and needs to be rebooted a lot.
I've simplified the process down to
http:192.168.1.1/restart.htm as a shortcut on my desktop.
Once open, there is a JS button with the onClick command RebootDevice()
If I first load the restart page, then type RebootDevice(), it reboots.
Can I add something to the URL that automatically sends the JS command RebootDevice()
I've simplified the process down to
http:192.168.1.1/restart.htm as a shortcut on my desktop.
Once open, there is a JS button with the onClick command RebootDevice()
If I first load the restart page, then type RebootDevice(), it reboots.
Can I add something to the URL that automatically sends the JS command RebootDevice()
browse the source of the router page containing the reboot button
the source of javascript function will contain the actual url used to reboot the router
something like ' "/sys/restart2.xgi?submit REBOOT"; ' (dlink)
giving a value for your desktop button
the source of javascript function will contain the actual url used to reboot the router
something like ' "/sys/restart2.xgi?submit REBOOT"; ' (dlink)
giving a value for your desktop button
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<!-- one of many possible values --> http://192.168.1.1/sys/restart2.xgi?submit REBOOT
Last edited by almostbob; Apr 7th, 2009 at 10:57 pm.
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
forgot
tooo late to edit last post
in the javascript that performs the reboot
the url is broken into harder to recognize pieces
something similar to
tooo late to edit last post
in the javascript that performs the reboot
the url is broken into harder to recognize pieces
something similar to
javascript Syntax (Toggle Plain Text)
var str = "/sys/restart2.xgi?"; str += exeStr("submit REBOOT"); location.href=str;
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it
Please mark solved problems, solved
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Problem with ajax in firefox 3
- Next Thread: Prototype js Ajax evalJSON()
Views: 676 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxcode ajaxhelp animate array automatically autoplay beta boarder box bug button calendar captcha card cart codes column cookies createrange() css cursor date debugger decimal design developer dom download dropdown element enter error events firefox firehose flash focus form frameworks getselection google gwt html htmlform iframe image() images index java javascript javascripts jawascriptruntimeerror jquery jsp listbox maps marquee masterpage menu microsoft mimic mp3 mp4 offline onmouseover parameters php player post problem programming prototype rating redirect regex safari scale scriptlets search select size sources sql starrating text textarea toggle twitter validation variables w3c web website window windowofwords windowsxp xml xspf






