Skip to Content
avatar image
Former Member

Calling javascript function in event

Hi,

i want to call a javascript function in the event OnInputProcessing.

My goal is when i click a htmlb bouton, i make some works in my event onInputProcessing and then, i want to show a 'confirm' to ask if the user wants to continue or not. Is that possible ?

Thansk

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 28, 2004 at 08:30 PM

    Hello Halipre,

    Have you considered breaking your 'process flow' into two pieces.

    Insert a confirmation question between the two processes. If the user presses "YES" then continue on and start the second process. If the user presses "NO" then just stop after the first process.

    If you do decide to go this route then make sure that you flush your unusable objects when the user presses "NO".

    Good luck,

    - Vik.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 05, 2004 at 02:26 PM

    We must very carefully consider our left and our right hands here. On the left, we have the browser. There we speak HTML and JavaScript. On the right we have the WebAS with BSP. Here we speak ABAP. So once you are in the onInputProcessing method (on the right) you are in the server, and can not do anything in the browser.

    You have one of two choices:

    (*) Either before leaving the page to the server, bring the popup to ask the question. If you are using our HTMLB library, you can hook the onClientClick.

    (*) If you are already on the server, you must render out a new HTML page (effectively another BSP page) to ask this question, and then return back to the server.

    ++bcm

    Add comment
    10|10000 characters needed characters exceeded