Jump to content

Mark Wheeler

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Mark Wheeler

  • Rank
    Newbie

Previous Fields

  • Languages
    C,Javascript,VB,HTML

Profile Information

  • Location
    Canada
  • Interests
    Pic Micro
    Making interesting toys for my kids to distroy..
  1. Just an update on my problem. I have used Wireshark to look at the data to and from the Web Server and I see the problem but don’t know how to fix it. When the form is submitted 1 submit > data to the web server requesting a parameter 2 response from the server with current data in RAM but this is not the requested parameter but the previous parameter from the last request. 3 submit > data to web server requesting a parameter 4 response from the server with the updated value in RAM from my request in step 1 The action between the HMS module has to get the data from the
  2. HI DavejI have been away for a few weeks and tonight was my first time I have had chance to look at my project.I think I may have narrowed the problem down to the input fields.I think what is happening is that the fields are holding the data from the previous submit, it's like the input fields are being cached in some way but i'm not entirely sure. <form action="testme.html" method="post" id="testme" > <input type="text" id="read" name="read" value="<?--#exec cmd_argument='printf("%i",InReadUword(44))'-->"></input>
  3. Hi Davejthey just list the funtions in the manual and not much detailI put a call in today so i am awaiting a reply.still trying a few things, i will update thepost when i have something.Thanks for your help on this DavejMark
  4. Hi DavejThese commands are used to read and write to the web server.printf is used to display data read from the web server.scanf reads the contents of the nameed input box and writes it to the server.You will see that the Read input box is updated after the second time the submit button is pressed.Mark
  5. Hi Davej Here is a cut down version of my code The input box on the left is the value read from the server The input box on the right is the value to be written to the server. If you enter 200 in the write box and hit sumit the value will be sent to the server You will see that the read input box will still read the previous value. Hit the submit button again and you will see the value 200 appear. If you do get a spare moment and would like to take a look at the page on my test module http://24.235.162.16:1066/testme.html <!DOCTYPE html><head> <meta htt
  6. HI DaveJI really appreciate your help on this one as my knowledge of HTML is just as a beginer and i'm not really clear on the event handling on the Web server.The Embedded Web server is part of a module called an Anybus S interface from HMS Industrial Networks. The module fits into a piece of your own hardware to allow the hardware to connect to an industrial network, In this case I have the board in a weighing system.the module ishttp://www.hms.se/products/products.asp?PID=94&ProductType=Anybus-SThe actual delay will be from the weighing harware updating the duel port RAM. When the weigh
  7. Hi DaveJThanks very much for the reply.The web server is just reading old data in the RAM because the RAM is slow to update the web server hence the delay.On the second time the submit button is pressed the data has been updated in the RAM so the Web server reads the updated data.When I submit the form I do get a responce back in the form that states "Write OK", is it possible to capture that returned status and maybe then I could send the read function to the server with the <?--#exec cmd_argument='printf("%i",InReadUword(44))'--> to get the updated data ?Mark
  8. Here is a niggling problem I have with an embedded web server.The issue i am having is when I submit my form the form data is submitted to the web server, the web server updates a duel port RAM chip and will then read from that duel port RAM. The problem is the action of reading and writing to the duel port RAM causes a delay in data being passed back to and Web Server.If I write for example the value selected in the option list and submit the form the value is written to the server and when the form reloads it attempt to read the values written from the duel port RAM. The problem is that I al
  9. thescientistMay I first say thankyou very much for your help and time you spent on the sample code, I managed with your help to find the problem.After loading your code and adding the server code I ended up with thinks almost working however I started to look at how the server is processing the saving and loading of the "setting.cfg" file.It appeared that the file would be read with the<?--#exec cmd_argument='IncludeFile("settings.cfg")'-->function and then immediately written with the<?--#exec cmd_argument='SaveToFile("settings.cfg","#",Overwrite)'-->I wondered if I moved the save
  10. Thanks very much for your reply thescientist I am using Firebug to debug and my file is being read into the "hidden" input field element. The data in the <input> id= "settingFile" value seems to have all of the text from the file when I look at the debug panel in Firebug. value="designUnits#3speedUnits#0save#Submit QuerysettingsFile# What I have found is the following. If I make a selection on the option list and hit submit the file is saved but the option list revert back to when the form was loaded. If I go to another page in my site and type in the url the "settings.html
  11. I have been working on this problem for a while now and don’t seem to be able to find a solution and was wondering if someone could help. I have a form which is submitted and passes two form object values and saves them to a text file held on the server, this works ok. After the submit button is pushed the file is saved with the function <?--#exec cmd_argument='SaveToFile("settings.cfg","#",Overwrite)'--> I read back the contents of the file and try to set the "selectedindex" on my speedUnits and rateUnits option list, however the option lists "selectindex" does not se
  12. HI Dave Thanks for the hints I have my code working thanks to you. I changed my submit buttons to type "button" and pass the values in to the function that I need to write. { document.getElementById("t1").value = value_in; document.getElementById("resets").submit(); alert("Totalizer reset"); document.getElementById("t1").value =0; document.getElementById("resets").submit(); } Many thanks for your help
  13. I have noticed that I have to use input type as "submit" or the value of 256 or 512 is not written to the applicaton on the server. Your third suggestion may be the answer, I will take a look. Many thanks for your help and suggestions.
  14. It’s my first post so here I go. I have been taking a course on HTML and I’m already familiar with C. I need to submit a value from a hidden input field when the form is submitted, this works fine, however what I need to do is submit a new value 2 seconds after the first one has been submitted. I need to make this happen without any additional buttons. The code below (without CSS) writes the value to my application just fine but I dont know how to submit a second value 2 seconds later. Hoping someone can help <!DOCTYPE html><html><!-- InstanceBegi
×
×
  • Create New...