Yes, how the heck is saving done?? I don't get it, I've gone through pages and pages in this forum without success.
Currently, I am saving the HTML of the fckEditor on every Page_Load, as the 'Save' button submits the form. However, this seems juvenile and unprofessional. How can I utilize something like the __doPostBack function where I can pass in the Id and Argument so that I can retrieve these values in the code behind and test for them properly? I want to click save on the save icon in the toolbar and have it postback to the server with a saveId and/or specific argument that I can look for to tell when the 'save' button has been clicked. I've read several posts similar to this, but it seems no-one is able to actually do it.
I get that the 'save' button is simply a submit button. I can see in the fckConfig.js file where the form is submitting:
FCKSaveCommand.prototype.Execute = function() {
var A = FCK.GetParentForm();
if (typeof (A.onsubmit) == 'function') {
var B = A.onsubmit();
if (B != null && B === false) return;
};
if (typeof (A.submit) == 'function') A.submit();
else A.submit.click();
};
Yeah i get that can change the A.submit to call my own function to perform the postback. However, when i substitue the A.submit to use __doPostBack('myIdOfTheCtrlHere', 'myArgumentHere'), the __doPostBack function is unrecognized.
Re: SAVE BUTTON
Re: SAVE BUTTON
Re: SAVE BUTTON
Currently, I am saving the HTML of the fckEditor on every Page_Load, as the 'Save' button submits the form. However, this seems juvenile and unprofessional.
How can I utilize something like the __doPostBack function where I can pass in the Id and Argument so that I can retrieve these values in the code behind and test for them properly?
I want to click save on the save icon in the toolbar and have it postback to the server with a saveId and/or specific argument that I can look for to tell when the 'save' button has been clicked. I've read several posts similar to this, but it seems no-one is able to actually do it.
I get that the 'save' button is simply a submit button. I can see in the fckConfig.js file where the form is submitting:
FCKSaveCommand.prototype.Execute = function() { var A = FCK.GetParentForm(); if (typeof (A.onsubmit) == 'function') { var B = A.onsubmit(); if (B != null && B === false) return; }; if (typeof (A.submit) == 'function') A.submit(); else A.submit.click(); };Yeah i get that can change the A.submit to call my own function to perform the postback.
However, when i substitue the A.submit to use __doPostBack('myIdOfTheCtrlHere', 'myArgumentHere'), the __doPostBack function is unrecognized.
Help please.