File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 22
33To use WebForms Core, first copy the WebForms class file in this directory to your project. Then create a new View file similar to the one below.
44
5- ``` php
5+ ``` julia
66using HTTP
77
8- # Assuming WebForms and InputPlace modules are already defined in the project
98include (" WebForms.jl" )
10- include("InputPlace.jl")
119
1210function handle_request (req:: HTTP.Request )
1311 if HTTP. hasheader (req, " Content-Type" ) && occursin (" application/x-www-form-urlencoded" , req. headers[" Content-Type" ])
@@ -32,7 +30,6 @@ function handle_request(req::HTTP.Request)
3230 end
3331 end
3432
35- # HTML form for the GET request
3633 html = """
3734 <!DOCTYPE html>
3835 <html>
@@ -60,7 +57,6 @@ function handle_request(req::HTTP.Request)
6057 return HTTP. Response (200 , html)
6158end
6259
63- # Start the HTTP server
6460HTTP. serve (handle_request, " 127.0.0.1" , 8080 )
6561```
6662
@@ -71,4 +67,4 @@ As you can see, the WebFormsJS script has been added in the header section of th
7167
7268The latest version of the WebFormsJS script is available through the link below.
7369
74- https://github.com/elanatframework/Web_forms/blob/elanat_framework/web-forms.js
70+ https://github.com/elanatframework/Web_forms/blob/elanat_framework/web-forms.js
You can’t perform that action at this time.
0 commit comments