Webserver and javascript GET and POST

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Webserver and javascript GET and POST

跳至解决方案
6,901 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
852 次查看
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 项奖励
回复
1 回复
853 次查看
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 项奖励
回复