This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

enet_io file server

Hi,

With regard to the TM4C129x enet io example:

The javasrcipt_load.js code is replicated at the top of the javascript.js.
Why?
And why not have just the javascript.js?

  • Hello Paul,

    It is the manner in which the makefsfile parses the files from the file system directory

    Regards
    Amit
  • Hi Amit,

    Thanks for the reply.

    I looked at the source code for the makefsfile tool and it just parses whatever you throw at it.

    This doesn't  explain why "index.htm" lists both scripts as source files.

    Its the only .htm file in the enet_io project that makes a reference to both .js files while the rest of the code seems to only need the javascript.js file.

    And if I check the enet_lwip project folders, they only have the javascript.js as part of the project.

    Has line 10 of index.htm and the javascript_load.js file been left in the project by mistake?

    I've not rebuilt this project yet but I can't see why it wouldn't work with just the javascript.js if I remove line 10 and the javascript_load.js file.

    Before I do, perhaps I'm still missing something...?

    Regards

    Paul

  • Hello Paul,

    It may be that the load file is not needed and got included. It would be worth trying after editing the index.htm and removing the javascript_load.js file.

    Regards
    Amit