Extract Json String try { jsonString = $.parseJSON(data); str = JSON.stringify(data); console.log(JSON.stringify(data)); for (var i = 0; i < JSON.stringify(data).length; i++) { var obj = JSON.stringify(data)[i]; console.log(obj.id); } } catch (e) { alert(e); }
Posts
Showing posts from 2015
- Get link
- X
- Other Apps
MVC Ajax Post $ . ajax ({ url : 'http://localhost/webservice/delete_pdf.php' , data : { delete_array : jsonString }, dataType : 'json' , type : 'POST' , success : function ( data ){ // Retrieve the success_delete array from json response. var toDelete_Array = data . success_delete ; // Remove the filenames from the displayed list. //iterate through the success_delete array $ . each ( toDelete_Array , function ( i , file_name ){ // The id of each wrapper_div member is equal to corresponding filename var x = $ ( '#' + file_name ). attr ( 'id' ); console . log ( 'id for div: ' + x ); <---- this returns 'undefined' // I have tried $('#'+file_name).remove(); and nothing happens. I am gues...
Create Page Layout in Sharepoint
- Get link
- X
- Other Apps
http://www.codeproject.com/Articles/820508/Step-by-Step-Creating-News-Page-Layout-using-Conte Before creating, the PageLayout, we need to create the required site columns and ContentTypes. To do that, let us follow the steps. 1. Open the Visual Studio for a New Empty SharePoint Project. 2. Add separate folders for ContentTypes, Site Columns and PageLayouts. The solution would be like this. 3. Now, add the sitecolumns in the SiteColumns folder. 4. In the same manner, create 2 more site column as Body and Tags. Hence, the 3 site columns will looks like, 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 <? xml version = "1.0" encoding = "utf-8" ?> < Elements xmlns = "http://schemas.microsoft.com/sharepoint/" > < Field ...