×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Hi, I want to close a HTML from

Hi, I want to close a HTML from

Hi, I want to close a HTML from

(OP)
Hi,

I want to close a HTML from from Webfocus. What is the syntax?

Thanks
Thambaiya

RE: Hi, I want to close a HTML from

Hi!

HTML embedding goes like this:

-HTMLFORM BEGIN

<form action="ibi.exe" method="post">
 ...
</form>

-HTMLFORM END

Hope this helps
Eva

RE: Hi, I want to close a HTML from

(OP)
Hi Eva,

Probably, I did not tell you properly what I wanted to say. From a HTML form, I am excutig a FEX procedure. At the end of the FEX procedure, I want to close this HTML form that invoked the FEX procedure. Basicaaly, I need to close the HTML form that executed the FEX procedure from the FEX procedure itself.

Thanks
Thambaiya

RE: Hi, I want to close a HTML from

Can you give me the code?

RE: Hi, I want to close a HTML from

(OP)
Hi Eva,

This is my situation. I will include the code also.

I have a HTML form that is used for accessing the reporting information from WebFocus.

After I have seen the reports, I click a button called 'Clean Up and Close' on the HTML form. When I click the button, it is supposed to execute a FEX procedure that would trigger a SQL stored procedure which will clean up the temporary reporting data on the temporary tables in SQL Server database. In addition to that, the HTML form needs to be closed. The user that clicked the button would not see anything on his screen except for the closing of the HTML form.

Now the HTML/Javascript code that I did for the 'Clean Up and Close' button:

<input type="button" value="Clean Up and Close" name="cmdReport" onClick="ExecuteFEX()">


function ExecuteFEX()
{

window.location.href = "///c:/cgi-bin/ibi_cgi/ibiweb.exe?ibif_ex=dpciin&ibiapp_app=(local)";

}

--Where 'dpciin' is the FEX procedure.

Now the 'dpciin' FEX procedure follows:


-* File DPCIIN.FEX

-* CALL THE SQL PROCEDURE TO TRUNCATE THE TABLES

-SET &TODAY=&YMD;
-SET &AJB = GETUSER(A8);
-TYPE USER &AJB

-TYPE &DATE

-SET &SESSIONID = &AJB || &TODAY || 'AAAAAAAAAAAAAAAAAAAAAAA';



SQL SQLMSS


EX GOA01_SQL.dbo.spgoa_dropusertables ,
'&SESSIONID';


END



- Now I want to close the HTML form from which I invoked the above procedure (In that form only, we had the button 'Clean Up and Close'. Can we do the coding of closing the HTML form in the above WebFocus procedure.

Thanks
Thambaiya

RE: Hi, I want to close a HTML from

Hi Thambaiya,

How to close the HTML form window... I guess this should work:

1.) Give the HTML form window a name with JavaScript
    var myName = 'anything';
    window.name = myName;

2.) Transmit the windows name to the fex via a hidden field in the form and catch it in a JavaScript section in the FEX.
I’m not sure whether you need to do this. Try step 3 first and if it doesn’t work try transmitting the window name.

2.) Include some JavaScript at the end of your FEX that cleans up all the temporary data from the report and in the database:

-HTMLFORM BEGIN
<script language="JavaScript">
 myName.close();
 self.close();
</script>
-HTMLFORM END


Best wishes
Eva

RE: Hi, I want to close a HTML from

(OP)
Thanks Eva. It works.

Thambaiya

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close