This is just small plain HTML program wtote manually (since I am new to web programming, may be some tools I can use I think), this program loaded onto microcontroller with small foot print web server, when program prints, half-way it prints, then it struck, any issue with this?. when user clicks "submit" again it loaded same page. but it sends some sytring to server (plug1=ON&..... .), that string will be processed inside server.
any open source tools I can use to do better design?. appreciated. - <html>
-
<head>
-
<title>control page</title>
-
</head>
-
-
<body>
-
-
<br>
-
<form name="input" action="/plugv1.htm" method="get">
-
-
-
<div align="center">
-
<b><font size="6"> SWITCH PANEL </font></b>
-
<br><br>
-
</div>
-
-
<div align="center">
-
<b>PLUG1 </b> <input type="radio" name=plug1 value=ON1> <strong style="color:green;"> <b>ON</b> </strong>
-
<input type="radio" name=plug1 value=OF1 > <strong style="color:red;"> OFF </strong>
-
<td> <strong>PLUG 1 Status</strong> ^00&0001|<input type="button" value="ON" style="background-color: #00cc00; color: #ffffff;" >|<input type="button" value="OFF" style="background-color: #cc0000; color: #ffffff;">|;</td>
-
<br>
-
<b>PLUG2 </b> <input type="radio" name=plug2 value="ON2"> <strong style="color:green;"> ON </strong>
-
<input type="radio" name=plug2 value="OF2"> <strong style="color:red;"> OFF </strong>
-
<!-- <input type="radio" name=plug2 value="RB2" > REBOOT<br> -->
-
<td> <strong>PLUG 2 Status</strong> ^00&0002|<input type="button" value="ON" style="background-color: #00cc00; color: #ffffff;" >|<input type="button" value="OFF" style="background-color: #cc0000; color: #ffffff;">|;</td>
-
<br>
-
<br>
-
<b>PLUG3 </b> <input type="radio" name=plug3 value="ON3"> <strong style="color:green;"> ON </strong>
-
<input type="radio" name=plug3 value="OF3"> <strong style="color:red;"> OFF </strong>
-
<td> <strong>PLUG 3 Status</strong> ^00&0004|<input type="button" value="ON" style="background-color: #00cc00; color: #ffffff;" >|<input type="button" value="OFF" style="background-color: #cc0000; color: #ffffff;">|;</td>
-
<br>
-
<b>PLUG4 </b> <input type="radio" name=plug4 value="ON4"> <strong style="color:green;"> ON </strong>
-
<input type="radio" name=plug4 value="OF4"> <strong style="color:red;"> OFF </strong>
-
<td> <strong>PLUG 4 Status</strong> ^00&0008|<input type="button" value="ON" style="background-color: #00cc00; color: #ffffff;" >|<input type="button" value="OFF" style="background-color: #cc0000; color: #ffffff;">|;</td>
-
<br>
-
<br>
-
<b>PLUG5 </b> <input type="radio" name=plug5 value="ON5"> <strong style="color:green;"> ON </strong>
-
<input type="radio" name=plug5 value="OF5"> <strong style="color:red;"> OFF </strong>
-
<td> <strong>PLUG 5 Status</strong> ^00&0010|<input type="button" value="ON" style="background-color: #00cc00; color: #ffffff;" >|<input type="button" value="OFF" style="background-color: #cc0000; color: #ffffff;">|;</td>
-
<br>
-
<b>PLUG6 </b> <input type="radio" name=plug6 value="ON6"> <strong style="color:green;"> ON </strong>
-
<input type="radio" name=plug6 value="OF6"> <strong style="color:red;"> OFF </strong>
-
<td> <strong>PLUG 6 Status</strong> ^00&0020|<input type="button" value="ON" style="background-color: #00cc00; color: #ffffff;" >|<input type="button" value="OFF" style="background-color: #cc0000; color: #ffffff;">|;</td>
-
<br>
-
<br>
-
<b>PLUG7 </b> <input type="radio" name=plug7 value="ON7"> <strong style="color:green;"> ON </strong>
-
<input type="radio" name=plug7 value="OF7"> <strong style="color:red;"> OFF </strong>
-
<td> <strong>PLUG 7 Status</strong> ^00&0040|<input type="button" value="ON" style="background-color: #00cc00; color: #ffffff;" >|<input type="button" value="OFF" style="background-color: #cc0000; color: #ffffff;">|;</td>
-
<br>
-
<b>PLUG8 </b> <input type="radio" name=plug8 value="ON8"> <strong style="color:green;"> ON </strong>
-
<input type="radio" name=plug8 value="OF8"> <strong style="color:red;"> OFF </strong>
-
<td> <strong>PLUG 8 Status</strong> ^00&0080|<input type="button" value="ON" style="background-color: #00cc00; color: #ffffff;" />|<input type="button" value="OFF" style="background-color: #cc0000; color: #ffffff;"/>|;</td>
-
<br>
-
-
-
-
<table border="2" cellpadding="5">
-
<td>
-
<b>All Plugs </b> <input type="radio" name=plugx value="ONX" /> <strong style="color:green;"> ON </strong>
-
<input type="radio" name=plugx value="OFX"> <strong style="color:red;"> OFF </strong>
-
</td></table>
-
-
</div>
-
<br>
-
<div align="center"><br>
-
<input type="button" onclick="if (confirm('Are you sure to Submit this?')) submit();" value="Submit">
-
<input type ="reset" value ="Clear">
-
<input type="button" value="Refresh" onclick="window.location.reload();" />
-
-
-
</div>
-
</form>
-
-
<br>
-
-
<form name="input" action="/plug_login.htm" method="get">
-
<div align="right">
-
<input type="submit" name="logout" value="Logout">
-
<INPUT TYPE="HIDDEN" name="logoutExitPage" VALUE="/plug_login.html">
-
</div>
-
</form>
-
-
-
-
<br>
-
-
</div>
-
</body>
-
-
</html>
9 1962
Thanks Markus for keeping those [code] tags, sorry for that , next time onwards I will in mind to add tags.
Can somebody have any idea what is the wrong with the above prog, it prints half-way then stops. is any anyway I can write efficient prog using some open-source tool.
appreciated.
acoder 16,027
Recognized Expert Moderator MVP
When you say it prints, do you mean printing as in displaying in the browser, or printing onto paper from a printer?
I mean displaying on browser, this code is running form microcontroller using tiny web server running microC. when web client running on PC connects to web server running on microcontroller , when this page getting loaded, it loads half-way and remining code won't load.
acoder 16,027
Recognized Expert Moderator MVP
Have you tried testing in other browsers?
I was using IE and Firefox, on both it shows like that. I was thinking may be those <td> and <tr> doing something, may be some alignment issue or something?
acoder 16,027
Recognized Expert Moderator MVP
Do you have a memory limit on the micro-controller? You should remove all the extra space characters ( ) that are unnecessary.
@tvnaidu
Hi,
Can you please tell me how much portion you are able to view.. till which row..?
- as you said half-way..
Thanks!
Here I have those radio buttons for input (select on or off and when user click on apply, it takes action, that is why the method declared as "get", the other part is status, where it reads the status and display on screen. I have screenshot, how can I post that screenshot?.
It is very interesting issue.
acoder 16,027
Recognized Expert Moderator MVP @tvnaidu
Make a post and then click on Edit. You should have an option to attach an image.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Milk |
last post by:
Hi,
i got a program working half part and my program is suppose to do 4*4 matrix
can any one help me to check it? i dunno whic part i did wrong thx~~
Here is the program :::::
.data
arrayA: .space 1024
arrayB: .space 1024
arrayC: .space 1024
str: .asciiz " "
|
by: hoover_richard |
last post by:
I am a newbie to C++ and I need help with a simple program I am trying
to write. My program is designed to print all of the odd integers
contained in an array and output the sum of the odd integers. My code
is listed below, but the problem is that my output of sum is wrong.
For example, I am using 1347830 for my integers and the program outputs
373 and after adding 373 you should get 13 for the total, but that
doesn't happen. Any help...
|
by: SK |
last post by:
Hi
I am trying to teach myself how to program in C. I am a physician
hoping to be able to help restructure my office. Anyhow, I amhoping
that the porblem I am having is simple to those much more experienced
in programming. I am trying to use the concept of arrays to calculate
the hours of my backoffice staff, however I am getting a ridiculous
amount of error lines. If any one has time to help me that would be
great. I am using the...
|
by: mavic |
last post by:
hi to everybody,i need help for my project....how to make a program
that accept any integer and convert it binary,octal and hexadecimal.pls
help me...thanks
|
by: bidalah |
last post by:
Hi,
I have created a program which opens up ".pcfs" files, a kind of text
file unique to my program. I want to be able to click on these files
and have the program launch AND load the contents of the clicked file.
I have been able to do the first half. I can click on a .pcfs file and
the program comes up. But how do I make the program "see" the clicked
file and load it?
I'm not even sure what this action is called, and so I haven't...
| |
by: viewsonic |
last post by:
Help, im a student that has to write a program for counting coins. Half of the program works but the other half doesn.t
should have the following parameters.
output is:
Name
Date
total number of coins
number of quarters
number of dimes
|
by: compsci |
last post by:
Write a program that uses functions to calculate a person’s paycheck. The program should ask for a person’s first and last name, social security number (use fakes), phone number, address, hours worked (in the week), and hourly wage. The program should also include overtime (time and a half) if they have worked more than 40 hours. The program should also take out federal taxes (8%). The program should display the results to the screen. The...
|
by: scan87 |
last post by:
Can someone please, please help me in finding the slotuion of the following problem:
The cost of one-day travel cards for adult customers on the metro system is based on which zones they cover and is summarised in the following table:
Zone Cost
1 1.70
1 & 2 3.70
1, 2 & 3 4.70
1, 2, 3 & 4 6.00
1,...
|
by: Bjarne Nielsen |
last post by:
Hi all
I have developed a program, that runs under .NET framework 2.0. On my own
computer and all the other computers in my company, things run smoothly.
My problem is, that I have installed it at one of our customers, and when I
try to start the program, nothing happens. The program pops up in the job
list, but disappears after about half a second. Nothing visible shows on
the screen.
|
by: Bill David |
last post by:
SUBJECT: How to make this program more efficient?
In my program, a thread will check update from server periodically and
generate a stl::map for other part of this program to read data from.
Let's name the update method as doUpdate and stl::map read methods as
getData and copyData.
Since stl::map is not thread-safe, we should do synchronization by
ourselves. A usable solution is to create a boost::mutex::scoped_lock
object in all above...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |