How to do html 5 canvas in sharepoint 2010?
I created a new site, and uploaded my pages from my local hard drive to the site pages folder. The html files on my hard-drive could display the canvas elements, but when opening them on SharePoint 2010, the canvas elements didn't show
up and other things looked a bit different. Is it that SharePoint is thinking the page is still IE8? (I am using IE9 now)
Anyone know how I can fix this?
After changing into the v4.master, canvas tag not worked for me. So, without modifying the v4.master, I have only modified the page, which consist the canvas tag.
I have changed the doctype to <!DOCTYPE html> and added <meta http-equiv=”X-UA-Compatible” content=”IE=9”> into the head tag, which forced the page to load into the IE9 mode. Now it's working for me.
Below is my Testing Code:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=9">
</head>
<body>
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #c3c3c3;">Please use IE9 or above version to see the Content.</canvas>
<script>
var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.fillStyle="#FF0000";
ctx.fillRect(0,0,150,75);
</script>
</body>
</html>
Thanks and Regards,
Sumanta
Similar Messages
-
How to do a load testing in Sharepoint 2010 site
Hi,
I have never done a performance or load testing on SharePoint 2010 site.
I have a site which has only one custom code written for consolidating documents. I want to check the performance of the site.
How do I go about this ? I want to know how many users can login at a time and view the site without any delay and
check how many people can consolidate documents at a time .
Thanks in Advance.
PallaviThere's several ways to do it, the most common is to use the SharePoint load testing kit detailed in the second link below. For a more general guide try the first:
http://technet.microsoft.com/en-us/library/ff758659.aspx#createtests
http://technet.microsoft.com/en-us/library/ff823736(v=office.14).aspx -
How to create a recurring event in SharePoint 2010
Hi there,
I want to know how to create a recurring event that is 2 weeks long and start Monday. I want this event to recur every 4 weeks. I'm trying to create a schedule for two guys who work in the field.
One guy works for 2 weeks in every 4 weeks starting on Monday.
Thanks a million.
Joehttp://office.microsoft.com/en-in/sharepoint-server-help/sharepoint-calendars-i-make-the-most-of-your-team-calendar-RZ010255072.aspx?section=5
You'll add items one at a time by clicking New Item on the
New menu. Then you'll enter the item's details in a form. One other thing we should mention: It's easy to create recurring items, such as a weekly staff meeting. You do this by selecting the
Make this a repeating event check box and then setting the item's recurrence pattern (for example, for a weekly lunch meeting you would set the pattern to weekly).
http://social.technet.microsoft.com/Forums/sharepoint/en-US/e3b81c14-3217-4450-89ea-627620c126c2/recurring-events-in-calendar-view-of-sharepoint-2010-lists
The Recurrence Data field is unique to the Event Content Type. I don't see any way to add it to an existing list. You would need to recreate your list using Calendar list as the base if you were to use this approach.
http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/04/11/how-to-make-the-sharepoint-calendar-events-recurring-by-default.aspx -
How to Save site as template in SharePoint 2010
hello,
I am little bit confused about how I can save a site as a template in moss 2010!
In SharePoint 2007 it was simple > site actions > save site as template... and done!
but I do not find how to make that in the new SharePoint, I would be really happy if someone could tell me how to do that.
I found some tutorial:
To create a Site Template, browse to the Site you want to create from. Go to Site Actions –> Site Settings –> Save site as template (under the Site Actions heading). Give your template a name, and don't forget to check the "Include Content" box if you want to include library and list content in the template. This will create a new site template in your Solutions Gallery, which you can then use when creating new sites. You can also download directly from the Solutions Gallery to a .WSP file.
but the thing is, I do not have the "save site as template" link! I also checked if I need some special site feature activated, but I have all activated.
thank you in advanceI imagine you are trying to save a publishing site as a template, correct? If so, the save as site template link is not available for publishing sites. This was not supported in MOSS and I imagine isn't in SharePoint 2010. The reason was due to publishing sites having pages and layouts tied to content types that do not move with the template.
If you would like a work around, you can disable the publishing feature (which will then make the save as site template link visible), save the site as a template, then re-enable the publishing feature. You would have to re-enable the publishing feature on each new site built from this template, if desired.
Go to Site Actions > Site Settings > Manage site features under Site Actions. Deactive the SharePoint Server Publishing feature, then go back to the Site Settings page. You should now see the save as site template link. After you save the template, turn back on SharePoint Server Publishing.
Adam Preston - MCTS | Blog: http://sptwentyten.wordpress.com | Twitter:@_apreston -
How to "Capture Multiple Levels" of a SharePoint 2010 site
Hello! I have an end user I'm trying to support who is trying to update her SharePoint site so she can print the .pdf format. Whenever she tries to "Get Entire Site she gets an authorization failure and it says Error: Nothing Done. We have migrated the site content over from the old intranet page into a SharePoint 2010 site. However, user informed me that she needs to have the ability to print the entire site content and she had been doing this using Adobe Acrobat X Pro. How do I correct the authorization failure message? I'm a SharePoint administrator so please let me know what I need to do on the back end to get this to work. Thanks!
I have seen the same error a number of times. I found that certain domains would not work and give me the error msg. and not allow me to capture a website into PDF format.
http://www.wisconsindot.gov/projects/index.htm generates the 'Authorization Failure' error msg. and will not create a PDF file.
http://www.dot.wi.gov/projects/index.htm and http://www.dot.state.wi.us/projects/index.htm both work fine and create a PDF file as intended.
Do you have an alternative domain you can use for the URL? If so, try that and let me know if it works.
Gregory A. Simonis | DTSD Publications Editor/DTSD Extranet Web Administrator | WisDOT SW Region - Madison, WI -
How to Get current username in custom SharePoint 2010 master page
Hi,
How can I get current logged-in username in SharePoint 2010 custom master page?
Regards,
AmitYou can use the SPContext.Web.CurrentUser object to get at the information you're looking for. This can be accessed either via client-side JavaScript or server-side ASP.NET code.
Getting the logged in user's login and name via JavaScript:
<script>
ExecuteOrDelayUntilScriptLoaded(function(){
var clientContext = SP.ClientContext.get_current();
var CurrentUser = clientContext.get_web().get_currentUser();
clientContext.load(CurrentUser);
clientContext.executeQueryAsync(Function.createDelegate(this,function(){
// User's Name
alert(CurrentUser.get_title());
// User's Login
alert(CurrentUser.get_loginName());
}),Function.createDelegate(this,function(sender,args){alert(args.get_message())}));
},"SP.JS");
</script>
And of course, it's even easier via server-side C#:
<script runat="server">
String username = SPContext.Current.Web.CurrentUser.Name;
String userlogin = SPContext.Current.Web.CurrentUser.LoginName;
</script>
I hope that helps! -
How to import Solarwinds Dashboards into a SharePoint 2010 site?
Hello ,
I am planning to import solarwinds dashboard in a SharePoint 2010 site, so could anyone please tell me how to achieve this.
Thanks and Regards,
Srikanth G.Hi Srikanth,
Main purpose of the dashboard is to display the real time data and the dashboard should be updated very often. This can be achieved by using RSS feed.
RSS feed gives data in XML format. By Using the below piece of code, you can iterate the XML and fetch the data. Once you receive the data , keep it in datatable and display it in the dashboard webpart as you like.
XmlReaderSettings settings = new XmlReaderSettings();
settings.IgnoreComments = true;
settings.IgnoreWhitespace = true;
settings.CheckCharacters = true;
settings.CloseInput = true;
settings.IgnoreProcessingInstructions = true;
var client = new WebClient();
string URL = <SolarWindsRSSURL>;
try
var feedAsString = client.DownloadString(URL).Replace((char)(0x1F), Convert.ToChar(" "));
XmlReader reader = XmlReader.Create(new MemoryStream(Encoding.Default.GetBytes(feedAsString)), settings);
//XmlReader reader = XmlReader.Create(URL);
SyndicationFeed Feed = SyndicationFeed.Load(reader);
reader.Close();
foreach (SyndicationItem item in Feed.Items)
//Solar Winds RSS data
Thanks, Sures | MCTS SharePoint -
How to copy Excel sheet data to SharePoint 2010 List?
Hi,
I need to export excel data to SharePoint 2010 list. I have created 22 columns in list which are of following Column types:
Single line of text,
Multiple line of text,
Choice
Number,
Date,
Person or Group.
Now i need to export the excel data to SharePoint list.
When iam trying to copy data from excel to List , it is showing as "The selected cells are read only".
can someone guide on this to export spread sheet data to SharePoint list without importing Spreadsheet.
Thanks in advance.
BadriI've updated the example of using PowerShell to include a Person field (user field) and a choice field.
The CSV file has the following columns:
TRIP_NO
VESSEL_NAME
FLAG
AGENT_NAME
CURRENT_LOCATION
RPT_DATE
EMPLOYEE
EMPLOYEE_TYPE
#Get the CSV file and connect to the SharePoint list
$vessellist = import-csv -Path C:\Temp\VesselInPortReport.csv
$l = (Get-Spweb "http://devmy101").GetList("http://devmy101/Lists/smarInPort")
#Get the lists EmployeeType field (choice)
$employeeType = $l.Fields["EmployeeType"] -as [Microsoft.SharePoint.SPFieldChoice]
#Loop through the items and add them to the list
$r = 1;
foreach($item in $vessellist)
$ni = $l.items.Add();
#Add the Title, using the rows VESSEL_NAME column
$ni["Title"] = $item.VESSEL_NAME;
#Add the "Date Recorded" field, using the csv rows "RPT_DATE" column
[DateTime]$rd = New-Object System.DateTime;
if([DateTime]::TryParse($item.RPT_DATE, [ref]$rd)){
$ni["Date Recorded"] = $rd;
#Add the csv rows "TRIP_NO" column to the new list items "Trip Id" field (SPFieldNumber)
[Int64]$tn = New-Object System.Int64;
if([Int64]::TryParse($item.TRIP_NO, [ref] $tn)){
$ni["Trip Id"] = $tn;
#Add some other text properties
$ni["Flag"] = $item.FLAG;
$ni["Agent Name"] = $item.AGENT_NAME;
$ni["Current Location"] = $item.CURRENT_LOCATION;
#Add user information
$ni["employee"] = $w.EnsureUser($item.EMPLOYEE); #In this case, the $item.EMPLOYEE value from the spreadsheet is a persons name. Eg. "Matthew Yarlett"
$employeeType.ParseAndSetValue($ni,$item.EMPLOYEE_TYPE); #In this case, the $item.EMPLOYEE_TYPE value from the spreadsheet is valid choice present in the EmployeeType list field. Eg. "Manager"
#Update the item
$ni.Update()
Write-Host ([String]::Format("Added record:{0}",$r));
$r++;
Regards, Matthew
MCPD | MCITP
My Blog
Please remember to click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if it was useful.
I just added a webpart to the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
Upload and Crop User Profile Photos -
How to change the date format of Sharepoint 2010 to dd MMM yyyy
Hi,
I am looking to change the datetime format with in the modified column from mm/dd/yy to dd MMM yyyy. I dont want to create calculated field with dd MMM yyyy format. I want the actual modified column value to be represented as dd MMM yyyy format.
Thanks for your help in advance.
regards
KalyanPlease ask your question in the SharePoint 2010 forum and not in this pre-SharePoint 2010 forum.
SharePoint 2010 - General Questions and Answers
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010general/threads
SharePoint 2010 - Setup, Upgrade,Administration and Operation
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/threads
SharePoint 2010 - Using SharePoint Designer, Infopath, and other customization
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/threads
SharePoint 2010 - Using Visual Studio with SharePoint and other programming
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/threads
Dirk Van den Berghe -
How to Deploy OOB Webparts created in Sharepoint 2010 designer to production system
Hi,
Can anyone help me the process of deploying the OOB Webparts developed in Sharepoint 2010 designer to Production Server.
Actually i developed some OOB Webparts and Workflow using Sharepoint 2010 designer.
So, i want to move these OOB Webparts and Workflow to my Production System.
Please assist me what is the process?
RamaHi,
Thanks for posting your query,
There are a lot of mechanisms for doing this, but doing a simple export from your dev environment and then an import into your prod environment is probably a good place to start. You can move the whole site or just a list/library. You can do it via PowerShell
or Central Admin:
Export:
http://technet.microsoft.com/en-us/library/ee428301.aspx
Import:
http://technet.microsoft.com/en-us/library/ee428322.aspx
I hope this is helpful to you. Please mark it as
Answered. If this works
Regards,
Dharmendra Singh (MCPD-EA | MCTS )
Blog : http://sharepoint-community.net/profile/DharmendraSingh -
How to add custom file icons on SharePoint 2010 document library?
Hi there,
In a document library SharePoint shows the PDF and Word etc icons all fine - however we have a custom file format with a custom icon. Is this possible to add this custom icon for our custom extension? How?
Thank you so much.Hi,
You could accomplish your requirement by using jQuery with these steps, and this code is using jQuery to modify it on the current page, if you would like to make it work on all library, you need to choose the former method or add this JQuery script on all
library pages manually:
Upload a custom icon to file “14\ Template\Images” or your SharePoint document library.
Add this code below in the document library that you want to extend your custom icon, you could add code by following these: Click edit page in the document library -> add a web part -> choose Content Editor -> click edit source in the Ribbon ->
add the source below -> click OK.
<script src="https://code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script><script type="text/javascript">
$(document).ready(function(){
var fileObject = $("[title$='docx']");
for(var i=0; i < fileObject.length; i++){
//fileObject[i].outerHTML="<img width=\"16\" height=\"16\" title=\"test.docx\" alt=\"test.docx\" src=\"/_layouts/15/images/custom.png\" border=\"0\">"; // upload your custom icon to file ” 14\ Template\Images”, replace your src URL
fileObject[i].outerHTML="<img width=\"16\" height=\"16\" title=\"test.docx\" alt=\"test.docx\" src=\"/sites/sharepoint2013/Shared%20Documents/custom.png\" border=\"0\">"; // upload your custom icon to SharePoint document library, replace your src URL
</script>
The screenshot below is my result:
Best Regards
Vincent Han
TechNet Community Support -
How to update selected list items in SharePoint 2010?
Hello All
I have a list containing field named "Category". I want to develope a solution which will take two inputs: Old Category and New Category. The expected result is: all the list items will be fetched which have Old Category input value in
their category field and the field is replaced with the input value New Category.
I have a limitation that I can not use Visual Studio. So I am thinking to create aspx page with content editor webpart. But I am new to all these things. Could you please suggest the development approach for this?
Thanks.Hello,
I don't think CEWP can help you because you won't be able to find old and new category when there is any change in list. However you can identify the latest modified item from list but how will you identify whether category is old or new. If you have any
other column in list which can tell you that category value has been updated then you can write ECMA or Jquery script to update other items.
If have any column in list then see below jquery code, where you will see how to query the list: (In my case it is Active)
var soapEnv = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'><soapenv:Body><GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>";
soapEnv += "<listName>Highlights</listName>";
soapEnv += "<query><Query><Where><Eq><FieldRef Name='Active' /><Value Type='Text'>Yes</Value></Eq></Where><OrderBy Override='TRUE'><FieldRef Name='Modified' Ascending='FALSE' /></OrderBy></Query></query>";
soapEnv += "<viewFields><ViewFields><FieldRef Name='Title'/><FieldRef Name='ows_FileLeafRef'/><FieldRef Name='Links'/></ViewFields></viewFields><rowLimit></rowLimit>";
soapEnv += "</GetListItems></soapenv:Body></soapenv:Envelope>";
Please comment if i misunderstood you?
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to Create Custom Timer Job for SharePoint 2010 using Visual Studio 2010?
While creating timer job Visual Studio showing some kind of error and assembly issues.
Hi Aryav
Please provide the errors so that we can resolve your issue.
Meanwhile go through the step by step process of creation of Timer Job in the articles given below.
Create and Deploy Custom Timer Job Definition in SharePoint Programatically
Indul Hassan
Microsoft Community Contributor
http://www.indulhassan.com
You Snooze.. You Lose !! -
How to manage big custom list in SharePoint 2010
Hi All experts,
I am working on Time Attendance Management System, where I have to generate a weekly schedule at once for each employee every year.
Custom List columns are
Employee Number
Employee Name
From Date(Mon)
To Date(Sun)
Total numbers of employees are: 2800
Eg: In January 2015(5 weeks): 5 * 2800 = 14000 items
Likewise total, if I generate one year schedule which contains 53 weeks (53* 2800 = 148400 items/year)
How to overcome with the below problems
List threshold limit which is 5000
Efficiency of list
How can I manage such a big list? Can someone please suggest me here?
MercuryManHi MercuryMan,
Possible ideas regarding you problems are:-
1. Increase size list and take timely back up delete list item from source list ( but problem of maintenance every now and then, not completely feasible.)
2. Better to store all the entries in the database (ex: SQL) and so in this way you won't have to worry about growing list item numbers. But for this, you need database access to save and retrieve.
Thanks,
Vivek
Please vote or mark your question answered, if my reply helps you -
How to create a roster sheet in sharepoint 2010
Hi
This is about training management, when an employee requests for training, it goes to approval workflow and once approved, it is like the employee is enrolled.
Once it is approved I want a roster sheet to be created for that course for all the employees registered and who got approved. It would be great if someone could provide me an insight
The format should be as belowHi,
According to your description, my understanding is that you want to create a roster sheet for each session in each course.
I recommend to create several lists which will contain different items based on the value of session and course.
In the workflow, add steps after the approval process step to copy list item to different lists based on the conditions of the session and course.
Or you can copy all the list items which have been approved to the same list, then group the items with the session and course columns.
Best regards.
Thanks
Victoria Xia
TechNet Community Support
Maybe you are looking for
-
I noticed after my two updates, that my iPod gets weird after every single one. For example, it was perfectly fine when I bought it and then, I updated iTunes. Then, my iPod starts acting like a TV screen and has lines show up every so often to make
-
Adobe Photoshop OpenGL Rectangular Marquee Bug
Per this thread on the Adobe support forums, there is currently a bug with the Rectangular Marquee tool in Photoshop CS4 and CS5. The "marching ants" selection outline is not positioned correctly, making it difficult to tell if you have selected the
-
Aliasing in Final Cut Pro 4.5 and on 20inch wide screen Dell monitors
Hello everyone. I have a question that has been stumping me for a few weeks and then realized that I should ask the best forum in the world. First off, all the standard def. videos that I work with in FCP 4.5 appear to be aliasing and this also has b
-
I have an iPhone 3G. I need to know how to retrieve accidentally deleted text messages. Is that possible? Please say yes! Thanks
-
Can I use a mirror external drive to update to 4.2?
I'm out of town away from my Mac Pro and want to upgrade my iPad to 4.2. I have an external portable drive with me that is a mirror copy of my main Mac Pro drive that has all my iPad files and backup so when I boot off it (using the option key), what