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.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Launch</title>
<script type="text/javascript">
function fnSubmit()
{
// Construct the Report window's features ----------------------------
var vFeatures = "menubar=yes,toolbar=no,status=yes,resizable=yes,scrollbars=yes";
// Open a new window and display "Please Wait" HTML page -------------
wfReport = window.open("/approot/baseapp/wait1.html", "wfReport",vFeatures);
wfReport.focus();
// Move the window to the top left corner of the screen
wfReport.moveTo(0,0);
// Resize the window to the screen size
wfReport.resizeTo(screen.availWidth,screen.availHeight);
// Submit the report after 500 milliseconds --------------------------
// The 500 milliseconds is to allow wait1.html to load
// After the submit is performed, the animated gif is replaced by itself
// It becomes animated again!
setTimeout("document.forms[0].submit(); wfReport.document.images['clock'].src = wfReport.Image1.src;", 500);
}
</script>
</head>
<body>
<form method="post" target="wfReport" action="/ibi_apps/WFServlet">
<input type="hidden" name="IBIF_ex" value="test1.fex">
<input type="button" value="Run Fex" onClick="fnSubmit();">
</form>
</body>
</html>
The "Please Wait" HTML file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Please wait...</title>
<script type="text/javascript">
//Preload wait image into memory ---------------------------
var Image1 = new Image();
Image1.src = 'http://i32.tinypic.com/244cmfc.gif';
</script>
</head>
<body>
<div style="margin-top: 100px; text-align: center;">
<span style="font-family: Arial, sans-serif; font-size: .9em; color: navy;">
Please wait for the report to display</span><br><br>
<img name="clock" src="http://i32.tinypic.com/244cmfc.gif">
</div>
</body>
</html>
In IE 6 and earlier (I'm guessing), the image stops being animated when the form is submitted. (It seems to work without problems in Firefox 2). To solve this problem, I pre-load the image into memory and then, after the form is submitted, I reload the image. This makes the image animated after form submission. This is done in the launch page:
Is there any way of displaying the "Please Wait..." message without opening a new window ? I am asking because, if there is a pop up blocker, that window will never open.
Thanks.
Shravan
7.7.03, Windows 7, SQL Server 2005
Posts: 92 | Location: Carmel, IN | Registered: May 09, 2008
This relies on the please wait message placed in a new window, it cannot work in the same window, because after replacing the current location with the please wait message, you can't submit the form, it isn't there any more.
The blocker can be configured to allow popups from the WebFOCUS 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
hi Francis! Thank you for this thread! it's very useful!!!
I've added 2 or 3 things that I want to share
<script type="text/javascript">
function fnSubmit()
{
wfReport.location = "/html/Wait.asp";
// Submit the report after 500 milliseconds --------------------------
// The 500 milliseconds is to allow wait1.html to load
// After the submit is performed, the animated gif is replaced by itself
// It becomes animated again!
setTimeout("document.forms[0].submit();wfReport.document.images['clock'].src = wfReport.Image1.src;", 500);
var fr = document.getElementById ("wfReport");
fr.style.display="inline"
}
function ifrHide(){
var fr = document.getElementById ("wfReport");
fr.style.display="none";
}
</script>
the function ifrHide() hides the iframe, and when the function fnSubmit() will be called, the iFrame will be shown with the default value "inline"
on body load: the iframe will be hidden on button click: the iframe will be revealed over the form, hiding it, and the form submitted the iframe position is on the absolute upper left corner of the page
so the sensation will be that the report will be displayed in a new page
i've tested this with IE7
thank you again ciaoThis message has been edited. Last edited by: ExoR,