Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] How to include a CSS file in -HTMLFORM

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to include a CSS file in -HTMLFORM
 Login/Join
 
Silver Member
posted
Hi all,

Does anyone know how include a CSS file in an -HTMLFORM of a fex? the CSS file needs to be separated since the CSS file will be shared among other HTML pages and these HTML pages are hand-coded(Not by the Composer) and embedded into fexes.

I tried to save the CSS file as "css_file.css" and "css_file.sty" in the the "/ibi_html/javaassist" directory. After that, used the include line:
<link rel="stylesheet" type="text/css" src="/ibi_html/javaassist/css_file.css">
in a fex. However, it does not work this way.

Thanks,
Pku

This message has been edited. Last edited by: Pku,


Thanks,
Pku

Focus, WebFocus 8201 on Windows
 
Posts: 43 | Registered: May 28, 2008Report This Post
Guru
posted Hide Post
Place the css file on web server that WebFocus can access. Then use the full path to the CSS file.
You might have to get with your Network/Web Server guy to achieve this.
  
<link rel="stylesheet" type="text/css" href="https://mywebsite.com/css/css_file.css">


WebFOCUS 8.1.05M Unix Self-Service/MRE/Report Caster - Outputs Excel, PDF, HTML, Flat Files
 
Posts: 320 | Location: Memphis, TN | Registered: February 12, 2008Report This Post
Virtuoso
posted Hide Post
I don't think you're supposed to put stuff in ibi_html; definitely not in the javaassist directory. Put it in your application folder instead. If you're using the deploy mechanism in Dev Studio, deploy it to your web-server - not along with your focus procedures to the WebFOCUS server. That probably won't work (unless it was configured to).

Still, your style-sheet should have worked if you put it in ibi_html.
You can test whether your style-sheet can be found by opening the URL directly in a browser: http://your-web-server/ibi_htm...aassist/css_file.css

(IE will ask you what application to open it in, proper browsers will recognize the mime-type and display the contents)


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Silver Member
posted Hide Post
Absolute URL path worked well. I've put the file in the ibi_html folder and referece it as an absolute url path in the HTMLFORM.

<link rel="stylesheet" type="text/css" href="https://mywebsite.com/ibi_html/css_file.css">


Thanks to Mighty and Wep5622.

Pku


Thanks,
Pku

Focus, WebFocus 8201 on Windows
 
Posts: 43 | Registered: May 28, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] How to include a CSS file in -HTMLFORM

Copyright © 1996-2020 Information Builders