Discussion in 'Tomato Firmware' started by thor2002ro, Apr 6, 2009.
i'm making a tomato build...
can anyone tell me how the web interface works?
it has those unicorns that pierce the websites onto their horns and deliver them to the browser of your choice
Since you're a new poster, it's hard for us to tell if you're asking a really easy question, which would best be answered by reading the FAQ, or a really hard question which would best be answered by looking at the source, particularly httpd.c.
Are you asking how to access the UI (read the faq) or how is the UI implemented?
how is the ui implemented... ,
i what to make a new page that will modify some nvram variables
and what about debuging the site i see it needs some kind of debug.js
sorry if i sound noobish but i'm not that familliar with ajax... but i do know linux stuff
In order to modify the UI, i reckon you must be familiar with AJAX.
if your not going to help DONT POST... whats the point :|
PS: vad ca esti roman asa ca nam pretenti de la tine...
All the web pages served are in the source code in the httpd/ directory, and in the image in the /www directory. These are .asp files, in which inline constructs in the file are expanded before being sent to the user. Changes are sent back using forms. These are not separate cgi scripts; rather there are a built in set of functions that the httpd calls directly
If you feel like playing, create a directory /var/wwwext. But some .asp documents there. You can then browse them using http:<ip>/ext/foo.asp.
thank you , i'll give it a try...
later edit: what about debuging the site?
Someone else will have to help you with that. I've just tried to figure out how things work. I haven't written any of my own.
I debug GUI changes by mounting CIFS and symlinking it at /var/wwwext. That way anything I have on my development computers network share is immediately available at http://router/ext/ . From there, it's regular web development debugging (I rely heavily on Firefox's DOM inspector and Error Console).
o i use firebug addon on firefox ... i thought that was something more special.... :tongue:
ok thanks!!! :thumbup: