Jump to content

Hladil L.

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Hladil L.

  1. Hi,

    I have been having difficulty with this one for a while. I have managed to get the advanced web server up and running on my Vision 130 and I am able to access the home page that I have set up (Start.htm) that is stored on the SD card. However, when I try to access any other pages it always seems to load up the Start.htm page, not the page I'm trying to access. I have even tried going to /web/ but with no luck.

    Am I missing a configuration? I'm unclear why I can't seem to load any other page other than the Start.htm.

    Many thanks in advance!

    I had the same problem. think that you may have set the link HTML code wrong.

    Make link to new page on your Start.htm page - for example page Start2.htm and load it in Web directory of SD card, HTML code for link should contain something like <a href="/Web/Start2.htm">

    Then try to click on this link - it should work.

    Look in web server help on HTML code examples on pages 9 and 10.

  2. hi, I'm using the enhanced web server with a V570 for controlling lights and shutters. but sometimes I can not acces the webpages. Then I have to switch of the PLC and switch it on to have acces on the web pages. When I look to the state of ethernet socket 1 (configured TCP_RAW/ port 80 / Slave) the state is 2 (listen) and everytime I want to acces the webpages, the counter SDW 19 ( socket 1 RXD total sessions) is incrementing. What could be the problem ?

    Well I noticed the same thing. I believe it can happen if you click in browser on link to another page during web page update from PLC. I didtn't found workaround for this either.

    However I found some other bugs in enhanced webserver

    • sometimes happens that served string overflows and gets written to variable XL128, resulting in disrupting all web pages with this string. I suggest to add reset XL128 before each TCP RAW SEND
    • I wrote some Javascript AJAX code to dynamically change web page variables instead of whole page refresh tag. When I used embedded java code, web server disrupted javascript code containing [ and ] characters (array indexes) even if they did'nt have MI or other strings recognized by web server replacing functions. Workaround - moved javascript code to external file with .js extension
    • this is not a bug but it well be very usefull to extend HTM replacing functions of web server to .XML files too. It would be very useful for creating AJAX pages.

    I would debug these problems, but I can't because web server routines are password protected. I hope the original author reads this and does something about it.

    Well even in this stage, it must have been a huge piece of work to program entire HTTP server and I would like to say thanks to web server author.

×
×
  • Create New...