Focal Point
Encapsulating/packaging HTML

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5141018331

November 19, 2004, 02:47 PM
jbmuir
Encapsulating/packaging HTML
Hello,

Just wondering how folks encapsulate/package HTML so that components can be reused using Webfocus.

For example, say you've got a nifty bit of date selector HTML and Javascript and you want to encourage folks to use it rather than have them re-invent the date selector for each launch page that requires one. How do you package stuff in webfocus?
November 19, 2004, 02:56 PM
susannah
save your focus table output to a filename inside your agent and then display that table(s) within an html shell you write at the bottom of your fex. In that shell, you can drop in all the javascript you want. What you can't do is make it an .asp page...really really needed feature.
TABLE FILE CAR
..dostuff
ON TABLE HOLD AS MYTABLE FORMAT HTMTABLE (or FORMAT HTML if you're using multiple choice dd's)
END
-RUN
-HTMLFORM BEGIN
[HTML>
[HEAD>
[SCRIPT .....whatever you have
[/script]
[/head]
[body>
<!-- WEBFOCUS TABLE MYTABLE -->
[/BODY>
[/HTML>
-HTMLFORM END
.......any help? or have i misunderstood you completely?
...wait i think i've misunderstood you. are you using a gui tool to build launch pages? and are they within mre? And you haven't got output yet, you're wanting to provide an existing logic module for one of your selector boxes?
...If so, its easy to do in a self serv...you make your pages .asp and use a server side include to the logic block, or make the html and load the js function. but you cant build it using a gui tool.
... if you're in mre, you're stuck with hmtl pages and you'll have to hand edit to preload the js function, or ... change the html launch page to a fex itself, and filedef the file where your logic block is and use a !ibi to include it in your html (now a fex).
...is this TMI?
November 19, 2004, 03:32 PM
jbmuir
Sorry, should have been clearer about my intentions. Let's say I'm using Developer Studio and I want to create a launch page that will run a focexec. I'd like to reuse a nifty bit of HTML and javascript developed by someone else. How do folks package up the javascript and HTML so that others may use it?

We're running with DS on Windows and the wfclient (WFServlet) and reporting server on unix. No MRE.

We tried enabling SSI's in Tomcat but that has the unfortunate side effect of writing over your .htm file if you "right-click and run" from within the "Data Servers" section of DS. So it looks like SSI's are not going to work there.

Were using Webfocus 5.3.2

Thanks for any ideas you may have.