473,662 Members | 2,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

This program half-way ot prints on IE, then it hangs, don't know what is the issue?

365 Contributor
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.

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <title>control page</title>
  4. </head>
  5.  
  6. <body>
  7.  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  
  8.  <br>
  9. <form name="input" action="/plugv1.htm" method="get">
  10.  
  11.  
  12. <div align="center">
  13.     <b><font size="6"> SWITCH PANEL </font></b>
  14.     <br><br>
  15. </div>
  16.  
  17. <div align="center">
  18. <b>PLUG1 &nbsp; &nbsp;  &nbsp;  </b> <input type="radio" name=plug1 value=ON1> <strong style="color:green;"> <b>ON</b> </strong> &nbsp;      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  19.     <input type="radio" name=plug1 value=OF1 > <strong style="color:red;"> OFF </strong> 
  20.     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>
  21. <br> 
  22. <b>PLUG2  &nbsp;  &nbsp;  &nbsp; </b> <input type="radio" name=plug2 value="ON2"> <strong style="color:green;"> ON </strong> &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  23. <input type="radio" name=plug2 value="OF2"> <strong style="color:red;"> OFF </strong> 
  24.     <!-- <input type="radio" name=plug2 value="RB2" > REBOOT<br> -->
  25.     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>
  26. <br> 
  27. <br> 
  28. <b>PLUG3  &nbsp;  &nbsp;  &nbsp; </b> <input type="radio" name=plug3 value="ON3"> <strong style="color:green;"> ON </strong> &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  29. <input type="radio" name=plug3 value="OF3"> <strong style="color:red;"> OFF </strong> 
  30.     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>
  31. <br> 
  32. <b>PLUG4  &nbsp;  &nbsp;  &nbsp; </b> <input type="radio" name=plug4 value="ON4"> <strong style="color:green;"> ON </strong> &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  33. <input type="radio" name=plug4 value="OF4"> <strong style="color:red;"> OFF </strong>
  34.     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>
  35. <br> 
  36. <br> 
  37. <b>PLUG5  &nbsp;  &nbsp;  &nbsp; </b> <input type="radio" name=plug5 value="ON5"> <strong style="color:green;"> ON </strong> &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  38. <input type="radio" name=plug5 value="OF5"> <strong style="color:red;"> OFF </strong>
  39.     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>
  40. <br> 
  41. <b>PLUG6  &nbsp;  &nbsp;  &nbsp; </b> <input type="radio" name=plug6 value="ON6"> <strong style="color:green;"> ON </strong> &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  42. <input type="radio" name=plug6 value="OF6"> <strong style="color:red;"> OFF </strong> 
  43.     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>
  44. <br> 
  45. <br> 
  46. <b>PLUG7  &nbsp;  &nbsp;  &nbsp; </b> <input type="radio" name=plug7 value="ON7"> <strong style="color:green;"> ON </strong> &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  47. <input type="radio" name=plug7 value="OF7"> <strong style="color:red;"> OFF </strong> 
  48.     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>
  49. <br> 
  50. <b>PLUG8  &nbsp;  &nbsp;  &nbsp; </b> <input type="radio" name=plug8 value="ON8"> <strong style="color:green;"> ON </strong> &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  51. <input type="radio" name=plug8 value="OF8"> <strong style="color:red;"> OFF </strong> 
  52.     &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <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>
  53. <br>
  54.  
  55.  
  56.  
  57. <table border="2" cellpadding="5">
  58. <td>
  59. <b>All Plugs  &nbsp;  &nbsp; </b> <input type="radio" name=plugx value="ONX" /> <strong style="color:green;"> ON </strong> &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  60. <input type="radio" name=plugx value="OFX"> <strong style="color:red;"> OFF </strong> 
  61. </td></table>
  62.  
  63. </div>
  64. &nbsp;<br>
  65. <div align="center"><br>
  66. <input type="button" onclick="if (confirm('Are you sure to Submit this?')) submit();" value="Submit"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  67. <input type ="reset" value ="Clear"> &nbsp; &nbsp; &nbsp;
  68. <input type="button" value="Refresh" onclick="window.location.reload();" /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
  69.  
  70.  
  71. </div>
  72. </form>
  73.  
  74. <br>
  75.  
  76. <form name="input" action="/plug_login.htm" method="get">
  77. <div align="right">
  78. <input type="submit" name="logout" value="Logout">
  79. <INPUT TYPE="HIDDEN" name="logoutExitPage" VALUE="/plug_login.html">
  80. </div>
  81. </form>
  82.  
  83.  
  84.  
  85. <br>
  86.  
  87. </div> &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp; 
  88. </body>
  89.  
  90. </html>
Oct 23 '09 #1
9 1962
tvnaidu
365 Contributor
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.
Oct 24 '09 #2
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?
Oct 26 '09 #3
tvnaidu
365 Contributor
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.
Oct 26 '09 #4
acoder
16,027 Recognized Expert Moderator MVP
Have you tried testing in other browsers?
Oct 26 '09 #5
tvnaidu
365 Contributor
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?
Oct 26 '09 #6
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 (&nbsp;) that are unnecessary.
Oct 28 '09 #7
madankarmukta
308 Contributor
@tvnaidu
Hi,

Can you please tell me how much portion you are able to view.. till which row..?

- as you said half-way..

Thanks!
Oct 28 '09 #8
tvnaidu
365 Contributor
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.
Oct 29 '09 #9
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.
Oct 30 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2456
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 " "
6
4956
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...
27
2094
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...
52
4090
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
2
1103
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...
3
16927
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
11
1951
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...
1
1948
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,...
5
2052
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.
82
3672
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...
0
8432
marktang
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...
0
8343
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,...
0
8856
Oralloy
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...
0
8762
jinu1996
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...
1
8545
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,...
0
8633
tracyyun
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...
1
6185
isladogs
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...
1
2762
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
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.