Post form support is now in Gnoga again, however it no longer rewrites the
bootstrap html file which was convenient but not practical in many cases. I
am still working on File upload, but I believe there is an issue
with multipart/form-data and have asked Dimitry to take a look.
For the most part Forms should be handled by overriding On_Submit or
responding to buttons instead of closing the current connection and getting
and posting a new URL, but there are times that may be desired too. For
"Get" nothing has changed and you can just use Window.Form_Parameter, but
for Post the results are returned to the application separate from the
connection using Gnoga.Server.Connection:
type Post_Request_Event is access
procedure
(URI : in String;
Accepted_Parameters : out Ada.Strings.Unbounded.Unbounded_String);
procedure On_Post_Request_Handler (Event : Post_Request_Event);
-- Event is called when a post request is received. Only those CGI
-- parameters in the common seperated Accepted_Parameters list will be
-- parsed and sent to the On_Post Event.
type Post_Event is access
procedure (URI : in String;
Parameters : in out Gnoga.Types.Data_Map_Type);
procedure On_Post_Handler (Event : Post_Event);
-- Called when a post has been received and parameters based on the
-- On_Post_Request event have been parsed in to Parameters
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list