javascript - PreSaveAction is not firing -


Any idea why preSaveAction is redirected only should it add a record and then the user should take to the thank-you page of the survey .

  & lt; Script src = "http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.6.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {// old handler: var oldHandler = function () {if (PreSaveItem ()) return false; WebForm_DoPostBackWithOptions (New WebForm_PostBackOptions ( "ctl00_m_g_4bde870c_7fcd_4f61_b446_e287f846faf3_ctl00_toolBarTbltop_RightRptControls_ctl01_ctl00_diidIOSaveItem", "", "right", " ", false, true));}; // old moved to add a new handler: var newHandler = function () {if (PreSaveItem ()) return false; WebForm_DoPostBackWithOptions (new WebForm_PostBackOptions (!" ctl00_m_g_4bde870c_7fcd_4f61_b446_e287f846faf3_ctl00_toolBarTbltop_RightRptControls_ctl01_ctl00_diidIOSaveItem "," ", true, "", "", False, true)) window. Location ("/ survey / page / thank you .. espx"); return true;; $ ("# ctl00_m_g_4bde870c_7fcd_4f61_b446_e287f84 6faf3_ctl00_toolBarTbltop_RightRptControls_ctl01_ctl00_diidIOSaveItem "). Unbind ('click' Old Handler). Click (New Handler);}); & Lt; / Script & gt; 



  

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -