Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

updating htmldb_Get on ajax javascript (Application Express 4.2.2.00.11)

SiberiaSep 20 2013 — edited Sep 20 2013

hi. (i am new @apex)

i have a form the work fine on desktop version, but i need it in jquery version, so i did the changes but now when i call the on demmand ajax process, seems it does not work.

i guess is because the deprecated htmldb , so i made a change in my jquery javascript updating the way i call the ajax on demmand process:

this is my old version (worked fine on desktop html form) :

                 var ajaxRequestd = new htmldb_Get(null,&APP_ID.,"APPLICATION_PROCESS=SAVE",&APP_PAGE_ID.);

                 ajaxRequestd.add('P1_CODIGO_CLIENTE',html_GetElement('P1_CODIGO_CLIENTE').value);

                 ajaxRequestd.add('P1_TIPO_CLIENTE',html_GetElement('P1_TIPO_CLIENTE').value);

                 ajaxRequestd.add('P1_FIRMA',html_GetElement('P1_FIRMA').value);

                 ajaxRequestd.add('P1_NUMERO_ORDEN',html_GetElement('P1_NUMERO_ORDEN').value);

                 ajaxResult = ajaxRequestd.get();

this is my new version (not working on jquery thml form) :

                          $.post('wwv_flow.show',

                          {"p_request"      : "SAVE",

                          "p_flow_id"      : $v('pFlowId'),

                          "p_flow_step_id" : $v('pFlowStepId'),

                          "p_instance"     : $v('pInstance'),

                          "P1_CODIGO_CLIENTE"  : $v('P1_CODIGO_CLIENTE'),

                          "P1_TIPO_CLIENTE"  : $v('P1_TIPO_CLIENTE'),

                          "P1_NUMERO_ORDEN" : $v('P1_NUMERO_ORDEN')},

                          function(data)

                              {

                                  var jsonobj = $.parseJSON(data);

                                  //do something with it...

                                  alert(data);

                               }

                            );

before making the change for thmldb por $.post, the form did not showed me some alert that the script contains, after the change, now everything on the javascript get executed, but it appears not to execute the ajax process

what am i missing ?

Thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 18 2013
Added on Sep 20 2013
4 comments
642 views