New update - v0.5-20091221-00021
- Pages are displayed in standard compliance mode (no quirks mode)
- Page suffix changed to asp
- Wireless info depends now on interface read from nvram variable
- help information provided with link to index help file
- flash info support
- wrapped lines can be identified with the raquo simbol
- typos
See attachment at page 5 _________________ Regards,
gi-minni
Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots
You don't need to always default to "elegant" style. You can change that in header, replace "elegant" with nvram get router_style
Files in /tmp/www can be directly accessed as asp (no need to echo) like e.g http://routerip/user/File.asp and can use all function that are build in, like <% nvram_get("something"); %> and many many more. I'm not at all saying that store all files there, but you maybe can link small parts of html code. Maybe I'll work on small example later today.
Joined: 01 Feb 2007 Posts: 138 Location: Wherever the boat takes me.
Posted: Wed Dec 23, 2009 5:57 Post subject:
So far everything I have seen and done with "my_page" is re-active. Basically it gets and displays information. Eko, Could you maybe provide some hints as to how to make it more active. Like saving and changing variables? The only submit footer I have seen is refresh, what about save, apply, cancel. Or is that too dangerous?
Thanks for the examples given so far, they are very informative. _________________ Ray
Asus RT-N66U B1, AP Router, Merlin Version 3.0.0.4.376.49_4, bl_version=1.0.1.3
Asus WL-500W, DD-WRT v24-sp2 (05/27/14) mini-usb-ftp - build 24160
Buffalo WHR-G54S, Repeater:
_____ broadcom, DD-WRT v24-sp2 (03/29/14) mini - build 23838, AutoAP (2013-10-01)
Buffalo WHR-HP-G54, Repeater:
_____ broadcom, DD-WRT v24-sp2 (03/29/14) mini - build 23838, AutoAP (2013-10-01)
LinkSys WRT54G-V2, Repeater:
_____ broadcom, DD-WRT v24-sp2 (01/17/15) mini - build 25948 , AutoAP (2013-10-01)
So far everything I have seen and done with "my_page" is re-active. Basically it gets and displays information. Eko, Could you maybe provide some hints as to how to make it more active. Like saving and changing variables? The only submit footer I have seen is refresh, what about save, apply, cancel. Or is that too dangerous?
Thanks for the examples given so far, they are very informative.
I want to see this too. _________________ Eko Builds
You don't need to always default to "elegant" style. You can change that in header, replace "elegant" with nvram get router_style
Thx Eko for this tip! My next version (v0.9) has this feature built in. Further I will also use the language nvram var, because I started with national language support.
Eko wrote:
Files in /tmp/www can be directly accessed as asp (no need to echo) like e.g http://routerip/user/File.asp and can use all function that are build in, like <% nvram_get("something"); %> and many many more. I'm not at all saying that store all files there, but you maybe can link small parts of html code. Maybe I'll work on small example later today.
I am looking forward to see some examples!
I have a couple of questions to address to you:
1)Is there a chance to get an own tab beside Status?
2)Can we have three level of menus?
3)How can I hook own text block respecting language support?
4)The name of MyPage.asp is hardcoded, can mypage_scripts reflect the right filename. For example if mypage_scripts is empty no tab is shown, otherwise can we have another scheme? E.g.
mypage_main_scripts for 1st level menu
mypage_main_tabs for 1st level tab names
mypage_sub_scripts for 2nd level menu
mypage_sub_tabs for 2nd level tab names
and lastly can we add 3rd level of menus?
mypage_sub_scripts for 2nd level menu
mypage_sub_tabs for 2nd level tab names
5)How can I add my own javascripts? Is this in http://routerip/user/my-own.js
6) Look at my new header (download the screenshots), I added the hostname, date and router name. Can you add this to your original webif? _________________ Regards,
gi-minni
Router: ASUS RT-N16@532 MHz (active cooling)
Firmware: DD-WRT v24-sp2 mega (02/23/10)
Build: 13972M NEWD-2 K2.6 BS
DD-WRT MyPage: Download | Forum | Wiki | FAQ | Screenshots