Accessing the parent browser window using JNLP
I have a JWS appln which would launch a URL in the browser using BasicService of JNLP API.
This URL is always launched in a new browser. Is it possible to launch this URL in the browser which launched the JWS appln?
Can someone help me on this?
Hmm...interesting you should suggest this. I tried this prior to the other method. This too seems to be ignored. I'm running IE v6 on WindowsXP - with Java script enabled.
Is this a change that would require me to bounce the OAS? Any other thoughts?
Similar Messages
-
Hiding the parent applet window when using separteFrame=true
Using Oracle Forms 10.1.2.0.1 on UNIX Server (AIX) - IE version 6 - JInitiator 1.3.1.22
Hi. I've read some posts about using "HTMLbodyAttrs=onLoad='javascript:self.moveTo(1601,1201)'' in the formsweb.cfg file in order to hide the parent browser window, but for some reason this seems to be ignored after I added it to mine. The parent window remains open - no change seems to occur.
Do I need to bounce the OAS in order for this functionality to take affect? Or is there more that needs to be done in order to hide the parent window? Any help would be greatly appreciated. Thanks in advance.
Below is a portion of my formsweb.cfg file containing this code:
# HTML page title
pageTitle=Oracle Application Server Forms Services
# HTML attributes for the BODY tag
# HTMLbodyAttrs=
# immediately hide the applet parent window
HTMLbodyAttrs=onLoad='javascript:self.moveTo(1601,1201)'
# HTML to add before the form
# HTMLbeforeForm=
HTMLbeforeForm=<SCRIPT LANGUAGE="JavaScript">window.opener = top;</SCRIPT>
# HTML to add after the form
HTMLafterForm=
# Forms applet parameter: URL path to Forms ListenerServlet
serverURL=/forms/lservlet
# Forms applet parameter
codebase=/forms/java
...Infact,
Add javascript to the Oracle Forms basejinit.htm file
which permanently minimizes the parent browser
window.
Javascript can also be coded to provide a warning
to the user should an attempt be made to do a right
mouse click - close of the minimized browser
displayed in the MS Windows Taskbar.
I know very little javascripting.... Can you please give me a sample code....Thanks. -
Generated JNLP and closing the original browser window
Hi All, This is my first post so bear with me. Here is my problem.
I am using Web Start for an application.
I need to check to see if web start is installed or not.
If it is NOT I need to auto-install
if it is I need to call a servlet that dynamically generates the jnlp with the user that I passed in as <arguments/> maybe other arguments in the future also
I need to shut the original browser window
I will use this servlet in multiple web apps
I have it working like this but I don't think it is clean enough
I call a servlet with the syntax checkJREServlet?USER=username
this servlet writes out:
<html>
<body>
<h1>Installing Java Runtime</h1>
<OBJECT
CLASSID="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="0" height="0"
codebase="http://<myservler>/<plugins folder>/j2re-1_4_2-windows-i586.exe#Version=1,4,2,0">
<PARAM NAME="code" VALUE="redirectAndClose.class"> //my applet class
<PARAM NAME="archive" VALUE="RedirectUtil.jar"> //the jar where my applet class is stored
<PARAM NAME="archive_cache" VALUE="RedirectUtil.jar">
<PARAM NAME="type" VALUE="application/x-java-applet">
<PARAM NAME="where_to_next" VALUE="http://<myservler>/<mywebapp>/openAppServlet?USER=username">
You did not install Java.
<p>Please use the <b>Back</b> button to return to the previous page.
</OBJECT>
</body>
</html>
I have redirectAndClose which is:
import java.applet.Applet;
import java.net.URL;
import java.net.MalformedURLException;
import netscape.javascript.*;
public class redirectAndClose
extends Applet
java.util.Timer timer = null;
int seconds = 5;
public void start()
try
getAppletContext().showDocument(
new URL(getCodeBase(), getParameter("where_to_next")), "_blank");
//now we have to close ourselves in 5 seconds
timer = new java.util.Timer();
timer.schedule(new java.util.TimerTask()
public void run()
timer.cancel(); //Terminate the timer thread
destroy();
, seconds * 1000);
catch(MalformedURLException e)
throw new RuntimeException(e);
public void destroy()
super.destroy();
//close this window because we don't need it
JSObject win = (JSObject)JSObject.getWindow(this);
win.eval("window.opener=self;self.close();");
If try to close without a timer my entier session gets killed, including my webstart app that the openAppServlet wrote out the jnlp for
I hate this because it is not definite. I want to DEFINITELY know when my webstart app is open and I can close this original window. Like a whenWindowExists then close me but I have no clue how to do this.
The "where_to_next" location is a servlet that will dynamically build a jnlp file specific for each web app building it from parameters in web.xml for each individual web app. Basically I will have to store the actual name of the class, the jar href's I will be needing, title, vendor, description, basically everything that can be different.
So what I need is some kind of library so I can include it in multiple web apps EASILY. I don't want to have to write a document on how to include this thing. It should be self explainatory. I originally just mapped to the first servlet in my web.xml and then included the jar file but it appears to be non-existent in my project. Maybe some suggestions on what others would do may help me.
Thanx in advanceI don't want to use a timer because who knows if the servlet that writes out the dynamic jnlp will get hung up for a little while or any number of other reasons. If that did happen the timer would kick off and close my web start app. I cannot have this.
-
using FF 35 on MacBook Pro
Thank you for your response -- It seems the "classic theme restorer" add-on is the problem. With that enabled I cannot move tabs. With it disabled I can. I've used that add-on for years without issue on Mac and PC. The PC is still fine, just the Mac is problematic since the FF update about a week ago.
So I guess that's the answer unless anyone knows of some other trick or setting to change so FF is able to have tabs below the address bar AND be able to move tabs left to right within the same browser window! -
SetCookie Javascript call from applet pops up the launcher browser window
Hi,
With Jre 1.5 we started seeing a strange problem.
From our applet code at the end of loading the applet we call a setcookie on our parent browser window (Browser window used to access our html/applet page).
Once we make this call the browser window comes on top of our applet window.
This was working fine earlier, with jre 1.5 we started seeing this issue. Any thoughts?
A workaround is to call the toFront() function on the applet window's mainframe and set it in the front again. I was wondering if any one have seen similar problem.
It happens only with IE on windows, no issue on netscape/mozilla.
Thanks
RTthis is now resolved. My call to the transaction was slightly incorrect. This is now the working code:
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?~transaction=*MIR4 RBKP-BELNR=5105600751' ';DYNP_OKCODE=SHOW'
into url. -
Unable to close parent browser window
Hi,
I am trying to close parent browser window from POST-FORM trigger using java script as it is described on metalink. My browser (IE 6) appears to be hanging when trying to execute web.show_document with java script. I am pretty sure that it is a known problem on Windows XP SP2. but I was unable to locate the right workaround. It seems that I tried everything with no success.
If somebody experienced similar problem and solved it I would appreciate if you could share your knowledge.
Thanks in advance,
Vadim
PS Environment Forms6i/XP SP2/IE6.0.2900I just found Re: Closing brower window It worked for me fine
Vadim -
Modal popup window refresh the parent (calling) window/view
I have a modal popup window that is adding detail records. When this window is closed via the Hide method in my controller I would like to refresh the parent (calling) window/view.
What is the best way to do this?
Regards,
DianeHere's my process.....
2-windows & 3 views
Window 1 - Selection View and Detail View
Window 2 - Add View (used as a modal popup window called by a button click on the detail view)
Selection View has all the options for obtaining a list of data for the detail view. The detail view has an Add button. Component controller has the hide method and access to the other components that do the update/query methods. On the detail view the user can click Add and a popup modal window shows. User enters data and clicks either the add or cancel button. The Detail view needs to refresh to show the additional data that has been added by the modal window. There are calcuated values in the detail view from a supply function. This function is not running and the values are not changed.
What should be put in the hide method that will cause the detail view to obtain new data and supply the calculated values? If I was using the Add view as part of the same window as the detail/selection views I'd just put in a navigation link between the detail and add views and fire the plug. I like the idea of the popup window so I'd like to get this to work.
I put the wdContext.initialize() in the hide method - which yes - caused the detail view to run - however the context lost all the key values so I received a data not found. I then tried to initialize those nodes that did not contain the key values but the detail view did not display new values.
Thanks for any ideas.....Diane
Edited by: Diane Fuller on Jan 8, 2009 6:48 AM -
Oracle Forms -- Parent Browser Window Image
We are using below parameters to initiate forms application. We use separate window. We are having problem with two things...
We like to include our own IMAGE in "Parent Browser Window" Background to say do NOT close the window as this will close Forms Application. Right now the window comes with blank and we need to show user an image so that it will have a message. Any help?
http://Name:8889/forms/frmservlet?form=c:\test.fmx&userid=xxx@xxx&password=xxx&SDI=yes&lookAndFeel=oracle&colorScheme=BLAF&separateFrame=True&width=1000&height=850Could you be more specific about which parameter?
I am not referring to Background or SplashScreen or Logo.
I am refering to showing a custom Image on the Primary/Initial Browswer window when using SeparateFrame=True.
Thanks
Bala -
Reg: To open a Browse Window Using Form Builder
Dear All,
I am trying to open a browse window using form builder.I am using forms 10g.
I have user the following code.
Declare
l_file_name Varchar2(383);
Begin
l_file_name := webutil_file.file_open_dialog( );
If
l_file_name Is Not Null
Then
If
:images.Rowid Is Not Null
Then
create_record;
End If;
client_image.read_image_file ( l_file_name, Substr ( l_file_name, Instr ( l_file_name , -1 ) ), 'images.images' );--block.item
End If;
End;I have attached the webutil.pll in attached library.
It shows an error" WEBUTIL Object group not attached to this form".
Can any one help me how to attach that object group.
Thankx in advance.
Cheers,
Jai.write this in your 'Browse' Button's , when_button_pressed trigger
DECLARE
filename VARCHAR2(500);
BEGIN
filename:=GET_FILE_NAME(' ',NULL,NULL,'Choose any directory.',OPEN_FILE,TRUE);
:txtbx3:=filename; -- Here you will assign to you form's field.
END;Edited by: Tuts009 on May 10, 2010 5:00 AM -
How i can open a browser windows using a button in jsf ?
Hi
Thank you for reading my post
how i can open a browser windows using a button in jsf ?
for example if i want to open a window which will show http://www.mywebsite.com?name=TestName&family=TestFamily
and before opening the window i need to set those two variables.
can some one help me with a solution ?
thank youHi Legolas,
Please refer to the answer provided by Chris in the EA forums.
Cheers
Giri -
Opening hyperlinks in the same browser window
Hey Gang!
How does one create a hyperlink such that it opens in the
same browser window and doesn't keep opening a new window each
time?
Cheers!
GregoryDo you meant that you want to "open the hyperlinks of your flash file in the same browser window"
You flash file will be put on the internet and I think you have to configure your brower to achieve this goal.
We all know that IE can be configured to open the hyperlinks in the same window.
Thus if you want your flash file achieve this feature you need to write a code to control your brower.
This code can be a simple JS code. You can just google this to find out the answer.
good luck
I love using flash quiz generator -
How do I find the current browser window width in pixels?
I'm writing a PHP script that will use the current browser
window width
and height, but I don't know how to find that. Is there some
way to
capture the width and height of the current window in pixels?
TIAThanks Micha, you certainly may ask why.
I posted a message some time ago in the appdev forum about
the Recordset
Paging server behavior being geared toward use with tables. I
was
frustrated because I wanted to do something with repeated
div's in a
liquid site. But the Recordset Paging s.b. locks the number
of records
per page to a fixed number. I'm trying to figure out how to
make the
records per page a variable that's determined by the window
width. I've
created a liquid site with a products page that contains both
text and
thumbnail product images. The text occupies 2/3 of the width
of the
window, and the div container that holds the floated div
thumbnails I
want to account for the other third. The thumbnail div's are
produced by
a WHILE statement and I want them to be paged based on the
number of
div's that will fit within a container that occupies a
percent of the
browser window width. Here's what I've got so:
$window_size_wide = ; // Current browser window width in px
$window_size_tall = ; // Current browser window height in px
$thumb_cont_wide = $window_size_wide * .3; // 30% of window
width incl.
padding in px
$thumb_cont_tall = $window_size_tall * .4; // 40% of window
height incl.
padding in px
$thumb_size_wide = 100; // thumbnail div width incl. margins
in px
$thumb_size_tall = 100; // thumbnail div height incl. margins
in px
$no_thumbs_wide =
ceil(($thumb_cont_wide/$thumb_size_wide)-1);
$no_thumbs_tall =
ceil(($thumb_cont_tall/$thumb_size_tall)-1);
$records_per_page = ($no_thumbs_wide * $no_thumbs_tall);
$offset = ($thispage - 1) * $records_per_page;
$total_pages = ceil($total_records/$records_per_page);
etc.
What I don't know is how to find the current window width or
height. I
would also like to know if the $thumb_cont_wide and the
$thumb_cont_tall
can be determined in some way based on the div size generated
through my
CSS. In other words, I don't want to declare the percent of
height and
width in this script, I want to declare it only in my CSS and
have it
determined by the browser window width and height. The only
element I
want to hard code is the size of the thumbnails as they will
always be
the same. It seems to me that something like this could be
done to make
recordset paging scalable to match a scalable web page.
So the question is, can I define a PHP variable based on a
Javascript
variable? If so, how? If not, how can I accomplish this? Is
this just
not possible?
Thanks for your help. -
Hi
I am opening an applet from a jsp page in a new browser window. I want that till my applet browser is open the parent browser from where my applet is opening should not get focus.
Please help
Thanks
Nileshthe solution is mentioned by Francois Degrelle on another post:
How to close the parent window? -
Using a tablet with windows 7 and multitouch screen and the actual firefox version. If i open google maps and want to zoom the map with the zoom gesture, firefox zooms the hole browser window including the tools instead of the map. If i open another empty tab and closing it before using the zooming gesture, everything will work. Would be helpful if someone could give me a hint how to overcome these problems without always opening a new empty tab.
Well, the touch problem was first observed with Firefox Version 21. The Versions 21 to 23 offers the workaround with opening and closing a new tab. Since Version 24 also the workaround didn't work anymore and the problem, that the multitouch gestures zooms the hole browser window is still present. Maybe this makes it clear for now. So would be helpful if anybody could give me a real hint how to overcome these problem.
-
Trouble with the Open Browser Window behavior
I have a page with thumbnail images. I want to be able to
click the thumbnail and have a new window open with just that image
in the window. If I don't assign a link to the thumbnail, and
select the Open Browser Window behavior, the only 3 options for
when to open the window are onLoad, onError, or onAbort. I want it
to be opened onClick. If I do assign a link to the image, and then
select the Open Browser Window behavior, it gives me the option to
open the window onClick. However, when I test it, it opens 2 new
windows - the one I want, and the one that is the link that I
assigned to the image.
I can't figure this out! Any help would be greatly
appreciated.
SamYou must always do the following when applying behaviors to
images:
1. Assign a link to the image first, even if it is a null
link. Use the
Property inspector to do this.
2. Click on the image in Design view, then click on the
<a> tag that you
see on the Tag inspector bar at the bottom of the document
pane so that the
anchor tag is selected.
3. Now apply your behavior.
You *can* usually truncate this process as follows -
1. Select the image in Design view and make sure that
<img> is selected on
the Tag selector bar.
2. Apply the behavior.
3. Use the behavior panel to set the event desired to
<A> onClick, or <A>
onMouseOver, or any of the appropriate "<A>" containing
items in the list.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"sammas" <[email protected]> wrote in
message
news:f8t28c$b6j$[email protected]..
>I have a page with thumbnail images. I want to be able to
click the
>thumbnail
> and have a new window open with just that image in the
window. If I don't
> assign a link to the thumbnail, and select the Open
Browser Window
> behavior,
> the only 3 options for when to open the window are
onLoad, onError, or
> onAbort.
> I want it to be opened onClick. If I do assign a link to
the image, and
> then
> select the Open Browser Window behavior, it gives me the
option to open
> the
> window onClick. However, when I test it, it opens 2 new
windows - the one
> I
> want, and the one that is the link that I assigned to
the image.
>
> I can't figure this out! Any help would be greatly
appreciated.
>
> Sam
>
Maybe you are looking for
-
How can I send messages using iPad
I recently added my iPad onto my cellphone account. ATT gave it a SIM card and phone number. Seems like the only devices that I can send messages to are other Apple products. Is it possible to send to none Apple cellphones? I even tried sending a me
-
How to show rating dots and file name underneath thumbnail in Bridge CS4 preview workspace?
How to show rating dots and file name underneath thumbnail in Bridge CS4 preview workspace?
-
Can't add ANY buddy to AIM list in admin account
Hi, When I use iChat from the admin account, it is absolutely impossible to add any buddy to AIM list because : the "+" button doesn't exist at the bottom of the window and the option is greyed out in "contact". If I use iChat from another user accou
-
How do I update my status only via iOS for Facebook on iPhone 5?
I have iPhone 5s. I have account info to my Facebook app. I know I can update my status "via iOS" with a picture. My question is: How can I update my status ONLY "via iOS" without having to upload a picture. When I had my iPhone 4s I used to do it s
-
To empty alv field declared as WERT
Hi, I have a field in alv which holds values declared as WERT. In one case the field need to be empty. To do this I used CLEAR statement. But when I did like that, the field showed 0. How can I empty the field as it shows nothing? Any help will be a