• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3611
  • Last Modified:

Adjust IE setting from oracle forms

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
babunagendra
Asked:
babunagendra
  • 2
  • 2
1 Solution
 
BobMcCommented:
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
 
babunagendraAuthor Commented:
i tried it out it says unknown protocol JAVASCRIPT.how to do i solve it now.
0
 
babunagendraAuthor Commented:
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
 
BobMcCommented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now