HI, Iam using webfocus toolkit which has got cool java script functions to validate parameters in the html launch page. Iam trying to use it, but the validation function is not getting fired. I have copied 1)all the gif, js and html files to approot/look_and_file/toolkit folder. 2) Added beow code after inside my html launch page. <script type=text/javascript> function staticLoadScript(type,url) { switch(type) { case 'CSS': document.write("" href='" + url + "'" + " type='text/css'>"); break; case 'JS': document.write('<script src="' + url + '"' + ' type="text/JavaScript"><\/script>'); break; default: break; } } staticLoadScript("JS","/approot/look_and_feel/toolkit/wf_toolkit.js");
3) Added WFT_getDefaultRequestListInfo('button1'); inside window_onload() function. 3) Added WFT_addValidation(1,"HASVALUE","Please select a value for Dept","edit1"); inside button1_OnClick function.
It is firing my Alert("test1");, but not the validation function which suppoed to throw error when I don't enter any value in the Dept field.This message has been edited. Last edited by: Kerry,
WebFocus 7.7.01 Desktop: Windows and Server: Unix Excel, HTML, PDF
This message has been edited. Last edited by: Kerry,
WebFocus 7.7.01 Desktop: Windows and Server: Unix Excel, HTML, PDF
October 14, 2009, 04:45 AM
GamP
Can you tell me where you got this webfocus toolkit?
I can't find a reference to it - maybe I'm looking in the wrong places, so I thought to ask where you got it. Without it, the alert shows but nothing happens further since I don't have the WFT functions.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
October 14, 2009, 09:53 AM
Francis Mariani
DD,
I'm sure a lot of us are interested in finding out where you got this "toolkit".
As well, please put all code between
[code]
[/code]
tags so that the HTML and JavaScript does not get garbled.
Thank you,
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
October 14, 2009, 09:57 AM
Francis Mariani
Google "webfocus toolkit" and the first hit is this thread!
The second hit links to a company called Digital Frontiers, "Makers of the revolutionary HVS Color and the new Webfocus Toolkit" a PhotoShop plug-in. The link leads you no where.
The third hit links to another company selling the same PhotoShop plug-in - they're no longer in business.
Weed out the plug-in by Googling "webfocus toolkit" -hvs and the only hit is this thread!"
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
October 20, 2009, 04:15 AM
<JJI>
DD,
could you please tell us where you've got this WebFOCUS toolkit? Can you download it from the Information Builders site?