返回   华枫论坛 > ◆ 工作学习◆ > IT交流



发表新主题 回复
 
查看全部 主题工具
旧 Jan 20th, 2005, 20:59     #1
q168
刁游民
级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时
 
q168 的头像
 
注册日期: Jul 2004
帖子: 636
精华:2
q168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond repute
默认 请教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? 谢谢高手!
q168 当前离线  
回复时引用此帖
旧 Jan 20th, 2005, 21:09     #2
q168
刁游民
级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时
 
q168 的头像
 
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
q168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond repute
默认

or maybe embeded in ASP.
q168 当前离线  
回复时引用此帖
旧 Jan 21st, 2005, 12:49     #3
q168
刁游民
级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时
 
q168 的头像
 
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
q168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond repute
默认 谢谢大家。

我对网叶的概念是不清,因此问题也问得不清。
简单点:
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.
多谢指点。
q168 当前离线  
回复时引用此帖
旧 Jan 25th, 2005, 17:11     #4
q168
刁游民
级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时
 
q168 的头像
 
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
q168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond repute
默认 好!这里高手真多。继续请教。。

我的意思是: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 菜鸟,请帮忙。 谢谢啦。
q168 当前离线  
回复时引用此帖
旧 Jan 27th, 2005, 16:46     #5
q168
刁游民
级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时
 
q168 的头像
 
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
q168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond repute
默认 急!

<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 的资料放在一个文件里。
q168 当前离线  
回复时引用此帖
旧 Jan 27th, 2005, 18:21     #6
q168
刁游民
级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时
 
q168 的头像
 
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
q168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond repute
默认

谢谢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.
有何良策?
q168 当前离线  
回复时引用此帖
旧 Jan 28th, 2005, 12:03     #7
q168
刁游民
级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时
 
q168 的头像
 
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
q168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond repute
默认 衷心感谢多位的帮忙。

我一定会看看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 啦。华为正在开发第二代中。
再次谢谢各位。
q168 当前离线  
回复时引用此帖
旧 Jan 28th, 2005, 15:22     #8
q168
刁游民
级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时级别:11 | 在线时长:176小时 | 升级还需:16小时
 
q168 的头像
 
注册日期: Jul 2004
帖子: 636
精华:2
声望: 3011198
q168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond reputeq168 has a reputation beyond repute
默认

引用:
作者: TjHong
全在一个机器上非要弄个SETUP程序在Browser里运行。你就不能弄个能在机器上独立运行的程序?!
又是cookies 又是An application running in backgroud detects the cookie file。真是脱裤子放屁。

全在一个机器上非要弄个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. 但费时。
q168 当前离线  
回复时引用此帖
发表新主题 回复


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



所有时间均为格林尼治时间 -4。现在的时间是 00:55

请尊重文章原创者,转帖请注明来源及原作者。
凡是本站用户自行发布的任何信息,皆不代表本站的立场,
华枫网站不确保各类信息的正确性和可靠性,也不承担由此而导致的任何直接或间接损失以及任何法律责任。

Copyright © 1999-2024 Chinasmile