Solved

Adjust IE setting from oracle forms

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

Industry Leaders: 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!

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

691 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