Calculate the elements without generating a request

Dear users of the forum,

It is possible to calculate the elements in a page without generating a request for the page.

I have 3 items, allows the appeal of quantity, price and total price.

If I want to calculate the price total that I have to apply, place a process page to calculate, and so forth.
But the screen is splashing with the request to leave.

How a javascript function would work, when it is placed in the page header?

Thank you very much for the help!

Concerning

Frank

Hello

of course, you can calculate your price without submitting the page.

What you need is the javascript function that takes the value of the quantity and the price and returns the total value.

Equip your header of this code page (I guess the name of your items are like P1_PRICE etc..):


Create a button, then replace his target at the following URL ("Redirect URL" option button section):

javascript:calculateTotalSum();

Now, whenever you press the button, total price will be calculated without presenting.

Kind regards
Przemek

Tags: Database

Similar Questions

  • Can't hide from the elements without/with jQuery

    I created new Addon for my Firefox I use myself, but can't get it hide items with or without jQuery. It does not matter at all to use jQuery together.

    XUL file creates the toolbar with a button that have "oncommand ='Unlock ()" "" and it also includes the .js file that have function Unlock()

    Well. in any case, I think that my default files has been implemented correctly, because I have "alert ('Starting...');" before the line item to hide and he says 'go '. "with alert, but after that it is not made effects for the element in the example 'idofelement '.

    js file contains "document.getElementById('idofelement').style.visibility ="hidden"
    I tested different types of methods that hide the element in the example style.display = 'none', but none of them works.

    He always says 'go '. "so he runs the function properly, but nothing happens after that.

    Found the solution. I googled this for several days, but did not find a solution. Just used keywords "firefox addon getelementbyid" and selected "disorders" with it and found the solution. I had to use:

    content.document.getElementById ("id") so in other words I had to add the word 'content' in the front of the document.

    Thank you!

  • hide the element without javascript

    I have the form for an article that has its default value.

    I try hide the element in a state average and ordinary wirh too... but after action insert it doen't register any value

    I don't want to use javascript to hide. so...

    is it possible to hide point without javascript, so it will not lose its value after insert action?

    For the selected condition type, you must specify a "point-name" in Expression1

    CITY

  • HP Pavilion Notebook M1X96UA #A: pointer opens the elements without me top clicks

    I've only had my laptop for two weeks.  I tried to change the sensitivity for the mouse pad, but my pointer is open to all that it is based on without me clicking on it.  It becomes very frustrating.

    Hi there @schase5,

    Yes, if you look at the document Touchpad in my last post, there is a section called the sensitivities of score setting TouchPad and ClickPad. This should help you to change the sensitivity on your TouchPad.

    I would like to know if it works for you.

    Thank you!

  • In good company the child elements of the element without terminals are not visible.

    Hi all

    Jdev version 11.1.1.7.0

    I am facing a company in good standing question...

    Scenario: I create approval Service (BPEL) with flow of human labor and the Bunises rule.

    I'm assingning HW participating using the rule based (HW and BR connection).

    Problem is:

    Shema has element 'unbounded '.

    < name of item = "ExpenseItem" maxOccurs = "unbounded" >

    < complexType >

    <>sequence

    < element name = "ItemID" type = "string" / >

    < element name = "ItemName" type = "string" / >

    < element name = "ItemPrpjectID" type = "string" / >

    < element name = "ItemStatus" type = "string" / >

    < / sequence >

    < / complexType >

    < / item >

    Whenever I have create a Busines to configure rules.

    ExpenseItem rules setting up the child elements are not visible. But those who are required to configure rules.

    If you can help solve me would be useful.

    What is a behavior bedault of the BR? If yes how can I do this?

    Thank you

    David

    Solution found:

    Click on set of rules that you have created.

    Expand rule in there.

    Select the Advanced mode and mode tree, and then click OK.

    Select the root task, click insert pattren and create pattren based on unrelated element (here actually destiny)
    Once you create pattren, will be elements of access under item boundless for the configuration of business rules.

  • Generate dynamic elements without refreshing the page

    Hello

    I have a challenge to generate elements on a page dynamically without refreshing the page.

    I tried to do with AJAX, but do not have the elements on the page.

    I see that my process is called as I can warn the outcome of the appeal.

    Here is my code:

    I have a button calling the JavaScript function with AJAX call for the process:

    function f_OnDemand() {}

    get var = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is NEW_FLOW', $v ('pFlowStepId'));

    invoke

    gReturn = get.get ();

    ajax reminder alert

    Alert (gReturn);

    }

    And here is the process that involves creating a few dynamic elements on a page:

    DECLARE

    Meter number;

    number of items;

    number of p_counter;

    BEGIN

    items: = TO_NUMBER(:P7_NUMBER);

    FOR counter IN LOOP 1. items

    p_counter: = counter + 1;

    HTP. P ("Item" |) APEX_ITEM. DISPLAY_AND_SAVE (p_idx = > counter, p_value = >, p_item_id = > counter). ': ');

    HTP. P ('Checkbox': counter |) ' ' || APEX_ITEM. CheckBox(p_idx => Counter, p_value => 'Test'));

    HTP. P(' ' || APEX_ITEM. SELECT_LIST (p_idx = > counter, p_value = > 'Y', p_list_values = > ' Yes;) Y, no.; N') || br / > ');

    HTP. P ("< br / > '");

    END LOOP;

    END;

    The question is - how can I make these elements of rendering on a page?

    I'm on Apex 4.2

    Thank you.

    The return would be inserted somewhere in the DOM of your page. So, regardless of the call ajax returns, must be added to a zone. Use jQuery for this. See this example:

    https://Apex.Oracle.com/pls/Apex/f?p=93000:803

    Denes Kubicek

  • Want to only two elements of the page without a space between them.

    I give a broader and more generic framework to an earlier application seeking a broader response.

    I want two elements on the page without horizontal between space. (Don't ask why!) One is a contant, say ' * ' so I made a single display element. The other is the label of a numeric field that is referenced in the error messages generated by the ARF.

    Call the label LABEL to make this easy. So, I want to see {noformat} * {noformat} LABEL. I don't want to change the label of "* LABEL" because ARF refers to "* LABEL" in error messages. I want to just fix the two elements on the form. This must be something easily done in the APEX, right?

    (For the initial application, see asterisk desire by a label point of page without space between. .)

    Thank you and God bless you,
    Howard

    Hello

    Just change your article networking sessions (if you use apex 4.2)

    Start the new grid: No.
    Start the new row: No.
    New section: No.

    FYI, you may need to use

    & nbsp

    in your point label to get a space

    If you use apex 4.1, I remember: new field should be no.

    Best of luck,

    Best regards
    Fateh
    -------------------
    If you think that my answer was correct or helpful to you, then please check the response as helpful or appropriate.

  • Hello.  Y at - it a means or an application to stop locking the screen EXTREMELY annoying on the Apple Watch.  It's clearly a myopic element for the Apple team because I can't even use the timer without being incredibly bored.  Thank you.

    Hello.  Y at - it a means or an application to stop locking the screen EXTREMELY annoying on the Apple Watch.  It's clearly a myopic element for the Apple team because I can't even use the timer without being incredibly bored.  Thank you.

    Hello

    You can enable the detection of wrist as well as an access code and unlock it with the iPhone:

    • On your iPhone, in the application of the watch, go to: My Watch (low left tab) > General > wrist Detection - this turns on.
    • On your iPhone, in the application of the watch, go to: Watch My > Passcode > Passcode turn on (choose a Simple 4 digit access code or a longer).
      • Also in the password settings screen, select Unlock with iPhone.

    After putting on your wrist, your watch don't unlock then after whatever you do first: unlock your watch manually or unlock your iPhone. Then, it will remain unlocked until you delete the monitoring of your wrist, when that it locks automatically.

    You can also set your watch to the screen to reactivate automatically when you lift your wrist, even select what is displayed on the screen to wake up:

    • On your iPhone, in the application of the watch, go to: Watch My > General > screen Wake:
      • Active screen Wake on revival of wrist, and;
      • Choose if the watch should resume last activity or see the Face of the watch.
  • The progress bar just kept scanning without generating a list of updates or error messages

    I have a hp G70-463 CL portable 2009. It works well until March 2016 when it could not download updates Windows 7 Ultimate. The progress bar just kept scanning without generating a list of updates or error messages. I reinstalled Windows, but this does not solve the problem. The PC otherwise works fine. I can download the software successfully. What is going on?

    You can reset the Windows Update components by running the Fixit on this page. But if there is malware present, she will continue to reset the connection to the update servers:

    How to reset the Windows Update components

    http://support.Microsoft.com/kb/971058

    Suggest you download and save the Fixit. Then configure the system before the clean boot by running:

    How to troubleshoot a problem by performing a clean boot in Windows Vista/Windows 7

    http://support.Microsoft.com/kb/929135

    Once the Fixit has been downloaded and the system is started in the pure State, check that the native Windows Firewall is now on if a 3rd party firewall has been used previously. Now run the Fixit and choose the default mode. Restart once it's done and see if the system can be connected to the update servers. If he can't, then rerun the Fixit and choose aggressive mode. Turn it back on when he finished the race and updates.

    I suggest before you stop and install the updates, disconnect from the Internet, first.

  • Query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the generic "columns" box below the source of the region without analysis. ORA-00905: lack of keyword

    Hi all

    I have create report sql in version 4.2, and now we have apex version 5.0 upgrade.

    I encountered error when I change the State of sql

    The error massage:

    Query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the generic "columns" box below the source of the region without analysis. ORA-00905: lack of keyword

    My SQL

    SELECT VW.*

    , CASE WHEN (VW.file_code is null

    OR VW.cancel_flg = 'Y'

    OR (TOUR_DEP_DATE + GET_FILE_LOCKING_DAYS (VW. (SBU_CODE) < = trunc (sysdate))

    ) THEN

    ' < font color = "Red" > < b > other < /b > < / police > '

    ON THE OTHER

    "< a href =" f? p = & APP_ID.:51: & SESSION. : O PR: & DEBUG. : 51:P51_FILE_CODE, P51_COSTING_CODE, P51_TOUR_REG_NO, P51_VERSION_NO, P51_REQUEST, P51_AGENT_NAME, P51_ADULTS, P51_CHILDS, P51_MKT_CODE, P51_QUOT_CURR:'

    || FILE_CODE | «, » || COSTING_CODE | «, » || TOUR_REG_NO | «, » || VERSION_NO | «, » ||' OPR' | «, » || AGENT_CODE | «, » || VW. FROM_PAX | «, » || 0||','|| VW.mkt_code | ',' | VW. QUOT_CURR |': ' > < font color = blue > < b > other < /b > < / police > '. "

    END as "other Actions".

    , CASE WHEN ((VW.file_code is not null AND TOUR_DEP_DATE + GET_FILE_LOCKING_DAYS (VW. (SBU_CODE) < = TRUNC (SYSDATE))

    OR cancel_flg = 'Y '.

    OR (VW. REF_COSTING_CODE = VW. ADDL_FIELD2 AND VW. ADDL_FIELD1 LIKE '% COPIED FROM % OF APPROVAL'

    AND BOOKING_NAME LIKE "%-Backup")

    ) THEN

    ' < font color = "Red" > < b > edit < /b > < / police > '

    ON THE OTHER

    "< a href =" f? p = & APP_ID.:149: & SESSION. : & DEBUG. : 149:P149_COSTING_CODE:'

    || COSTING_CODE |': ' > < font color = blue > < b > edit < /b > < / police > '. "

    END AS 'Edit '.

    , CASE WHEN (Nvl (cancel_flg, 'n') = 'Y')

    )

    THEN

    ' < font color = "Red" > < b > add < /b > < / police > '

    ON THE OTHER

    "< a href =" f? p = & APP_ID.:33: & SESSION. : & DEBUG. : 33:P33_COSTING_CODE, P33_FILE_CODE, P33_MKT_CODE, P33_QUOT_CURR, P33_NO_OF_ADULT, P33_NO_OF_CHILD:'

    || COSTING_CODE | «, » || file_code | «, » || VW.mkt_code | ',' | VW. QUOT_CURR | «, » || VW. FROM_PAX | «, » || 0 | ': "> < font color = blue > < b > add < /b > < / police > '

    END as 'Services '.

    OF TOUR_MAS_VW VW

    How to solve it.

    Thank you

    Dear friends

    Thanks for your helping hands.

    I found the solution for this. We can solve this problem by using these solutions

    • A region of HTML:

      click me
      
    • Using PL/SQL:
      htf.anchor('f?p=100:5:'||V('APP_SESSION'),'click me');
      
    • Using a SQL query: SELECT htf.anchor('f?p=100:5:'||:APP_SESSION,'clickme') FROM DUAL;

    We can write the query in the form

    SELECT ' f? p = 100: 1 :'|| : APP_SESSION |': ' | : APP_UNIQUE_PAGE_ID |

    ': P1_EMPNO :'|| employe_id,

    first name,

    job_id

    Employees

    Thank you & best regards

    CORINE

  • I accidentally downloaded the elements of photoshop for windows, but I have a Mac... Can you help me move without having to pay to download another?

    I accidentally downloaded the elements of photoshop for windows PC, but I have a Macbook air. Can you help me to switch to the Mac version without having to pay for a new download of the software or the license?

    Go to Adobe to get a refund and then download the right version

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html
    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Can I hire the CC Adobe as a person and use it in a business without generating any legal problems for the company? I'm in the Brazil and the Adobe Web site, that I have not found that everything related to the legislation, they apply in this country on t

    Can I hire the CC Adobe as a person and use it in a business without generating any legal problems for the company? I'm in the Brazil and the Adobe Web site, that I have not found that everything related to the legislation, they apply in this country on this issue.

    single user licenses allow you to use the adobe corporate programs and allow to sell the products that you create using adobe programs.

  • How to animate elements on the screen in the center of the screen without percentage

    Hi, I am very new to Adobe Edge. I take a class for itself at the College so I know the basics, but still to learn. I am trying to create a very basic animation where I have 2 active who are beginning to leave the stage on each side. I wish that the elements to be introduced on the sides and meet in the middle with a duplication of 20px. I tried to set a keyframe for both items at 0 seconds and affecting the translations of X - 2000px and 2000px and then by defining another keyframe to 5 seconds and change translations of X to 48% and 52% respectively. It made me the desired effect, but only because I have such a big screen. If the browser window is resized or the screen is smaller, the effect of not not remains the same due to the use of percentages to Center elements.

    In fact, my question is: is there a way to animate elements until the middle of the screen without percentages (perhaps using margin: 0 auto or something)? Or is there a way to accomplish what I'm looking for so that the positioning of elements is the same regardless of the size of browser window?

    Thanks in advance!

    Nevermind, just ended up using jQuery right and got the effect desired in a few minutes.

  • Elements will not open the TIFF that generated aperture

    Hello

    I use Mac OS X 10.6.8 with opening 3.2.2 and 10 elemets on a MBP 17 "2,8 GHz Intel Core 2 Duo.

    When I use in opening a RAW to alter elements there is no pictute in the elements.

    TIFF in Aperture is generated from the FIRST and items start but there is no image in the elements.

    For example, when I use another external Application, preview it works.

    When I use the Drag & Drop of Aperture to elements icon in dock it works.

    Normal - with Photoshop CS 3 - way on another Mac with the same application works well.

    What can be the reason why the opening and elements do not work on my MBP?

    Concerning

    Jochen

    Make sure you link the correct application.

  • Change the value of the array element without using the keyboard

    I have a control array on my front, say 1 d, 10 items.

    In addition, the front panel should be used with a touch screen, so I have a Subvi keyboard that should be called when I choose one of the elements of the array.  Therefore, no keyboard entry is allowed.

    My question is, how can I determine which element that the user hit/clicked?... .and how to change this value?

    -Mike

    Gents nevermind, found a way to emphasise that if this is the best way, but I got it.

    In my structure of the event, I have an event looking for the mouse event down in regards to the control array.  This event triggers my screen touch keyboard Subvi to fire, and the closure of the Subvi I pass its value to the ArrElem.Value property to assign the table a hit/clicked item.  Works.

    -Mike

Maybe you are looking for

  • How is it I can no longer edit/rename bookmarks to something that makes sense to me?

    How is it I can no longer edit/rename bookmarks to something that makes sense to me? Before I updated to this version, that I could mention, for example, www.blahbankingblah, 'my automatic monthly payments.

  • Satellite A660 HDD failure

    Hi allI've had the laptop for someone to look at.The laptop model is TOSHIBA SATELLITE A660, Windows 7 Home Premium 64-bit.This is not my laptop, I can't tell if the person has been using some software dengerous like spyware or any other, but I suppo

  • gpedit.msc - MMC could not create the snap

    OS: XP Professional SP3 From gpedit from start > run > gpedit.msc, open the Group Policy window, but I get the following error in the right window: MMC could not create the snapMMC could not create the snap.  The snap-in may not be installed properly

  • Using a wrt54gs and an Ooma VOIP hub

    Anyone have any ideas on how to improve the quality of calls with an Ooma hub and a wrt54gs v7.  I use the Ooma hub to my work phone, and I continue to get complaints from people that my line is constantly breaking.  While I'm using the phone, I'm al

  • Verkenner works niet

    Hallo een clean die ik zo niet kan vinden ik wil software perfect en als ik wil openen squeeze configuratie ik steed het bericht dat niet works verkenner dan wordt update Draai ik doe says dan is er geen update was