Webserver and javascript GET and POST

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Webserver and javascript GET and POST

ソリューションへジャンプ
6,911件の閲覧回数
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 解決策
862件の閲覧回数
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 返信
863件の閲覧回数
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 件の賞賛
返信