Javascript - open window
Hi there!
I would like to know how can i open a external link in a new window...
i know i can use the javascript function popupURL... however, that open a popup window, without no toolbars.
i want open a full and regular windows (open link in new window)
thanks
Open the button attributes.
On the Optional URL Redirect select optional.
In URL target put javascript:javascript_function();
Define the javascript function like this in the HTML Header of the page
function javascript function() {
window.open("f?p=&APP_ID.:page number:&SESSION.::&DEBUG.:::","",'resizable=no, location=no, width=400, height=150, menubar=no, status=no, scrollbars=no, menubar=no');
And it should works. I you want to add parameter you have to complete the URL like this f?p=&APP_ID.:page number:&SESSION.::&DEBUG.::PARAMETER:VALUE
Similar Messages
-
Javascript Open and Close window
I am creating a new website and am having problems getting
the open window and close window to work. I want this window to
open a new window (NOT a popup window used with the "onload"
option). I am using an img tag so that when you click on the image
thumbnail this new window opens. It is my understanding in order to
use the window.close option, you must have the javascript in the
header of the html document for the close to work. In the heading
of the document that contains the link to open a new window I have
the following:
<SCRIPT language="JavaScript1.2">
function popuponclick()
Cellex = window.open("products/cellex.htm",
"console","status=1,width=350,height=150");
function closepopup()
if(false == cellex.closed)
cellex.close ();
else
alert('Window already closed!');
</SCRIPT>
Then I have this in the body:
<img src="images/thumbnails/dermalogicath.jpg"
alt="Dermalogica" width="94" height="84" border="0"
/></a></td>
<td><a href="products/mdskin.htm"
onclick="window.open('products/mdskin.htm','mdskin',width=610,height=780,scrollbars=yes') ;return
false; target="_blank">
However, I'm getting script errors when opening the window on
the lines in the body Unterminated error. I have tried using the
help in Dreamweaver as well as many docs posted, but still cannot
get this to work. Once I get the script errors resolved, the when
the window opens, it will not close. I get the message that a
window is trying to be closed and do I want to close the window
which closes internet explorer entirely. I'm using IE 7.0 as well
as foxfire and have the same issue on both. If I use the
dreamweaver behaviors to call a javascript, it puts "onload" and if
I change to "onclick" then the script will not work. When I use the
behavior "open window" it still doesn't work. I'm totally lost as
to what I'm doing wrong as I have followed about 10 papers all
using the same instructions.
Hopefully some one can help me, I'm getting fustrated as this
seems to be pretty straight forward.
Thanks, vienieTry this on for size:
I have included two functions.
windowRebuild() - opens a new window, maximizes it based on the screen size, removes all toolbars, and then closes the old window.
myLocation(appName, pageName) - builds a url referencing an HTMLDB application, specfic to what server you are currently on. Very useful when you have an application on 3 different servers(dev, test, prod servers), you wouldn't want the server name hardcoded if you plan to export the app to another server.
Also, you need to be careful when using &APP_ID. I am not completely certain how that is resolved at runtime, but I've found it only works when the javascript is in the HTML Header of a page and not stored in the template of the page.
<script language="JavaScript1.1" type="text/javascript">
This functions is for internal application use.
Examples of myLocation:
url = myLocation('&APP_ID.', 'APP_PUBLIC_PAGE');
url = myLocation('MY_APP_ALIAS', 'MY_PAGE_ALIAS');
url = myLocation('184', '10');
function myLocation(myApp, myPage){
var myHost = location.host;
var newURL;
newURL = 'http://'+myHost+'/pls/htmldb/f?p='+myApp.toString()+':'+myPage.toString();
return newURL;
/* Function windowRebuild()
* This function will open a new window and close the old window.
* This function will also maximize the new window and remove all toolbars.
function windowRebuild(){
if(window.name != 'myAppWin'){
var url = myLocation('&APP_ID.', 'PAGE_ALIAS');
var myWin = window.open(url,'myAppWin','toolbar=0,scrollbars=1,menubar=0,status=1,resizable=1,location=0');
window.opener = 'x';
window.close();
if(window.name == 'myAppWin'){
window.moveTo(0,0);
window.resizeTo(screen.availWidth,screen.availHeight);
</script>Let me know if that works or you need some more explanation.
Chris -
SSRS Action URL via javascript:void(window.open doesn't work in IE
Hi,
I am using the following code to open "google.com.au"
in a pop-up window through SSRS Report -> Action -> URL
="javascript:void(window.open('"+
"http://www.google.com.au/" +
"','_blank','scrollbars=true,status=true'))"
The script work fine in Chrome and FireFox but not IE ( we are using IE 11.0 ), any idea what's going wrong?
( When we click on it ; Nothing appear in IE )
Thanks.Hi Yu,
1. We are using SQL Server SSRS 2008 R2 in IE 11.0.9600.17501 environment ( Means we already have the latest IE 11 Patch )
2. Did you try put in Javascript in SSRS Cell -> Placeholder Properties -> Action -> URL?
i.e. ="javascript:void(window.open('"+ "http://www.google.com.au/" + "','_blank','scrollbars=true,status=true'))"
3. All reports are having the same phenomenon.
4. I used F12 and tried IE7, IE8, IE9, IE10 all same ( ALL couldn't POP UP window ).
5. Please refer to attachment, I found out that when I go to Cell -> Right click -> Inspect Element & change
target="_top" to
target="_self" then the problem gone.
BUT... how to set target="_self" in SSRS?
Regards,
Frank -
Opening windows with JavaScript
I am reasonably happy with my feedback screen, but after a
visitor sends a
message I would like to close it, and then pop up a smaller
"Thank you" window
for a few seconds.
After a lot of messing around, I have more or less got this
working (and have a
slightly better understanding of JavaScript), but have a
number of questions.
1. What is the difference between MM_openBrWindow() and
open.window()? They
appear to do the same thing, and to take the same parameters.
2. If I open the new feedback window, using either of the
above, and then use
open.window to open the Thank you window from the feedback
window, it appears to
use the same parameters as the previous window, regardless of
what I specify.
Is there a way around this?
3 The alternative to this would be to put code in the
originating window which
popped up the feedback window, and then popped up the Thank
you window when the
feedback window closed. Can I have the first window return a
result, and then
pass it on to the second window, and how would I access it in
the second window?
Clancy> This works with the local copy, but not with the remote
copy. I replaced
> the
> relative URL with the absolute URL, so that it opened
the remote copy,
> even if
> it had been loaded from my computer, and the local copy
still worked.
> However,
> when I modified index.php to open the remote copy of
Xcl_qry.php, the
> Thank you
> window did not open.
Make a simple test. You will find that either of these
methods works.
Something else is coloring your interpretation here.
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
==================
"Clancy" <[email protected]> wrote in message
news:[email protected]...
> "Murray *ACE*" <[email protected]>
wrote:
>
>>Show us the respective markup in either case, please.
>>
>>If you look at the OBW function, you'll see that it's
just calling the
>>window.open() function -
>>
>>function MM_openBrWindow(theURL,winName,features) {
//v2.0
>> window.open(theURL,winName,features);
>>}
>>
>>so you should get the same behavior with either.
>
> SHOULD being the operative word. As I have noted
elsewhere, I found the
> version
> which I thought I had working operates correctly if I
run the local copy,
> but
> not if I run the remote copy.
>
> The sequence of events is as follows.
>
> Index.php has a 'Comments' link, with the following
code:
>
> <img src="Images/Xclqry.jpg" alt="Comments and
queries" width="60"
> height="24"
>
border="0"onclick="MM_openBrWindow('Xcl_qry.php','Xclqrywindow','width=800,
> height=600,menubar=yes')" >
>
> This loads the feedback form Xcl_qry.php. This is based
on David's
> feedback
> form. When this is loaded it checks if data has been
entered. If so, it
> processes it and, if valid, tries to e-mail it. If this
is successful it
> should
> open the 'Thank you' window, and then close. The code
used for this is:
>
> <script
>
type="text/javascript">window.open('Thanks.php','Thankswindow','width=400,height=200');</ script>
>
> This works with the local copy, but not with the remote
copy. I replaced
> the
> relative URL with the absolute URL, so that it opened
the remote copy,
> even if
> it had been loaded from my computer, and the local copy
still worked.
> However,
> when I modified index.php to open the remote copy of
Xcl_qry.php, the
> Thank you
> window did not open.
>
> I then modified the open commands to ask for a menu bar,
so that I could
> examine
> the code actually loaded to my PC (on the last pass),
and altered
> Xcl_qry.php so
> that it remained open. I then ran each version, and
saved the code. When
> I
> compare the two versions they were identical, except
that the remote
> version had
> an additional line on the end:
>
> <script
language='javascript'>postamble();</script>
>
> I put this on to the local copy, so the two files as
loaded were
> identical, but
> this made no difference.
>
> So the current state of play is that the local copy of
Xcl_qry.php will
> open
> either the local or remote copy of Thanks.php, but the
remote copy of
> Xcl_qry.php will not open the remote copy of Thanks.php,
even though the
> code
> actually loaded onto my PC is identical. I have not
checked if it will
> open the
> local copy as this does not seem very relevant.
>
>
http://www.corybas.com/
> Clancy -
Each time I open Firefox program, I keep getting a window stating: I am getting a JavaScript application window stating" TypeError: Components.classes['@softage.ru/skype/SkypeFfExtension;1'].
How can I stop this message to appear ?Issue caused by Skype addon by Firefox. Which version of Skype are you using? Make sure its latest one?
*skype.com -
How to open a pop up in a newly opened window
Hi,
I have a requirement where, upon a button click in Main.jsff page I am opening a PDF file in a new window in the same browser. As soon as the PDF file is opened in the new window I need to display a popup which has to come on top of the PDF window and blur the PDF file window.
Currently I am using the below javaScript for doing this.
FacesContext ctx = FacesContext.getCurrentInstance();
ExtendedRenderKitService erks = org.apache.myfaces.trinidad.util.Service.getRenderKitService(ctx, ExtendedRenderKitService.class);;
String script = "window.open('" + urlString + "', '', 'location=0, status=0, resizable=1, scrollbars=1');";
erks.addScript(ctx, script);
String toSetFocus = "window.focus()";
erks.addScript(ctx, toSetFocus);
getP2().show(hints);But the pop up is not opening on the pdf window. Its opening on the Main.jsff window. Can anyone let me know the right way to implement this ?
I am using jdev version 11.1.2.0.0
Thanks in advance,
Kavithathis is the javascript i used to do this
function showDoc(URL, aWinName, title) {
var wOpen;
var sOptions;
var popupWindowWidth = 725;
var popupWindowheight = 480;
sOptions = 'status=no,menubar=no,scrollbars=yes,toolbar=no';
sOptions = sOptions + ',width=' + (popupWindowWidth).toString();
sOptions = sOptions + ',height=' + (popupWindowheight).toString();
sOptions = sOptions + ',screenX=0,screenY=0,left=0,top=0';
globalHTML = "<html><head><title>"+title+"</title><meta charset=\"utf-8\"></head>"
+ "<frameset rows='100%,*'><frame src='" + URL + "'></frame>"
+ "</frameset></html>";
wOpen = window.open("javascript:opener.globalHTML", aWinName, sOptions);
wOpen.focus();
wOpen.moveTo((screen.availWidth - popupWindowWidth) / 2,
(screen.availHeight - popupWindowheight) / 2);
return wOpen;
} -
Pages in frameset -script to open windows
I have a site built in frames. When you link directly to a
page not in my index frameset the page shows but of course the
frames that should be there don't show because I don't know the way
around. I tried an open window java script thing I got off the net
but it seemed as if I needed to set a size somewhere or I did it
wrong because it only brought up the frame and not the page also.
Also, I have left and top navigation frames which I don't know how
to script in. Not sure how to do this. Hope you all know what I'm
getting at here. Also, I have a tutorial marked on making a dynamic
frameset, I will study as time allows. Thanks.
for reference
my site> Yeah. well. I like the look of the two set frames and
and one moving main
> frame where the nav doesn't scroll with the page. Is
there a way to
> absolute
> position the nav boxes so it will achieve the same look?
Sorry for
> putting
> ameturish stuff on the net I have no training.
The problems with frames is that they can cause many other
problems.
Samples include, as mentioned, the fact that your SSL page
won't show as
secure in some browsers, bookmarking pages can become
impossible, it can
make it difficult for search engines to navigate, it makes it
harder for
search engines to link into your site, and it can cause
accessibility
issues.
On top of that, it can become a real pain to maintain.
Wanting a 'static' menu is a common reason to use frames, but
rarely is that
type of functionality really needed at all. People can scroll
web pages
fairly easily.
You can create a static menu sans frames if you want to use
some CSS and
javascript, though I tend to find those as annoying as frames
a lot of the
time.
Another solution is to put your content into a scrollable
div. Many people
do that. However, I'm not a fan of trapping the important
part of your site
(the content) into a small box.
Ultimately, the best optio is usually to just let the page
flow as is.
Also, and I've think I've said this before, your actual
artwork is stunning.
beautiful stuff. However, it's trapped in a rather gaudy page
design with
distracting backgrounds and flashing GIFs and drop shadows
and the like.
Think SIMPLE. Let your product shine through. Let people
focus on that.
-Darrel -
Lost AM when browsing on new opened window
Hi All,
I have a custom OAF page with couple subtabs for user entering order. There is a checking button I created to open a new java script window with a jsp page for user checking inventory. When I opened the window, I retained AM and user have no problem if they just take look the first page on the new window. But if user click the other links on the new window to browse other month inventory, after user close the popup window, they will loose AM on the original page.
Looks like retain AM only allow user browse the first page on the new window. Once user browsing other pages on the new window, the AM on the original page is gone.
Is there any way we can resolve this issue? We want user can keep using new window to browse inventory on different month and also continue to enter order.
Regards,
KJMaeve,
In the controller processRequest() method:
Insert the following check if you have executeQuery() issued on your view object.
If you already use the isPreparedForExecution() check on the view object before executing the query, as such,
if (!vo.isPreparedForExecution())
vo.executeQuery();
The reason for inserting the above check upon executeQuery() is because if a post (form submit) action occurs on a page that is different from the page where the last request was issued, OA Framework tries to re-enter the processRequest() phase to synchronize the state on the middle tier with the state on the client browser. The logic above handles cases where the request is redirected to another JVM as well. In such cases, processRequest() is entered to rebuild the web bean hierarchy.
The other option is to submit the base page using ur own js function , when u close the pop up page.The close button js function should be like:
javascript:opener.submitForm('DefaultFormName',0,{XXX:' abc'});window.close();
Now in the process request of the base page CO, u can get parametre 'XXX' from the pagecontext....so
if((("abc").equals(pageContext.getParameter("XXX"))))
{//LOGIC to initialize or not to intialize some components of base page}
I hope i m clear.
--Mukul -
Can't Cut & Paste In JavaScript Editor Window
Can anyone help? Can't cut & paste inside JavaScript Editor Window.
I'm using Windows XP Home Edition & Adobe Acrobat 8 ProI've had this happen sometimes while having a JavaScript console window open. IT happens after I've had the console open and switched to another application. Then when I switch back to Acrobat, the console is unresponsive. The solution I found was to close the console and open it up again from the menu. Then it's back to working as expected.
-
Hellow to everybody,
is it posible to make a get Url action, using a the java
script open window,
to open this url on a small size,
Thanks,
DavidThanks i will try that script!
This script is to open a form on a new window,
with out covering the principal page, that contains the flash
animation.
Lots of Thanks!
David
"urami_" <[email protected]>
escribió en el mensaje
news:ehi26p$4o0$[email protected]..
>
>
> informaticatec wrote:
> > Hellow to everybody,
> > is it posible to make a get Url action, using a the
java script open
window,
> > to open this url on a small size,
>
> Hi David
> Sure possible, just attach this to a flash button:
>
> on (release) {
> url="
http://yahoo.com";
> winName="newName";
> w="400";
> h="400";
> getURL
("javascript:n_name=window.open('"+url+"','"+winName+"','width="+w+",
height="+
> h+"');void(0);");
> }
>
>
> url is either the path to url or file name:
>
> url="
http://yahoo.com";
>
> url="page.html";
>
>
> --
> Best Regards
>
> Urami
>
>
> --
>
>
> <urami>
> If you want to mail me - DO NOT LAUGH AT MY ADDRESS
> </urami>
> -
How to pass _ti value to javascript's window in Destination URI of Button
How to pass _ti value to javascript's window in personalization's Destination URI of a Button.
In Self-Service HR, under my benefit's final confirmation page, I added a new button,
when clicked would do a javascript alert saying "You have successfully completed your 2008 Benefit Enrollment Process". After clicking ok button, it takes to a printable page.
Here is my code in the Destination URI field
javascript:onClick=alert('You have successfully completed your 2008 Benefit Enrollment Process'); window.location='OA.jsp?page=/oracle/apps/ben/selfservice/enrollment/webui/EnrlConfPG&retainAM=Y&OARF=printable';
The alert works but after clicking ok, I get error.
Looks like it is expecting ti value in the URL and if I pass ti value like this, it works
window.location='OA.jsp?page=/oracle/apps/ben/selfservice/enrollment/webui/EnrlConfPG&retainAM=Y&OARF=printable&_ti=800699419'
But where do I get the real ti value? instead of hard-coded value, as ti is not constant and it changes for each login or session
ERROR was:
oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:597)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1134)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2297)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
at oa_html._OA._jspService(_OA.java:88)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at oa_html._OA._jspService(_OA.java:98)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.lang.NullPointerException
at oracle.apps.ben.selfservice.enrollment.webui.ConfirmationCO.processRequest(ConfirmationCO.java:158)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1134)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2297)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
at oa_html._OA._jspService(_OA.java:88)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at oa_html._OA._jspService(_OA.java:98)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:534)
java.lang.NullPointerException
at oracle.apps.ben.selfservice.enrollment.webui.ConfirmationCO.processRequest(ConfirmationCO.java:158)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:581)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1134)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:937)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:904)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:640)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2297)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1710)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:501)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:422)
at oa_html._OA._jspService(_OA.java:88)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
at oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
at oa_html._OA._jspService(_OA.java:98)
at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
at oracle.jsp.JspServlet.service(JspServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
at org.apache.jserv.JServConnection.run(JServConnection.java:294)
at java.lang.Thread.run(Thread.java:534)
Please help!
ThanksBurkepm,
Two things:
1)Don't use .showModalDialog api of MSDN library, because its only applicable to modal dialog pages in IE.This api won't work on any other browser. Moreover,u will need to add
< base target="_self " />
under <head> tag of pop up page. This is required because imodal window api of javascript provided in MSDN would not be able to recognize its parent window with out this.
So,its not possible to close the pop up window and submit data to the base page form by submitting the page when we close the pop up.
You can OAF js function for openeing the pop up window.
2)Secondly, there is way to invoke js pop window function without setting profiles I have mentioned in my blog.This is basically through bound values, for ehich url is genaradted dybnamically, so there is no MAC key url validation.
Here is the code u need to use this code in process request.:
import oracle.apps.fnd.framework.webui.beans.nav.OAButtonBean;
import oracle.apps.fnd.framework.webui.OABoundValueEmbedURL;
OAButtonBean btn = (OAButtonBean)webBean.findChildRecursive("<button item id>");
String page= "/xxx/oracle/apps/XXX/abc/webui/xxxPg&retainAM=Y";
String destURL = APPS_HTML_DIRECTORY + OAWebBeanConstants.APPLICATION_JSP + "?"+ OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT+ "=" + page;
OABoundValueEmbedURL jsBound = new OABoundValueEmbedURL(btn,"openWindow(self, '", destURL, "' , 'longTipWin', {width:"+900+", height:"+500+"}, true); return false;");
btn.setAttributeValue(oracle.cabo.ui.UIConstants.ON_CLICK_ATTR, jsBound);
I hope this helps.
--Mukul -
Syntax Error In Javascript Popup Window
I'm wondering if anybody can help me out here with a curious bit of code. I'm using GoLive 9 to generate Javascript popup windows. They seem to work fine, but when I check the syntax I get these errors:
Line 22 Unexpected PCDATA
Line 24 The Corresponding start tag is missing
Specifically, it references this code:
</script>
//-->
</script>
But every time I try to delete or modify those lines I lose the link to my css file and can't link it back. Does anybody out there with a whole lot more brains than me have a solution? Remember, I'm stupid, so if you have a fix I'd appreciate it being explained as simply as possible. Thanks. BTW here's the entire code for the Javascript popup page below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="generator" content="Adobe GoLive" />
<title>1408</title>
<script type="text/javascript"><!--
<script type="text/javascript">
//Global var to store a reference to the opened window
var openedWindow;
function openWindow()
openedWindow = window.open('moreinfo.htm');
function closeOpenedWindow()
openedWindow.close();
</script>
//-->
</script>
<link href="../../../BAD/michaelthibault.com/css/agl-styles.css" rel="stylesheet" type="text/css" media="all" />
<link href="../../../BAD/michaelthibault.com/css/java.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css" media="all"><!--
a:link { color: #838383; }
a:active { color: #838383; }
.dsR1 /*agl rulekind: base;*/ { width: 480px; height: 260px; }
#media { position: absolute; top: 50px; left: 50px; width: 480px; height: 260px; z-index: 1; }
#pause { position: absolute; top: 320px; left: 50px; width: 180px; height: 15px; z-index: 2; }
#close_a { position: absolute; z-index: 3; top: 336px; left: 50px; width: 180px; height: 19px; }
--></style>
</head>
<body>
<div id="media">
<object class="dsR1" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="204" width="480" align="left">
<param name="enablejavascript" value="true" />
<param name="bgcolor" value="#1a1a1a" />
<param name="src" value="../../media/01_trailers/1408_tlr1r_h.480.mov" />
<param name="autoplay" value="true" />
<param name="controller" value="false" />
<embed align="left" height="204" pluginspage="http://www.apple.com/quicktime/download/" src="../../media/01_trailers/1408_tlr1r_h.480.mov" type="video/quicktime" width="480" controller="false" autoplay="true" bgcolor="#1a1a1a" enablejavascript="true"></embed>
</object></div>
<div id="pause">double click in center to pause</div>
<div id="close_a">
<a href="javascript:self.close();">close window</a></div>
<p></p>
</body>
</html>You have a script tag nested inside another script tag. Try changing this:
< script type="text/javascript">< !--
< script type="text/javascript">
//Global var to store a reference to the opened window
var openedWindow;
function openWindow()
openedWindow = window.open('moreinfo.htm');
function closeOpenedWindow()
openedWindow.close();
< /script>
//-->
< /script>
...to this...
< script type="text/javascript">< !--
//Global var to store a reference to the opened window
var openedWindow;
function openWindow()
openedWindow = window.open('moreinfo.htm');
function closeOpenedWindow()
openedWindow.close();
//-->
< /script> -
Open Windows Explorer with path from IR?
Hi.
Using latest version of APEX on Oracle XE 10.
I have a database that has fields with UNC paths in. I want to be able to launch Windows Explorer with these paths from an Interactive Report... is this possible?
Thanks in advance,
Adam.Hi, and thanks for the response.
I'm not sure if I've been clear in what I was asking as this seems like overkill at first glance - or maybe I just don't get what's actually involved! ;-)
E.g. Say my data was
Analyst : Mr Any Body
Date: 04/01/2012
Path: \\server1\vol1\DirA\Subdir1
I'd like the Path field to appear as a hyperlink that opens Windows Explorer with that path in the address bar. Is this not possible with javascript or something? Even if it is, I need some help with how/where to plug that into my Interactive Report.
If I used something other than an Interactive Report (e.g. just a regular form), could I code a button to do this task?
Thanks again,
Adam. -
Hi, has anyone done an example where you are at a page, say Page1.jsp that has a text box and a button, when you click on the button a javascript popup window must open(Page2.jsp). Page2.jsp has a text box and a button. The user will enter a value in the text box and when they click the button it must close the popup window and populate the text box on Page1.jsp with the value entered on Page2.jsp.
Is this possible in JSF, I have tried but it doesn't work. On the popup windoow botton I have javascript code that saves the value in the session, submits the parent page and then closes the popup window.
On the parent page init, I look for the value saved in the session var and set the textbox's text to it. When I read the value of the text box, it is right but on the screen the value does not show up at all,
Does anyone have any idea, I can't seem to understand at all what could be wrong here.Hi,
You can use this code:
1. in the parent form you have a button and a text field named "textCallClass".
2. in the popup window you have listbox and a button.
When the button on the popup window is clicked, the selected list item is returned.
In you popup window, button on_click :
<script>
function handleOK() {
var myform = document.forms[0];
var listControl = myform['form1:listboxID'];
var openerField = window.opener.document.getElementById("form1:textCallClass");
if (listControl.selectedIndex == -1) {
alert ("Please select an item from the list !");
return false;
else {
openerField.value = listControl.options[listControl.selectedIndex].value;
window.close();
</script>In the parent form, button on_click:
function handleCallClassPopup() {
window.open("CallClassLookup.jsp", "Lookup", "width=250,height=300");
}A better way is to use the SessionBean to store and retrieve the data.
Catalin Florean. -
GetURL - javascript - popup window
Hi!
I need to get a button to open a new, fixed-size, pop-up
window.
This is what I used:
on (release) {
getURL("javascript:window.open('ponuda_tjedna.html','Ponuda
tjedna','width=350,height=250')");
It works just fine, opens a new window etc. but the main
window where the button is (where the site is) goes blank, white..
and in the upper lef corner it says: [object Window]. If I click
BACK, it restarts the entire site.
What can I do to keep the main window where it is?
I've also tried writing a function in javascript directly
into the <head> tag of index.html and call the function from
within Flash, using getURL. That did open a new window and the main
site didn't go blank, but in IE nothing happened.
Thanks,
Igor> on (release) {
>
getURL("javascript:window.open('ponuda_tjedna.html','Ponuda
> tjedna','width=350,height=250')");
> }
>
> It works just fine, open a new window etc. but the main
window where the
> button is (where the site is) goes blank, white.. and in
the upper lef corner
> it says: [object Window]. If I click BACK, it restarts
the entire site.
You need void(0) with window.open because it returns stuff
and if you don't void
the request it will do exactly what it does to you. Not the
case if you are using
NewWindow function. Anyway, try this instead:
getURL("javascript:n_name=window.open('ponuda_tjedna.html','Ponuda_tjedna','width=350,heig ht=250');void(0);");
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Maybe you are looking for
-
Daisy Chain and Branching cp 4
Is it possible to use the daisy chain approach and maintain branching that has been created in a lesson? I have dependancies that have been broken when I broke my large lesson file into 4 smaller lessons. If it isn't possible, does anyone have a good
-
Business Components and oracle.jbo.domain.Date
Hello I have the next problem I have a Busines Component and I have to acess to rows who have Dates and with oracle.jbo.domain.Date I can4t acess to the day, month, year . Can anyone Help me how can I do to access this dates? Thanks a lot your your h
-
Good evening everyone, I have a very data intensive Flex/CF application, I am no guru by any means but I have done all that I can with db optimization and coding to improve the speed of my app. We have finally concluded that we might just need
-
Random video playing in background
today i turned on my mac like normal, opened up safari to watch videos online, and this random stuff plays in the background...i recognize it as a video on youtube ive watched before but there is no window to see it or close it nothing is hidden its
-
Is there a script for an audio controller linked to an embedded swf?
Is there a script for an audio player or controller that has some functions like play resume stop for an embedded swf file? I would use buttons for this purpose but for some reason, when I click on the pause button on the pdf, and then click on resu