Focal Point
Title Tag

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

August 03, 2006, 09:45 AM
dazed
Title Tag
I am using the -HTMLFORM command to produce the correct HTML output for my fex. Despite the fact that I have properly placed a title tag within the head section of my document, WebFocus refuses to print the title when I call the fex from another page. As such, the title of the window appears as http://whatever/ibi_apps/WFServelt instead of Producer Inquiry.

There are two weird things that happen: 1) when I view the resulting source (after calling the fex from another page) the code will contain the correct HTML except for the title tag. 2) The title tag prints correctly if I run the fex directly and not call it from another page.

Please keep in mind that I have placed my calling (index.htm) page both inside and outside of my current project and neither has worked. I originally thought that there might have been a cross-domain issue or something.

I would greatly appreciate any insight into the situation.


WebFocus 7.6 client: WinXP server: Windows 2003 Server Edition
August 03, 2006, 02:30 PM
Francis Mariani
This program's HTML TITLE tag works when run directly or called from an HTML page.

You mahe a subtle small mistake in the code, for example, do you have a -RUN after the END statement on the TABLE request?

TABLE FILE CAR
SUM
SALES
BY COUNTRY
HEADING
"Test"
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=8, $
ENDSTYLE
ON TABLE HOLD AS H1 FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>Testing the Title</TITLE>
</HEAD>
<BODY>
!IBI.FIL.H1;
</BODY>
</HTML>
-HTMLFORM END


-- wflover.

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 03, 2006, 03:30 PM
Tony A
Are you calling the page into a frame (iframe or frameset)? If so then that will be your problem as the title is set by the parent page not the child and is pure HTML and nothing to do with WebFOCUS.

Can you give us an example of how you are achieving this so that we may understand your problem more.

T (a wf-friend)



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
August 03, 2006, 11:17 PM
susannah
you might like this better
<HTML>
<HEAD>
<TITLE>Testing the Title</TITLE>
<style>
defaultStatus="Producer Inquiry"
</style>
</HEAD>
<BODY>
!IBI.FIL.H1;
</BODY>
</HTML>
-HTMLFORM END





In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
August 04, 2006, 11:09 AM
Wayne Atchley
I would check to make sure your search path is not finding another fex with that name before finding the one you are running...

I've seen this happen before Wink

Wayne