Jan 20th, 2005, 20:59 | #1 |
刁游民
注册日期: Jul 2004
帖子: 636
精华:2
|
请教Java, JS, HTML 高手
可以在 HTML / Java Script / Java code 里 embed an OS kernel call 吗?例如,settup box 运行 linux, 它有browser, 能否在这 settop box 里的 HTML/JS/Java page里包含 a kernel call function, 或PERL Script, shell script? 谢谢高手!
|
|
Jan 20th, 2005, 21:09 | #2 |
刁游民
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
|
or maybe embeded in ASP.
|
|
Jan 21st, 2005, 12:49 | #3 |
刁游民
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
|
谢谢大家。
我对网叶的概念是不清,因此问题也问得不清。 简单点: a settop box running Linux, at the start up (开机时), a browser is running and displaying a setup (configuration) page (配置网叶). The configuration page (in HTML/JS format) will ask the user to enter IP,Gateway address etc. How do I design this web page so that when user input the IP address, it will run the "route add -net x.x.x.x netmask 255.255.255.0 gw x.x.x.1" linux kernel command. 多谢指点。 |
|
Jan 25th, 2005, 17:11 | #4 |
刁游民
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
|
好!这里高手真多。继续请教。。
我的意思是:webpage, user, browser, application 全都在同一pc. user 打开 local webpage,webpage asks user for IP address input, then ask user to click "okay" to execute the application. 这pc 完全没 connect the internet. Webpage is locally located in the PC. 我以为:这webpage 的javascript is: <a href="/home/bin/an_application.exe -parameters">click here to run application to config ip</a> 但这样行不通。我是javascript 菜鸟,请帮忙。 谢谢啦。 |
|
Jan 27th, 2005, 16:46 | #5 |
刁游民
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
|
急!
<a href="/home/bin/an_application.exe -parameters">click here to run application to config ip</a> 对!这样行不通。只是在BROWSE里会找这个an_application.exe来下载。 但能否把用户填上去的资料(比如:IP address 等) 放在一个file 里面 (注:我说的全都是在同一平台,没有connect to internet). 重复我的问题: webpage, browser 都在同一部机里(只是一部PC, 没connect to internet), 如何把user 填在 webpage 的资料放在一个文件里。 |
|
Jan 27th, 2005, 18:21 | #6 |
刁游民
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
|
谢谢Alex, 但这browser (ANT browser, 给手机,settop box 用的),在ucLinux 上行的。 没web server. 它只是support: html4.01, JavaScript 1.3, GIF,JPEG,PNG graphics, Cascading Stule Sheets, Plug-ins, Cookies, SSL, Unicode, multiple windows/talbes/forms. 有何良策? |
|
Jan 28th, 2005, 12:03 | #7 |
刁游民
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
|
衷心感谢多位的帮忙。
我一定会看看zhannx推荐的那本书。 cookies 有文章可做。 开机 --> OS rename the existing "cookies.txt" to "temp.txt" --> setup menu comes up (ANT browser running, displaying the setup menu) --> user input configuration parameters (ip address, gw etc) --> information goes to cookie file (got to read the book, to figure out how to achieve that) --> An application running in backgroud detects the cookie file, then performs the configuration --> delete the cookies file --> rename the "temp.txt" file back to "cookies.txt" --> done --> browser ready to browse the external web. 我的环境是那可怜的16Mram, ANT browser 占了2.7Meg。这产品可能是未来家家户户用的voice, video, data 三合一的residential gateway 呀。中兴(ZTE)已经用它做video phone 啦。华为正在开发第二代中。 再次谢谢各位。 |
|
Jan 28th, 2005, 15:22 | #8 | |
刁游民
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
|
引用:
全在一个机器上非要弄个SETUP程序在Browser里运行。你就不能弄个能在机器上独立运行的程序?! 又是cookies 又是An application running in backgroud detects the cookie file。真是脱裤子放屁。 你说的对,但环境所逼,不同的客户要做不同的start up page, setup page. 如果只是一个客户(iPanel就是跟“华为“度身订做了个)。 幸运的是:ANT browser 的cookies 是个txt file. It is readable. ANT 给了我们source code, 其实也可以改改他们的code. 但费时。 |
|
|