Current Position:Home > Issue with Form submit

Issue with Form submit

Update:10-11Source: network consolidation
Advertisement
Hi,
Currently i have a BSP application (page with flow logic) working. Where it has 5 input fields (numc) and based on the quatity entered (On click of SUBMIT button)the calculations are done and final amount is displayed in same screen.
Requirement: I need to remove the Submit button and enable the Form submit once the user enters value in any of 5 input fields and comes out of that field.
Currently i tried using JavaScript but with no success.
i tried attaching onblur event to my input field tag and the function associated with onblur event will do window.form.submit();
But i'm getting Error in Explorer as "'window.form' is null or not an object"
In Mozilla as "window.form has no properties"
I'm not able to post my code.. pls tell me how to do that
Please guide..
Thanks in Advance,

The Best Answer

Advertisement
here is a simple sample application:
page attribute:
mess type string
layout
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title=" " >
    <htmlb:form id="myform" >
      <htmlb:inputField id    = "IP1"
                        value = "<%= mess %>" />
< script for="IP1" event=on blur type="text/ j avascript">
          document. myform .submit();
       < /script>
            <br>
       <%= mess %>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
oninput processing
data: ip type ref to cl_htmlb_inputfield .
ip ?= cl_htmlb_manager=>get_data( request = request
                                           name    = 'inputField'
                                           id      = 'IP1' ).
if not ip is initial .
  mess = ip->value .
endif .
Edited by: Durairaj Athavan Raja on Mar 18, 2008 3:54 PM
  • HFM Security Issue - User can submit a journal by by-passing the approval step even though they are not an admin. Update:10-11

    Hi All, I was wondering if anyone could help me with a HFM security issue on HFM 11.1.2.3 we are facing please? The problem is that a user can by-pass the journal approval stage and post directly after submitting if Custom4 access control=All is sele

  • Issue with Form submit Update:10-11

    Hi, Currently i have a BSP application (page with flow logic) working. Where it has 5 input fields (numc) and based on the quatity entered (On click of SUBMIT button)the calculations are done and final amount is displayed in same screen. Requirement:

  • SUBMIT REPORT statement issue in abap Update:10-11

    Hi Experts, I am facing issue while doing SUBMIT REPORT statement. Below are the details for the Issue: 1. We want to execute another report ZTEST2 from one report , so we have written code in report ZTEST1 as below:                       SUBMIT ZTES

  • Email Submit Issues Update:10-11

    I currently have Adobe CS4 now.   The problem I am having is with the form emailing to the person I  specified in the Email Submit button.  Instead, it wants to email to  me.  I never had this problem with the previous version.  I create a  form, I a

  • I add a "Submit" button, but it doesn't work? Update:11-30

    I added a Submit button to a form, but it does not show up once the form is distributed. It this one of the many issues with the "Submit: button?Try a hard reset: Remove the battery and unplug the DC power adapter. press and hold the power button for