Webserver and javascript GET and POST

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

Webserver and javascript GET and POST

Jump to solution
6,436 Views
kappa74
Contributor IV

Good morning,

I use a MCF52255 con MQX3.7. I have a file in Javascript which builds all the HTML pages. So the HTML pages are not managed from the webserver of the micro but I need a webserver that:

1 - Send the javascript file to the browser at the moment the web browser connects itself to the web server

2 - Answer to the GET e POST questions in Javascript protocol

 

The web server lybraries in MQX3.7 can satisfy the points above and how?

Do I need change the lybraries and how?

 

Thank you

Best Regards

kappa74

Labels (1)
Tags (1)
0 Kudos
1 Solution
387 Views
DavidS
NXP Employee
NXP Employee

Hi Mirko,

I'm not expert but hopefully can help point you in right direction.

Please review the httpd files in following MQX path:

C:\Freescale\Freescale MQX 3.8\rtcs\source\httpd

There is HTTPD_REQ_GET and HTTPD_REQ_POST methods.

I think you can just use the MQX web server to server your web page that has your javascript back to the client.

We implement a CGI like interface to allow dynamic content to be generated on the device and passed back to the browser for display (AJAX stuff).

Good example to look at is in the RTCS path:

C:\Freescale\Freescale MQX 3.8\rtcs\examples\httpsrv

Regards,

David

Regards,

David

View solution in original post

0 Kudos
1 Reply
388 Views
DavidS
NXP Employee
NXP Employee

Hi Mirko,

I'm not expert but hopefully can help point you in right direction.

Please review the httpd files in following MQX path:

C:\Freescale\Freescale MQX 3.8\rtcs\source\httpd

There is HTTPD_REQ_GET and HTTPD_REQ_POST methods.

I think you can just use the MQX web server to server your web page that has your javascript back to the client.

We implement a CGI like interface to allow dynamic content to be generated on the device and passed back to the browser for display (AJAX stuff).

Good example to look at is in the RTCS path:

C:\Freescale\Freescale MQX 3.8\rtcs\examples\httpsrv

Regards,

David

Regards,

David

0 Kudos