NetTalk Central

Author Topic: Uncaught ReferenceError: save_btn is not defined  (Read 2907 times)

Mark Sarson

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Uncaught ReferenceError: save_btn is not defined
« on: May 11, 2011, 09:41:23 AM »
NTWS 5.25 - Clarion 6

Hi, In my app I call a from from a menu. Im calling it with this code

UpdateMainPassenger?change_btn=change&_bidv_=' & p_web.AddBrowseValue('WebMenu','Customer',CUS:KeyCustomerID)

The form appears correct, all data for the record is loaded etc.

However, no matter what I try to do, I get the following being issued to the console in Firebug/Chrome dev tools when I press the save button on the form. This is the standard save button, but have tried to add one on the form as well, and that gives the same result.

Uncaught ReferenceError: save_btn is not defined.

I'm pasting in a few lines where that error is occuring, in case it helps. But some advice would be appreciated.

Regards

Mark

<div id="UpdateMainPassenger_saveset" class="">
<button type="button" name="save_btn" id="save_btnFWVO" value="Save" onclick="removeElement('UpdateMainPassenger_frm','updatemainpassenger_procextendflight_embedded_div');removeElement('UpdateMainPassenger_frm','updatemainpassenger_browseshoppingitems_embedded_div');removeElement('UpdateMainPassenger_frm','updatemainpassenger_passengers_embedded_div');removeElement('UpdateMainPassenger_frm','updatemainpassenger_linkedpassengers_embedded_div');removeElement('UpdateMainPassenger_frm','updatemainpassenger_browseflighthistory_embedded_div');document.UpdateMainPassenger_frm.action='WelcomePage'; document.UpdateMainPassenger_frm.target='_self'; dsb(event,UpdateMainPassenger_frm,save_btn,'save_btn','','');" title="Click on this to Save the form"  data-nt-default="1">Save</button>
<script defer="defer">
jQuery(function() {jQuery("#save_btnFWVO").button({icons: {primary:'ui-icon-check'}});});

</script>