Solved

Adjust IE setting from oracle forms

Posted on 2004-09-08
4
3,486 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
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 shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

739 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