完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我想让我的网页使用HTML按钮打开服务器板上的灯等。我可以使用演示网页来很好地操纵XML、Java和HTML,我看到服务器板上的按钮是如何在网页上查看的,但我想转到另一个方向。我已经做了我认为正确的事情,但是Java脚本超时了,并给了我一个连接错误。我想看看演示代码,演示如何做到这一点。有人知道我应该去哪里看吗?谢谢
以上来自于百度翻译 以下为原文 I would like to make my web pages use html buttons to turn on lights, etc on the server board. I am able to use the demo web pages to manipulate the XML, Java, and HTML fairly well, I see how the buttons on the server boards are viewed on the web page but I want to go the other direction. I have done what I thought was correct but the Java Script times out and gives me a connection error. I would like to see some demo code that shows how to do this. Does anyone know where I should look? Thanks |
|
相关推荐
17个回答
|
|
|
|
|
|
感谢响应我正在使用PIC32以太网启动套件与PIC32 MX795F512L处理器。
以上来自于百度翻译 以下为原文 Thanks for responding I am using the PIC32 Ethernet starter kit with the PIC32MX795F512L processor. Harmony V1.10 |
|
|
|
我不知道我从哪里得到演示网页,但它可能已经是V2012-04-03。它老了,但仍然有效。我有自己的索引页,稍微更改了XML文件和Java文件。只是为了了解它是如何工作的。谢谢你的回应
以上来自于百度翻译 以下为原文 I am not sure where I got the demo web pages from but it may have been V2012-04-03. Its old but it still works. I have my own index page and have changed XML file and Java S file slightly. just to learn how it works. Thanks for responding |
|
|
|
和声演示有AJAX读取PCB按钮并设置PCB发光二极管。看看Wi-Fi演示。
以上来自于百度翻译 以下为原文 The Harmony demo has AJAX to read the PCB buttons and set the PCB LEDs. Look at the Wi-FI G demo. |
|
|
|
好的,但是我认为这将是标准的微芯片演示页面,它显示上下箭头指示PCB板上的按钮是否被按下。我想走另一条路,把按钮放在我的网页上,打开PCB板上的ON/OFF输出。我可能是错误的,稍后我会看到下面的一些HTML代码。&按钮类型=“按钮”ID =“Mybtn”OnClutl=“MySyfMeple()”。试试It & /Butt & gt;& lt;p id=“demo”& gt;& lt;/p& gt;& & t;Script & gt;函数MyMyFror(){var x=文档。ID(“MYBTN”);x.Babid=TRUE;} 以上来自于百度翻译 以下为原文 OK, but I think that's going to be the standard Microchip demo page which shows up/down arrows indicating if buttons on the PCB board are pressed or not. I want to go the other way and put buttons on my web page to turn outputs on/off on the PCB board. I could be wrong and I will look at the again later but I was expecting to see some HTML code that looks like this below. |