Branch with javascript:popupWindow

Hi all

I created a button that redirects to a javascript that opens a pop-up window. This works! Now, I called the same javascript function from a branch of page level which gives "page cannot be displayed ' in the browser.

My question: is it possible to make branches with javascript and how do I do that after sending a page because I need the page step validation.

Best regards Markus

Create a button "SUBMIT_AND_POPUP."

Create a validation to fire on REQUEST = "SUBMIT_AND_POPUP."

Create a conditional branch, which will only fire if your request is 'SUBMIT_AND_POPUP' and it will redirect you to the desired page with a REQUEST to "OPEN_POPUP".

On the page to which you redirect after posting, create a pl/sql conditional region, the condition is REQUEST = "OPEN_POPUP":

BEGIN
HTP.prn ("< script type =" text/javascript"language ="javascript"> '");
HTP.prn
("javascript:popUp2(''f?p=&APP_ID.:500:&SESSION.::NO::P500_DEPTNO:10'',_700,_700);"
);
HTP.prn ("< /script >");
END;

Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Opal-consulting.de/training
http://Apex.Oracle.com/pls/OTN/f?p=31517:1
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • Is no longer able to view live on Alexei_tchernomor even content with javascript active.

    I had no problems until recently - has always been able to view their videos. I never had installed oracle java plug-in, but had javascript activated via subject: config and everything worked properly. Now, I am unable to view the videos on the site with javascript active. I use noscript and java is enabled in the options for this site. Any help would be appreciated. I have the site enabled in my firewall.

    I'm glad that you found the help page because I wasn't going to be able to answer that one.

  • Is it possible to work with JavaScript in JUST ONE TAB and not on others

    I usually browse websites with javascript is disabled. But sites like facebook and youtube need javascript. So what I really want is to just run these sites on legs with active javascript and run the other tabs without it.

    Try noscript. It can be a pain to get the installer at the beginning because you need allow all areas that you want to allow JavaScript for, but that market either tabs or windows.

    https://addons.Mozilla.org/en-us/Firefox/addon/NoScript/

  • How to change rootIndexPath with javascript

    I wish I could change the value of rootIndexPath with javascript. Is this possible?

    I can see the value of rootIndexPath with

    {Label

    text: "" root path Index: "+ listview.rootIndexPath ;}"

    but I can't change the value. Here's the code I'm trying to fix

    example:

    Button {}
    text: 'run '.
    onClicked: {}
    listview.rootIndexPath = 1;
    } //end onClicked

    } //end button

    {To ListView
    rootIndexPath: [2]
    ID: listview
    dataModel: {XmlDataModel}
    Source: "simplelist.xml".
    } //end dataModel

    } //end listview

    Have you tried with:

    listview.rootIndexPath=[1];
    

    Alternatively, tou can try with:

    var tmp = rootIndexPath;
    tmp[0] = 1;
    rootIndexPath = tmp;
    

    or maybe with:

    listview.setRootIndexPath( [1] );
    

    Let me know

  • ADF - image source Set with JavaScript

    Hello.

    I have a layout grid panel with multiple lines and cells.

    Each cell contains a text and a picture, all surrounded by a command binding.

    My output text have the value #{MyBean.valueMyBean}

    My image have the source /directory1/directory2 / # {MyBean.valueMyBean} .jpg

    What I want is that whenever I click on that image, image and its corresponding output text takes the same value (simulating the selected item)

    I want to do with JavaScript, because when I do it with partial triggers there is a delay, and it does not work for the needs.

    Could you help me put who implemented?

    I don't have an idea to change the source of an image with JavaScript.

    You can join af:clientListener for the image and call the javascript function that will be:

    -find the component target, something like: var targetImg = AdfPage.PAGE.findComponent (clientId);

    -change the property 'source', something like: targetImg.setSource ("new source");

    Here you can find more information about adf api client-side: http://docs.oracle.com/cd/E24382_01/web.1112/e16181/af_arch.htm#ADFUI10042

    Dario

  • Client with JavaScript listener, surrounded by a button have a delay

    Hello.

    I have a fragment page (jsff) with a resulting keypad buttons surrounded by a client listener that calls a java script function; whenever I click on a number it refresh a text with the concatenated value input. I've implemented with JavaScript. Why with JavaScript? Because of the delay using partial triggers showing the value in the input text.

    When I test it on the server, it works fine. I click on each button and have a little late, but it works for the needs to develop.

    Now, when I insert this fragment inside an another jsff which include several elements, the result is not the same. I click every button and the value is displayed in the text of entry very fast, but the I clicked on the button takes between one and two seconds to recharge for summer clicked again. I don't understand what is happening.

    Could someone help me?


    Thank you very much.

    Probably you always spread the event on the server. You can easily check this with a browser like Firefox/Firebug plugin, sent to see if there is no request for the server.

    Normally, you will need to explicitly cancel the event to propagate to the server. For example, if you have a clientListener on a button, you do something like below:

    function showPopupFromAction(actionEvent)
    {
      actionEvent.cancel();
    //your logic here

    }

  • Is it possible with javascript to compile the data entered by the user in an easy format to excel?

    I have a form in which the user enters several lines of data as well as additional information on these data.  I would like finally to export data, so I can manipulate the Excel.  This is possible because javascript (or otherwise)?  Here is an example of what I mean.

    The form of a table in which the user enters each of the names of his friend, their favorite color and their age.  I want the name of the specific friend linked to their favorite color and age so when I export to excel I can see how many friends has the user whose favorite color is red.

    If the form data would be as follows:

    Friend1name

    Friend2name

    Friend3name

    Friend1color

    Friend2color

    Friend3color

    Friend1age

    Friend2age

    Friend3age

    When I export the data as entered above, the results of each field in another column.

    Anyone has any ideas for that?

    It is possible with JavaScript. You can write the data to the JavaScript console and then copy & paste into Excel, or write to a file as an attachment (aka data object) and export it. Here's a sample script that writes the field data in the JavaScript console:

    Table of domain names

    Invoke the var = ['Friend1name', 'Friend2name', 'Friend3name', 'Friend1color', 'Friend2color', 'Friend3color', 'Friend1age', 'Friend2age', 'Friend3age'];

    Browse the fields and write the field values in the console

    for (var i = 0; i)< afields.length;="" i="" +="1)">

    Console.println (getField(aFields[i]).valueAsString);

    }

    Display console

    Console.Show ();

    You can place this code in the mouse event to the top of a button and click the button to run it. This last line of code displays the console and you will be able to copy & paste the data.

  • I'm trying to generate an arithmetic and geometric series/sequence with JavaScript.

    I try to generate an average arithmetic and geometric
    series/sequence with JavaScript. The thing that makes this challenge is that
    I use user input to determine the parts of the formula that I use for
    generate each sequence. I tried running the formulas, but I learned that I was
    channels running through them and not numbers. How to generate my
    sequences/series and always use user input? PS, here's my formulas: (a1-East
    first term, d and r are difference/ratio, and n is the n-th term)

    1.) a1 + d * n  

    2.)a1 * r^n

    Entry user of a form is always a string. There are several ways to convert a string to a number in JavaScript:

    • Pass it as an argument to Number()
    • Pass it as an argument to parseInt() (for an integer)
    • Pass it as an argument to parseFloat() (for a floating-point number)
  • Text form field properties: access with Javascript?

    Hello

    I wonder if it is possible to access all of the properties of text form field with Javascript.

    The basic game is available under the domain object, but I'm looking for the other stuff that does not specifically exist for the fields of rich text, such as the properties of next paragraph:

    Dashes (left and right, withdrawal, first to the first line indent), the vertical alignment (top, bottom, middle), space above and below and attack (line spacing).

    All this is available if you place your cursor in a rich text field and press Ctrl-E to open text form field properties, then click on "More".

    So I wonder if it is also accessible via JS, because I can't find anything in the documentation on the subject.

    Thanks much for any help!

    Ariel

    Some properties of rich text are available, but not those you mentioned.

    I'm afraid.

    Study of the Span object to find out which ones are.

  • Customers able to avoid paying shipping with Javascript disabled

    A customer has reported customers in full case without paying shipping costs.  The site uses USPS to calculate shipping costs.

    The following code is used in the basket of a user to calculate shipping costs {tag_shippingoptions, false, ShipToSingleCountry, US, false, false}

    I spent a test with Javascript disabled command and has been able to bypass the selection of one of the values of shipment required as a result of no value showing actually.  Is there a job recommended around this option to prevent users from manipulating the system to avoid shipping charges?

    Thank you!

    You can hide the payment button if javascript is disabled, and replace it with a message that javascript must be activated at the cash register. Not the best solution, but it works.

  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to create bookmarks with javascript?

    Hello!

    I have a question about the creation of boomarks with javascript.

    I use the following line to create bookmarks:

    this.bookmarkRoot.createChild (words [i], ' pageNum = one "" ");


    The problem is that the bookmarks are created but all lead to the same page.

    Get the complete code:

    / Put the title of the script here.

    var string2 = [];

    string2 = "Word, example; test. "

    Var words = words.split(";");

    var N = words.length;

    for (i = 0; i < N; i ++) {}

    pageArray var = [];

    var string = words [i];

    for (variety p = 0; p < this.numPages; p ++) {}

    for (var n = 0; n < this.getPageNumWords (p); n ++) {}

    If (this.getPageNthWord (p, n) is {words [i]})

    pageArray.push (p);

    a = pageArray [0];

    this.bookmarkRoot.createChild (words [i], ' pageNum = one "" ");

    break;

    }

    }

    }

    }

    Any help is very appreciated!

    It seems that the variable a is useless and only one line:

    this.bookmarkRoot.createChild (words [i], 'pageNum = "+ p);

  • How to display the note for a cell of table with javascript?

    My goal is to do it with javascript. No manipulation of the side server.

    < af:table id = "t1" >
    < af:column id = "c1" >
    < af:outputText id = "ot1" >...
    < af:clientListner ...method="showpopup"/ >
    < /... >
    < /... >
    < /... >

    ....

    < af:popup id = "p1" >
    < af:noteWindow id = ot2 >
    here to show the value of ot1
    < /... >
    < /... >


    function showPopup (e) {}
    var text is e.getSource () .getValue ();.
    var popup is e.getSource (.findComponent("::p1"));.
    now, how to upgrade the content of the notewindow?
    Popup.Show ();
    }

    Hello

    You can try with something like that.

                   
                        
                    
    
                    
                        
                            
                        
    
                    
                    
                        function showPopup(evt){
                            var ot1 = AdfPage.PAGE.findComponent("ot1");
                            var text=ot1.getValue();
                            var popup=AdfPage.PAGE.findComponent("p1");
                            var ot2=AdfPage.PAGE.findComponent("ot2");
                            ot2.setValue(text);
                            popup.show();
    
                            }
    
                    
    

    Arun-

  • Control filters CSS with javascript

    I know that I came across a post in the past values explaining how retrieve CSS with javascript, but I can't find it now. Basically, it came down to something like this:

    sym.getSymbol (componentNum) .getSymbol (BKnum).$("open1").css ("opacity");

    I am now trying to control the CSS values and can reverse this to control the standard CSS values, but may not understand the appropriate structure for control of CSS filters.

    sym.getSymbol (componentNum) .getSymbol (BKnum).$("open1").css ({'opacity':0.5});})

    This changes the opacity a.5 successfully, but how I would control the inverted property? Animate lists like:

    CSS: filters: invert()

    As opposed to:

    style = "opacity:." 5; »

    You can do something like this:

    var filterVal = "invert (0.6);

    SYM.$("rectangle")

    . CSS ('filter', filterVal)

    . CSS ('webkitFilter', filterVal)

    . CSS ('mozFilter', filterVal)

    . CSS ('oFilter', filterVal)

    . CSS ('msFilter', filterVal);

    HTH,

    Vivekuma

  • I'm unable to use the Live View function when working with JavaScript in Dreamweaver.

    I'm currently trying to set up my own Web site with dreamweaver and am very familiar with the languages Java and JavaScript. However, whenever I try to use the Live View function it never let me. In addition, I can't get a preview of my work in a browser, as to do so is greyed out.

    However, I noticed that when using html in a project, all these functions are available. Any ideas how I can be able to use these features?

    Or perhaps you mean a .jsp file that is a Java Server Page.

    Modern web pages are almost entirely HTML code with CSS for styles and JavaScript for functionality added as games & slideshows or interactive menus.  It does not seem possible for me that you have been creating web pages entirely with JavaScript.

    Nancy O.

Maybe you are looking for

  • AVG says FF using a lot of memory - suggest I close FF

    I spent a lot of time to describe my situation.The suggestion, I'll be watching help finally noticed.I did this - and discovered a lot of people have this problem.When I came back at the end of this letter, what I wrote was gone.I don't know him agai

  • Y560 dead

    I tried to degrade my bios by using the bios.bak file after I've updated. but, to my surprise, my laptop has in fact never restarted after the update, only after the closing, it was led then I took out the battery to turn it off. After that my laptop

  • Z510 Problem Batery

    Dear Sir I have a problem with the battery on my laptop (Lenovo Z510). IF I work without the power cable in my laptop notebook unexpectedly closes without any warning of low battery. When I put that laptop power cable works fine and begins to charge

  • Threshold of 1 d send me a zero

    I am using the D 1 threshold to give me the index of x values y in order to find the time constant; However, the 1 d threshold gives me zero when there is clearly this value in the data. Anyone know why it does this? Thank you

  • White space to the right of the browser

    The site can be seen at: mina.liangbros.com.I read through many sons and they said I have objects outside the frame or box of muse but I double and triple checked and there is no external object. I have not added the no style scrolling as suggested s