Skip to Content

I need Server Roundtrip on Datepicker selection.

Hi All,

<b>My requirement:</b>On an DateField (CL_HTMLB_INPUT ), if you select a datepicker and select a value, I need a server roudtrip i.e submit of the form.

<b>Code changes I did:</b>with the javascript, I added a code ,

lv_dateField.attachEvent('onchange', function(){

htmlbSubmitLib('htmlb',this,'htmlb:inputField:click:null',lv_formName,lv_dateFieldId,'submitonenter',0);

return false;

});

<b>Result:</b>If I manually change the field and move away from the datefield 'onchange' event is triggered.

<b>Unsolved problem:</b>

If I use Datepicker and select a new value , and move from the fields i.e change focus 'onchange' event is not triggered.

Your help is highly appreciated.

regards,

Vijaya Kumar M.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2005 at 02:09 PM

    Have you tried attaching the onkeyup, onkeypress or blur event instead of the onchange? onchange requires the user to leave the field first.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.