Solved

Adjust IE setting from oracle forms

Posted on 2004-09-08
4
3,379 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

760 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now