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     Location for Javascript files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Location for Javascript files
 Login/Join
 
Gold member
posted
Hi,

Can somebody please tell me, where do I need to place my javascript(parameter validation) files, so that my html pages can access ?

Thank you.

Shravan


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Virtuoso
posted Hide Post
If they're just javascript, they would be either included in the html pages themselves or loaded via reference in the html pages. As for location, it doesn't matter much as long as they are either in a location known to your web server or referenced explicitly within your launch pages. I'm not a javascript guru, but never really had a problem with this. Maybe you can give a little more description/example of what you are trying to do.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Gold member
posted Hide Post
Darin,

They are just javascript files. But, I have a lot of validation in them. And most of the html files contain same javascript code.I don't want all of my html (parameter) files to contain same javascript (and a lots of it). So, I am trying to reference the javascript files which contain this script. I put my javascript file at the same place as where my html files are. The html files don't seem to recognise the javascript file.

I am not a lot experienced with WebFOCUS. So, I was wondering if there is a different way of doing it or there is some specific location for javascript files, so that my html pages can access them.


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Master
posted Hide Post
Save it under

drive\ibi\Webfocus71\ibi_html\javaassist

In your fex, add this SET JSURL=/ibi_html/yourfilename.js


Hope this helps,


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Gold member
posted Hide Post
Kamesh,

I am not using / referencing javascript from a fex. I am referencing it from an html file. That javascript file contains just the validation of parameter fields.


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Expert
posted Hide Post
Shravan,

... anywhere your HTML file can access it - think URL.

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
Expert
posted Hide Post
Kamesh,

It is not good practice to put user-developed code in the IBI provided directory paths. When you upgrade, you will have to move everything.

The best practice is to put it in a directory under ibi/apps. Your relative reference would then be /approot.

Shravan, I would recommend the same thing especially if your html file is also under /approot.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Gold member
posted Hide Post
Ginny,

Both HTML and Javascript files are in the same folder under ibi/apps.

And then in my HTML I am refering to Javascript file as...
  <SCRIPT id=clientEventHandlersJS type=text/javascript src = "Validations.js">


And yet, my HTML file is not able to access the Javascript file. Am I doing anything wrong ?


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Expert
posted Hide Post
<script type="text/javascript" src="/approot/app-name/file-name.js"></script>


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Thanks everybody. Thanks Francis.


7.7.03, Windows 7, SQL Server 2005
 
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008Report This Post
Master
posted Hide Post
Thanks Ginny, That makes sense.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Guru
posted Hide Post
I'm going to reopen this topic since I have the same issue but with a newer version , 8.0.07.

I inserted a JS file in HTML Composer and everything works fine from Dev Studio.
Everything is working from App folders.
Dev Studio/HTML Composer insists on copying a central, reusable version of this JS file into my working directory so that I now have multiple copies which I don't want.
When I look at the text, I see that the reference is for a local file and it is not found when I run from the BIP.
<script id=ITEM4 type=text/javascript rtFileName="date_valid_check.js">

Does anyone know of a way to insert this js file into the HTML Composer so that I can use 1 files for many HTML pages (different apps) and from the portal?

Thanks.



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
 
Posts: 274 | Location: Boston/New England | Registered: February 12, 2006Report 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     Location for Javascript files

Copyright © 1996-2020 Information Builders