Execute .html pages without opening it on browser

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Execute .html pages without opening it on browser

4,286 Views
utsavikalpesh
Contributor V

Hi.,

I am working on wen_hvac demo with codewarrior v10.6 and of mqx v4.0.

The demo is working fine. But What my requirement is, I want to Execute .html page through C code that is without opening html page on PC browser. Is it possible?

I know that mktfs.bat (window batch file) is converting html page into binary. But how can I execute,  I mean trigger or start  the code in tfs_data.c?

inshort I do not want to open my PC but want to execute the code of html.. How it is possible??

Regards

Utsavi Bharuchwala 

0 Kudos
4 Replies

1,879 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Utsavi Bharuchwala:

I think you can write this in the command windows :  mktfs.exe WEB_PAGES tfs_data.c

The WEB_PAGES is a folder but we must write the direcotry and not the folder name

Regards

Daniel

0 Kudos

1,879 Views
davidsa
Contributor I

I have a syntax question on building the html files within the filesystem/web of the HTTPS server example.

To create the tfs_data.c file from the specific folder filesystem/web what is the command syntax?

0 Kudos

1,879 Views
danielchen
NXP TechSupport
NXP TechSupport

The easier way is to copy the mktfs.exe file to the same folder were you are storing the HTML folder. For instance, create in C:\ the HTML folder and copy there your HTLM file. Then Copy the mktfs.exe to c:\ to finally execute this:

mktfs.exe HTML

This will generate the tfs_data.c file which should be included in your CodeWarrior project.

1,879 Views
utsavikalpesh
Contributor V

Hi Daniel,

Thanks for providing information.

In my project I have a web page on remote drive and I want to access it

through my TWR-K60D100M.

Now problem is there is no PC available,  but module and drive are

connected in LAN.

Say in .html file on "OnLoad Event" I tried to call some Javascript

snnipate. Now query is without loading .html page on browaer how can I call

Javascript snnipte....

So without PC browser can tfs_data.c call the *onLoad Event *?

Please let me infrom.

Regards,

Utsavi Bharuchwala

On Tue, Sep 29, 2015 at 9:04 PM, danielchen@fsl <

0 Kudos