Looks like Notepad++ by default has EOL settings so that only LF is placed at the end of each line. Which is fine in Notepad++ but not when you have to open the file in plain old Notepad--the lines run together.
To change the EOL settings, go to Edit->EOL Conversion, and set it to "Windows Format" instead of "Unix Format".
Wednesday, February 2, 2011
Tuesday, February 1, 2011
Adjust frames per second for jQuery animations
Use jQuery.fx.interval.
Note from jQuery documentation:
"This property can be manipulated to adjust the number of frames per second at which animations will run. The default is 13 milliseconds. Making this a lower number could make the animations run smoother in faster browsers (such as Chrome) but there may be performance and CPU implications of doing so."
Note from jQuery documentation:
"This property can be manipulated to adjust the number of frames per second at which animations will run. The default is 13 milliseconds. Making this a lower number could make the animations run smoother in faster browsers (such as Chrome) but there may be performance and CPU implications of doing so."
Tuesday, January 11, 2011
Use AuthoringContainer with EditModePanel in SharePoint 2010
In SharePoint 2010, the EditModePanel control's PageDisplayMode attribute no longer works the way it used to in SharePoint 2007. Found out in this article that you'll need to pair it with the AuthoringContainer control to get the behavior that EditModePanel had in SharePoint 2007.
Thursday, January 6, 2011
Extra 2-3px below Flash object on Firefox
To get rid the extra space below the Flash object on Firefox, set the style for the object element to "display:block". (Tip from Dynamic Drive Forums.)
Tuesday, November 30, 2010
Setting content expiration on IIS 7
See also Mike Knowles post on SharePoint IIS Content Expiration settings.
On IIS Manager, click on the site under the "Sites" folder.
Expand to show the subfolders under the site.
Click to select the subfolder you want to modify.
Go to Features view on the main panel.
Open the "HTTP Response Headers" feature.
Under "Actions" on the right column, click on "Set Common Headers..."
You should see the content expiration settings in the popup ("Set Common HTTP Response Headers") that appears.
On IIS Manager, click on the site under the "Sites" folder.
Expand to show the subfolders under the site.
Click to select the subfolder you want to modify.
Go to Features view on the main panel.
Open the "HTTP Response Headers" feature.
Under "Actions" on the right column, click on "Set Common Headers..."
You should see the content expiration settings in the popup ("Set Common HTTP Response Headers") that appears.
Thursday, November 18, 2010
Error: "Could not load file or assembly ... or one of its dependencies. The system cannot find the file specified."
Created a class with common functions and included it in a SharePoint solution. Deployed successfully. But when browsing a page on the site it gets the "could not load file or assembly..." error. The class dll isn't getting in the GAC. Got the solution from this stackoverflow thread:
Add an Assembly element for the missing dll into the manifest.xml by double-clicking on Package.package on Visual Studio, going to the "Advanced" tab, and adding the assembly.
Add an Assembly element for the missing dll into the manifest.xml by double-clicking on Package.package on Visual Studio, going to the "Advanced" tab, and adding the assembly.
Wednesday, November 17, 2010
Site columns deployment error
Was getting this VS deployment error on a SharePoint 2010 solution:
"Error occurred in deployment step 'Activate Features': The field with Id {guid1} defined in feature {guid2} was found in the current site collection or in a subsite."
Found that workaround #1 from this article worked for me.
"Error occurred in deployment step 'Activate Features': The field with Id {guid1} defined in feature {guid2} was found in the current site collection or in a subsite."
Found that workaround #1 from this article worked for me.
Subscribe to:
Posts (Atom)