How to use javascript to go to different pages?

I use javascript to pop-up a message box with selection or not.

If the user select Yes, and then I want to go to page 10.
If the user select No, and then I want to go to page 12.

How to use Javascript to control which pages to go?

Thank you.

Now, I need to get the values of entries in the list.

What are the values that you need to get your entries in the list?

Can you post JS and what you're trying to do?

Kind regards
Hari

Tags: Database

Similar Questions

  • How to use JavaScript to change the named view

    How to use JavaScript to change the named view

    Do you mean to jump to a specific Destination named within a PDF file? SE so there

    the method gotoNamedDest of the Document object.

  • How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    How to use JavaScript to limit the number of boxes to check the user can select a PDF form?

    Here's the working solution

    Please rename all the boxes like chkBox0, chkBox1... .chkBox30 (must start with 0)

    Value of exports of each checkbox must be "Yes" (default value is Yes)

    Place this Code at the level of the Javascript Document

    -Code JavaScript document-

    var counter = 0;                Checked the meter

    -Count boxes checked again when the document is closed and reopened.

    for (var i = 0; i)<= 30;="">

    If (getField("chkBox"_+_i).value == 'Yes') {}

    Counter += 1;

    }

    }

    -The function of validation-

    function validateCheckBox(name,value) {}

    If (value == 'Yes' & meter)<>

    Counter += 1;

    } else if (value == 'Off') {}

    counter = 1;

    } else {}

    getField ("name") .value = "Off";

    App.Alert ("you can select only four checkboxes");

    }

    }

    -End of Document Javascript-

    Now put this line in the MouseUp event all checkboxes

    Box - Code MouseUp event.

    validateCheckBox (event.target.name, event.target.value);

    //----------------------------------------------------------------------------------

    Hope this will help

    Kind regards

    Post edited by: Mohammad Irfan

  • JavaFX how to use WebView load the local HTML page?

    JavaFX how to use WebView load the local HTML page?

    If the HTML code of the files in the class path, which is in the package, the load using one of the following ways:

    String url = Main.class.getResource("/html/index.html").toExternalForm();
    engine.load(url);
    

    The above methods can only load files outside the class path!

  • How to use Javascript to loop through a tabular presentation

    APEX: 4.2.3

    DB: 11 GR 2

    Requirement:

    I have a master form / retail. We will see that master is the order information; Detail is the order lines. Detailed form is tabular

    The detailed form, there is an attribute called 'Line Order Qty' and the user can update this field.

    User can update all rows in the detail forms and change "line Order Qty' for each line. When the user click on 'Save' button on Master form, I have to do below:

    Sum of the 'line Order Qty' for all lines, and compare it to another field called 'Plan Order Qty' on the master shape.

    If sum 'Line Order Qty' > "Plan Order Qty", then it should appear a message with "Are you sure?" with two buttons on the message: OK and cancel.

    If users click on 'OK', the application will proceed and update another field called 'Sum of Order Qty' on the main form and the value set for the sum of "Online Order Qty" for all lines;

    If the user clikc 'Cancel', the application will be paused. The user must come back to change "Line Order Qty", and then try again

    given, I need a popup message when the validation, I think I have to write javascript; However, in the javascript code, I need complete all lines in detail (tabular form) to get the

    The sum of the 'line Order Qty'. Then I can compare the value and to launch the pop message if validation has failed?

    By reading this thread: building the perfect beast: Oracle APEX - Soft Validation using dynamic measurements

    I think I need to create a reference for action (DA) dymaic Javascript expression; However, in Javascript, how do I browse a table?

    Yet once, I need an example of using Javascript to browse tabular forms in the form master / detail.

    I don't know that my question should be raised before; but I can't find a good match of thread.

    Thank you!

    Kevin

    Hi Kevin Zhang,

    Sum of the 'line Order Qty' for all lines, and compare it to another field called 'Plan Order Qty' on the master shape.

    If sum 'Line Order Qty' > "Plan Order Qty", then it should appear a message with "Are you sure?" with two buttons on the message: OK and cancel.

    If users click on 'OK', the application will proceed and update another field called 'Sum of Order Qty' on the main form and the value set for the sum of "Online Order Qty" for all lines;

    If the user clikc 'Cancel', the application will be paused. The user must come back to change "Line Order Qty", and then try again

    given, I need a popup message when the validation, I think I have to write javascript; However, in the javascript code, I need complete all lines in detail (tabular form) to get the

    The sum of the 'line Order Qty'. Then I can compare the value and to launch the pop message if validation has failed?

    Follow the steps below

    Step 1: Change your page - > function and declaration of the Global Variable-> to insert the code below

    (i) f06 is here, the column on which I am looping the f06 column and enters the total variable to the value change in the values of the row that is changed by the user.

    (II) also replace your column with f06 markup on which you want to loop and calculate the total

    (III) assuming that P6_ITEM is the point where you plan_order_qty, replace with your article.

    (IV) SAVE this demand is what happens when OK is clicked, assign the request to process.which you give the floor to a click of the button SAVE the

    function update_order_qty () {
      var line_order_qty_tot = 0;
      $("input[name='f06']").each(function() {
        line_order_qty_tot += parseFloat($(this).val().replace(/,/g,''))||0;
      });
    
      var plan_order_qty = apex.item( "P6_ITEM" ).getValue()
    
      if (line_order_qty_tot > plan_order_qty) {
          apex.confirm('Are you sure?', 'SAVE');
      } else {
          apex.submit( 'SAVE' );
      }
    }
    

    Step 2: Edit the page-> Execute when loading the page-> to insert the code below

    \\calculate the total on change
       $("input[name='f06']").change(function(){update_order_qt();})
    

    Step 3: Change your button Save and put under the Action when the button is clicked

    Action: Redirect URL

    Target URL:

    javascript:update_order_qty();
    

    Hope this helps you,

    Kind regards

    Jitendra

  • How to run Javascript in a PL/SQL Page process?

    Hi all
    I developed a page that calls Adaptive API of PayPal payment and I had success by posting to PayPal and get a response with a valid "Paykey" using a process of PL/SQL page. I leaned heavily on 'Express Application Integration with PayPal Payments Pro' at http://www.oracle.com/technetwork/developer-tools/apex/integrating-application-express-wit-129259.pdf


    Now I need to call again PayPal (to process page) for my user to approve the payment set up exactly.

    PayPal's API doc says to run the following Javascript code, but I can't understand how to call her leave in a PL/SQL Page process...:


    function javascriptLaunch()
    {
    flow_Javascript = new PAYPAL.apps.DGFlow ({expType: "light"});
    flow_Javascript.startFlow ("< paykey returned earlier > https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay?paykey=");
    }
    javascriptLaunch(); -For auto-run function


    Note: The 'src' in the header is:
    < head >
    < script src = "https://www.paypalobjects.com/js/external/dg.js" type = "text/javascript" > < / script >
    < / head >


    So if I take the URL in the startFlow (and provide a paykey valid) and put it in my browser the page URL approval as expected, but I need to have the "pop up" approval in a lightbox of a PL/SQL Page process.

    I think that it is something simple, but I need your help.

    Thank you
    Russ

    Below, I've included the entire contents of a local file, I created to prove the javascriptLaunch works and isn't the problem (of course PayPal gives an error in the light table, because he can't find a 'junk' paykey):

    < html >
    < head >
    < script src = "https://www.paypalobjects.com/js/external/dg.js" type = "text/javascript" > < / script >
    < / head >

    < body >

    < script type = "text/javascript" >
    function javascriptLaunch()
    {
    flow_Javascript = new PAYPAL.apps.DGFlow ({expType: "light"});
    flow_Javascript.startFlow ("https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay?paykey=junk");
    }
    javascriptLaunch();

    < /script >



    < / html >

    Why should it be run from pl/sql process?

    What is the process? What is a button on the page?
    Could this button call a dynamic action that fires to javascript, and then a few plsql, then call your required javascript API?

    Scott

  • Pages how to used the Roman numerals of the page numbers?

    Hello, I have a MacBook Pro (retina, 13 inches, end 2012) Version OS X El Capitan 10.11.3. I am a PhD student and my Advisor requires that I use Roman numerals to number my pages, instead of regular numbers. However when I click on the lower right to insert numbers, I am not given the choice of Roman numerals. I'd appreciate if someone could give me instructions on how to do it. Thank you.

    It is always useful to mention both your current OS X version and the specific version of Pages in use.

    Assuming that you have little flavor of Pages v5, once you have inserted your page number you described, then click Document in the toolbar, and then select the tab of the Section. Among the formats in the selector Page numbering is Roman numerals.

  • How to use the application element in the page template

    How to use the point of application in the page template.

    Thank you

    Rajendra

    I found out the answers, you can use & application_item.

    Thank you

    Rajendra

  • How to use the values acquired by different treatments with 9188 OR cDAQ

    Hi guys, I'm trying to use NI DAQ 9188 chasis with temperature measurement module 9214. I plugged in 3 modules to the module and split signals. But I'm not sure that I can easily these values in functions. I'm trying to convert them into table 1 d, but when I converted the table 1 d I can't see the values and use separately from each other. For example, I simply multiply the first value of 1 thermocouple. How could I do that. In addition, the signals in the waveform table 1 is not smooth. What is the reason for this? Thanks in advance.

    Hi James-D,

    Thank you. Now, it is clear to me.

  • How to use no-9234 to acquire different types of signals (sound pressure and acceleration) concurrency in a task?

    In the labview example, it have only a type siganl acquire vi.  I don't know how to acquire signals of type used in a single task.  I'll use the same rate of sampleing.

    The attachment can not acquire two signals at the same time. I just use a "Table control" to acquire the signal.

    who can give me some example of VI.

    Thanks in advance.

    Hello Kisyou,

    You must insert another channel to create DAQmx with the desired properties, then point it to a channel not used on your NI 9234 like the image below.

    Best regards

    Izzy O.

    Product Support Engineer

    National Instruments

  • How to use 2 AAA server to different connection end

    Hello, could you help me?

    It is a part of my setup; I would add another RADIUS server, witch should take care of the telnet at vty 0 4.

    10,20,30,40 RADIUS server supports virtual access, and I have another RADIUS server which takes care of to connect to our network equipment.

    ! Cisco 7204 with system flash c7200-io3s56i - mz.121 - 4.bin

    !

    AAA new-model

    AAA authentication login default group Ganymede +.

    enable AAA authentication login no_tacacs

    AAA authentication ppp default group Ganymede +.

    AAA authorization exec default group Ganymede +.

    AAA authorization network default group Ganymede +.

    AAA accounting exec default start-stop Ganymede group.

    AAA accounting network default start-stop Ganymede group.

    Default connection accounting AAA power Ganymede group.

    !

    virtual-virtual-model profile 1

    virtual - profile aaa

    !

    interface Serial2/0:15

    ISDN30 description

    no ip address

    encapsulation ppp

    no ip route cache

    No keepalive

    Dialer pool-Member 10

    primary-net5 ISDN switch type

    first request ISDN tei negotiation

    XXXXXXX calling ISDN

    no fair queue

    compress the stac

    No cdp enable

    Chap PPP authentication protocol

    multilink PPP Panel

    !

    interface virtual-Template1

    IP unnumbered FastEthernet1/0

    NAT outside IP

    Chap PPP authentication protocol

    !

    host key 10,20,30,40 radius-server *.

    !

    Line con 0

    exec-timeout 20 0

    password *.

    connection of authentication no_tacacs

    transport of entry no

    FlowControl hardware

    line to 0

    line vty 0 4

    access-class 1

    exec-timeout 60 0

    password *.

    connection of authentication no_tacacs

    transport telnet entry

    telnet output transport

    If I just add

    AAA authentication login vtymethod group Ganymede + activate

    10.50.60.70 host key radius-server *.

    line vty 0 4

    connection of authentication vtymethod

    My telnet request 10,20,30,40 and I refused! Could help you make a secure solution?

    Thank you

    Jens

    I think that your solution would be to set up a group of different RADIUS servers with the new server of the new group and use the new group to authenticate your vty. The config might look like this:

    AAA server Ganymede group + vty_TAC

    Server 10.50.60.70

    enable AAA authentication login vtymethod group vty_TAC

    10.50.60.70 host key radius-server *.

    I set up this kind of thing and it worked fine. When I set it up I have explicitly configured (so named) two different RADIUS server groups and referenced groups of specific servers for each authentication method. I did not understand if it works to keep the default group Ganymede + and use it for your authentication normal or if you may need to configure a default group for this.

    Try it and tell us what is happening.

    HTH

    Rick

  • How to use Javascript to populate a text field based on a selection in a drop-down list?

    Greetings,

    I have virtually no experience with JavaScript and I'm trying to find a way to add some functionality to basic Automation to a form of Adobe.  I have a drop down box called "Hospital_Name" which will contain about 7 possible selections.  When the user makes a selection, I would like to have the field of text (called "Hospital_Address") under the drop-down list fill with the corresponding address to the selection.  I have the "Hospital_Address" text field set up for multiple lines and want the address to have a line break between the address and the city/province/postal code.

    For example, if the user has selected "Hospital 1", the text field would display:

    123 main St

    Anytown, CA 12345

    Help or you can provide examples would be greatly appreciated.

    'Re missing you the document level script that sets the data object and setItems function.

    document level JavaScript; Could be placed in the action open to the page if you cannot access the document JavaScripts level;

    Place all the pre-population data into a single data structure
    var Location = {}
    ' - Hospital - ': {line1: "', line2:" "" "},
    'Bellevue Medical Center': {line1: "2500 BMC Drive", line2: "Bellevue, NOT 68123"},

    "CHI Bergan Mercy": {line1: "7500 mercy Road", line2: "Omaha, NOT 68124"},
    'CHI Emmanuel': {line1: "6901 N 72nd Street", line2: "Omaha, NOT 68122"},
    'CHI Lakeside': {line1: "16901 Lakeside Hills Court", line2: "Omaha, NOT 68130"},

    'CHI Midlands': {line1: "11111 s. 84th Street", line2: "Papillion, DON'T 68046"},
    'Creighton University Medical Center': {line1: ' 601 n. 30th Street ', line2: "Omaha, NO 68131"},
    'Nebraska Medical Center': {line1: "4400 Emile Drive", line2: "Omaha, NOT 68105"}
    };

    function SetFieldValues (Hospital_Name) {}
    location [Hospital_Name] .line1 = this.getField("AddLine1").value;
    this.getField("AddLine2").value = location [Hospital_Name] .line2;
    }

    end document level scripts;

    custom script hits;

    If {(event.willCommit)

    If (event.value == "") this.resetForm (["AddLine1", "AddLine2"]); of other SetFieldValues (event.value);

    }

    end of custom keystroke script;

    Note the formatting of the elements in a column as a line we can help revise the code. Also use a text editor for processing code.

  • How to use Javascript in template

    Hello

    I have the javascript method. In 10.1.3.x ADF version I used it following way:

    & lt; AFH:body onload = "handleOnLoadNavigation (); "& gt;

    This method must be called in all pages, then I want to use in the model. What is an equivalent method to the onload event of the body in the ADF RC page template? tag AF:document is not found in the model, and only for this tag, I can fix af:clientListener with the type of load .

    Kuba

    Jakub

    in fact the model does not have client listeners at its root. However, what the solution below

    
         
    
          
            jstest
            
              main
            
          
        
        
          
            alert("so guess what");
          *
          
        
      
    

    Frank

  • How to use the OS on a different language on my Satellite A500-18 t?

    My laptop is Toshiba Satellite A500-18 t with French edition of Windows 7 Home premium.
    I want to change the interface of windows for English, but how can I do this?
    Please, I want a quick help... I would also like its drivers

    Laptops are specific countries and products when you buy your laptop you also buy OS with a single license for your operating system preinstalled.
    If you want the English version, you must purchase Microsoft Win7 disc facilities for the English language.

    All the drivers, tools and utilities that you can find on Toshiba download page under http://eu.computers.toshiba-europe.com/

  • How to use radio buttons to display different text depending on the selected button?

    I am new to acrobatXi and have been implemented on-line to fill PDF Forms.

    I have 3 radio buttons in a group (Group 1) choice1, the lendemain2 and the 3 choices.

    I would like a text box to display the text "price" If you selected option 1, the 'price B' If you selected option 2 and the ' price C "If you selected option 3.

    I have no experience of java, so any help would be appreciated.

    Use this code in the custom text field calculation script:

    var v = this.getField("group1").valueAsString;
    if (v=="Off") event.value = "";
    else if (v=="choice1") event.value = "Price A";
    else if (v=="choice2") event.value = "Price B";
    else if (v=="choice3") event.value = "Price C";
    

Maybe you are looking for

  • Tecra M11-15 x in the docking station - No sound

    Hi all We use the laptop mentioned above.Unfortunately, none of us has sound when the laptop is docked to the station.The station sound works. Anyone have an idea where the problem would be? Funny thing is that during the startup of windows start mel

  • My HP Pavilion g (Pavilion g7) series lights!

    So I bought this HP laptop about two years ago. It worked great, no problem. Recently, the laptop decided it was a good idea no longer lights. Everything I get, while the laptop is connected to the charger, is a little orange light where the charger

  • &lt; CLOSED &gt; bike E Bootloader

    What is the Bootloader unlock?

  • VISTA recovery failed

    Have Compaq CQ60-410US and VISTA stop working.  Could not get at all, just kept rebooting.  Downloaded VISTA recovery disc, all the controls have been OK, but it was no help.  Recovery disk used to access the command prompt and reformatted disk.  Tri

  • where can I download official windows xp service pack 2?

    where can I download official windows xp service pack 2? I have an old system must run this os or where to buy it?