I have added the following to make things easier to "inject" HTML and CSS
in to an already open page in Gnoga.Gui.View (see test/bootjs.adb)
procedure Load_File (View : in out View_Base_Type;
File_Name : in String;
Class : in String := "";
ID : in String := "");
-- Load contents of _local_ File_Name in to a <div>.
-- Unless path given uses Gnoga.Server.Templates_Directory
procedure Load_HTML (View : in out View_Base_Type;
File_Name : in String;
Class : in String := "";
ID : in String := "");
-- Load contents of _local_ HTML file called File_Name
-- All contents before <body> and after </body> will be discarded.
-- <body></body> will be replaced with <div></div> and Class and ID
-- set on them.
-- Unless path given uses Gnoga.Server.Templates_Directory
procedure Load_CSS (View : in out View_Base_Type;
URL : in String);
-- Appends <style src=URL> to document head
-- Unless path given uses Gnoga.Server.Templates_Directory
procedure Load_CSS_File (View : in out View_Base_Type;
File_Name : in String);
-- Load contents of local File_Name in to a <style> block and appends it
-- to document head.
-- Unless path given uses Gnoga.Server.Templates_Directory
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list