Posts

Showing posts from April 20, 2015

Get list Item Using ECMA Script

var context; var collListItem; var itemColl; var controlPrefix = ""; var context1; var collListItem1; var itemColl11; var controlPrefix = ""; var uservalue = ""; $(document).ready(function () {     //debugger;     //ExecuteOrDelayUntilScriptLoaded(getUserData, "sp.js");     //    getEmplist(); }); function getUserEmpBasicData(user,listname) {     debugger;     //listname = "EmpBasicInfo";     uservalue = user;         context = new SP.ClientContext.get_current();         list = context.get_web().get_lists().getByTitle(listname);         if (listname == "TempEmpBasicInfo") {             controlPrefix = "Old";         }         else {             controlPrefix = "New";         }         var query1 = new SP.CamlQuery();         var stryquery = "<View><Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + user

Model Dialog Using Javascript

$( "#divExcelData" ).dialog({                         title: "Preview" ,                         resizable: false ,                         height: dialogHeight,                         width: dialogWidth,                         modal: true ,                         buttons: {                             "Submit" : function () {                                 SubmitDataToDatabase();                                 $( this ).dialog( "close" );                             },                             Cancel: function () {                                 $( this ).dialog( "close" );                             }                         }                     });   < script src ="Scripts/jquery-ui.js" type ="text/javascript"></ script >    < link rel ="stylesheet" type ="text/css" href ="Styles/jquery-ui.css"/>