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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Using JS
 Login/Join
 
Gold member
posted
I have placed some JS code in the OtherFiles directory. I'm using Dev Studio MRE 5.2.3. I need to know how to reference the image files. All of the images the JS uses is located in OterFiles. Thanks
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
<Tim Howard_ABCBS>
posted
The HTML, Maintain, Master Files, Other and Procedures directories are just virtual folders. Your image files are actually in the same directory as your html file:

http://server/approot/sampapp

You should be able to access them directly.

myImage = new Image();
myImage.src = "image.jpg";

You can also use the full path:

myImage.src = "http://server/approot/sampapp/image.jpg";
 
Report This Post
Gold member
posted Hide Post
I have this code in a HTML launch page. The image is not being displayed. Any Ideas.

var img = document.createElement('IMG');
img.src = 'app/down.gif';
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
<Tim Howard_ABCBS>
posted
Since the files are physically located in the same directory, you should not need to prefix it with the 'app' directory.

EX:
img.src = 'down.gif';

Try removing the 'app' directory and see what happens.
 
Report This Post
Gold member
posted Hide Post
I've tried that without success. I've also tried using the full path as you mentioned before.

Is there any settings in the setup of web-focus that would prevent this from working?
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
<Tim Howard_ABCBS>
posted
Try using this path:

EX:
img.src = '../approot/sampapp/down.gif'
 
Report This Post
Expert
posted Hide Post
Mike,

I have found (over the years) that referencing image files (or JS and/or any other files) is somewhat hap-hazard and is it is best to place them on the web server and reference them accordingly.

On your web server install of WF (aka the "client" server) you should have the IBI directory. A sub directory of this is APPS and is internally referenced by WF as APPROOT (via one of the config files). As this is the same for any installation, having code like -
<img src=/approot/baseapp/imagefil.jpg border=0>
will ensure that your code is tranportable between installations.

If you want to have specific folders for images, javascript, cascading style sheets etc. then just set them up under the APPS folder and reference them as in the code above.

More maintainable and easier to remember!! Smiler

T



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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Gold member
posted Hide Post
Tim, Thanks for all your help. My support team was finaly able to Figure out how to make this work. I wish I could explain it but I can't because at this point I have no idea why it works. I know it has something to do with the web server. I don't have access to the server so some other method was used to tell focus where the image files where located. Again Thanks.

When I figure out how this works I will make another post.
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders