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.
I pointed to an image in the Web Applications area of Dev Studio, which is on the web server, but I guess Dev Studio copies that image to C:\Users\francism\AppData\Local\Temp\ and to MRE.
Help!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
I wondered how ddm_000af.png turned into max2.png ...
Francis, can CSS actually resolve this:
style="BACKGROUND-IMAGE: url(app/max2.png);
Unless the base URL gets set behind the scenes to the MRE domain's cryptic directory name and so "app/" would be relative to that, I don't see how CSS could understand what "app/" maps to ... but I really don't know how MRE operates at that level.
Another theory would be that some of the magic ibi*.js scripts are doing something to the INPUT element in the DOM after rendering the HTML therefore resolving those references to an actual image url, but being that the case, why doesn't it work in any other browser? As far as I know, Firefox is supposed to be supported in 7.7
Sorry, not much help here. I'm just lending my shoulder.
IE resolves relative URL's like "app/max2.png" differently than the other browsers do.
You're probably best off using an absolute URL, based in the document-root. For example "/app/max2.png" (I'm just assuming here that the app directory is at your web server's document-root).
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 :
I've been scolded for hand-coding within HTML Composer. I want to point-and-click to add the background image. HTML Composer seems to decide where the image is ultimately stored, no matter where it exists on the server.
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
Is this due to Tomcat providing HTML and Java server capabilities? I have also noticed the same and we do not have a separate HTML server installed -- we use Tomcat for everything.
I think the easy solution is to put such images in your site's CSS file. IIRC, you already do provide your own anyway. If you didn't already, just copy the link-tag for that into your HTML source. That's one of those operations that are safe to perform; at least, it doesn't give us trouble on 7.6.11.
Concerning the behaviour where Dev Studio copies files to a local project directory when you reference a file on the web-server, I was told that Dev Studio cannot know where the file will eventually be on the server once the project gets deployed, so they make a local copy instead. A consequence of that decision is that you end up with several local copies of, for example style-sheets, that were in different stages of development when the copy was created... Ouch!
There is some stuff that you're currently really better off hand-copying into your HTML, such as URI-references to files on your web-server. Perhaps at some time in the future, IBI will actually come around with a proper solution for this issue, but by then we will be complaining about the lack of brain-plug support and that it still uses lightspeed-bound particles for communication.
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 :
If I type the URL of the image in the address bar, I do see the image. If I use the full URL, including server name, it works in both IE and Firefox.
Because we have multiple environments, (Dev, UAT, Prod) I added a Custom Setting in the Admin Console that provides the Web Server URL which can be used in the fex that calls this HTMLFORM.
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
so any styling or images applied to it is not recognised in Mozilla. I too had the same problem where the styling had gone in Firefox but was working perfectly in IE.
Our team is researching on how can we achieve the same functionality in Mozilla.
Webfocus 7.7.03 Windows XP Excel, PDF, HTML, APDF, AHTML, Maintain
Originally posted by Swap: I read somewhere that Mozilla doesn't recognizes
<input type=button>
That is nonsense.
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 :
Or, if all files (HTML, CSS and image) are in the same directory, leave out the path information altogether:
background-image: url(max2.png);
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 :
For the record, the difference between IE 6 and other browsers with resolving relative URI's is in where they resolve the URI relative from.
Most browsers (including IE7 and up) resolve a relative URI from the location of the style-sheet, but IIRC, IE6 and earlier resolve it from the location of the html page. That's not a problem as long as your style-sheet is in the same directory as your HTML is, but that's frequently not the case. I don't have IE6 available to me here, so I couldn't verify it actually behaves like this, but I do recall seeing it do so.
At first sight, resolving the URI relative to the style-sheet path seems a bit strange, but imagine what would happen if you use a remote stylesheet. If the URI's would be relative to the page, all references in the style-sheet would need to be absolute (remote) references, like
url(http://mypopularstylesheet.com/icon.png);
Especially for people who host 3rd party style-sheets on different servers, that would be a problem! They'd have to tailor each copy of the style-sheet to the server it resides on...This message has been edited. Last edited by: Wep5622,
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 :
Originally posted by Prince Joseph: This is what we do to produce background images for buttons via css. Seems to show up just fine in html composer/chrome/ie/ff
I know this is an old thread, but it's exactly what I'm struggling with. The above seems like a great solution to me, but maybe I'm doing it wrong. I created a CSS file in my Other folder in the MRE domain, where I also have my images, and when I include that CSS file in my HTML page, nothing shows in the Composer, IE shows only one of my images, and Firefox doesn't show any of them. Incidentally, it looks like Firefox also doesn't recognize that the CSS changed, as no matter how many times I refresh, it won't pick up changes.
Originally posted by J.Hines: In the HTML Composer, I'm just going to the Insert menu and saying CSS/Scripts, then pointing to my CSS file.
That's probably why it doesn't seem to update then. If you use the Insert CSS file menu item in HTML Composer and actually select a file, it creates a local copy of the file in the current project directory. If you then update the original file, the local copy is still a copy of the old version.
Apparently you can also specify a URL in that dialog-window, which is totally counter-intuitive but is reported to work. I generally just hand-edit the HTML file after Composer is done with it and add CSS references by hand.
Why you're not seeing the image at all in Firefox is a bit strange, but possibly FF ignores the line as being invalid due to the quotes (which aren't according to the CSS spec).
Does this help?:
background: transparent url(/approot/images/submit_button.png) no-repeat center center;
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 :