Solved

Adjust IE setting from oracle forms

Posted on 2004-09-08
4
3,470 Views
Last Modified: 2013-12-11
I have a form and i have a push button clicking on which i invoke a url .i did this using fnd_utilities.now i want to adjust the settings of the browser window.i want to hide address bar,file and edit. can this be done using fnd_utilities or web.show_document.if yes,how??
0
Comment
Question by:babunagendra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
BobMc earned 500 total points
ID: 12012202
Heres an example from Oracle

Oracle Forms - Version: 6.0 to 9.0
Information in this document applies to any platform.
Goal
This article will explain how to use Java Script with the Forms Built-in "WEB.SHOW_DOCUMENT". It will illustrate how the target browser can be manipulated when launched. This is especially helpful when attempting to hide the browser's URL or when attempting to simulate the Forms "separateFrame=true" look-and-feel.

The information in this document may not work correctly with IE 6.0 if you have applied recent service packs. This is due to a change in microsoft security enhancements.

The information provided in the article will only work with browsers supporting Java Scripting. Although most of today's browsers support Java Script, the feature can be disabled by the user.
Fix
Here is an example of a typical WEB.SHOW_DOCUMENT call with a hard-coded URL:

WEB.SHOW_DOCUMENT ('http://www.oracle.com', '_blank');



Here is an example of a WEB.SHOW_DOCUMENT call with a hard-coded URL, but launched with Java Script. The resulting browser will have its menu, toolbar, and status bar hidden:

WEB.SHOW_DOCUMENT ('javascript:window.open("' TARGET=_blank>http://www.oracle.com","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=yes");self.close()','_blank');



Here is an example of a WEB.SHOW_DOCUMENT call which uses a variable to create the URL. It will be launched with Java Script and the resulting browser will have its menu, toolbar, and status bar hidden:

Declare
v_URLin varchar2(255);
v_URLout varchar2(255);

Begin
v_URLin := :block.item;
v_URLout := 'javascript:window.open("'|| v_URLin || '","","fullscreen=no,titlebar=no,location=no,toolbar=no,menubar=no,status=no,resizable=yes");self.close()';
WEB.SHOW_DOCUMENT (v_URLout, '_blank');


End;

0
 

Author Comment

by:babunagendra
ID: 12019979
i tried it out it says unknown protocol JAVASCRIPT.how to do i solve it now.
0
 

Author Comment

by:babunagendra
ID: 12022378
i tried it in ie 5.0 as well it says the same error message FRM92020  unknown protocol javascript.isn't javascript.open_window an in built function.do i need to download anything if yes where to.
0
 
LVL 7

Expert Comment

by:BobMc
ID: 12027854
The lastest set of Microsofts security fixes now prevent the use of javascript: as a protocol.
The workaround is to have a separate file with the javascript in, and call it instead

web.show_document('http://www.myserver.com/open.html',_self);

and open.html is a page containing the javascript to open the window.

Thats progress for you....
Bob

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that useā€¦
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question