Monday, February 15, 2010

Form OnSubmit & Body OnLoad for a Custom List Form in SPD 2007

We know that in SharePoint, every page is associated with a master page. So we will not have a <Form> tag in it. So it becomes difficult to capture OnSubmit event. But the following post gives a very good explanation on how to achieve this.

http://edinkapic.blogspot.com/2007/10/add-javascript-date-validation-into.html

To achieve the OnLoad event for the <Body> tag, use the following function call

_spBodyOnLoadFunctionNames.push("ExecuteMyFunctionOnLoad");

Thanks to the following link

http://meherkanthch.blogspot.com/2009/01/how-to-add-onload-javascript-event-in.html

No comments:

Post a Comment