Peng Zhang on January 25th, 2013

I have always stayed away from PNG for a long time, up until recently when I feel that I don’t need to support IE6 and have to use it to implement a web design that uses quite some shadows and gradients. I had always thought that PNG with transparency would cause lots of trouble with [...]

Continue reading about PNG, transparency, opacity and IE

Peng Zhang on January 13th, 2013

While window.back() works just fine, it does not work in Internet Explorer 9 that I have, because the method is not there in the window object. To go back in history in both Firefox and IE, the code is history.back().

Continue reading about Windows.back() causes method not found

Peng Zhang on August 29th, 2012

Problem Working on a project, I encountered a weird problem where the background-color of a div does not take effect. Cause The parent or ancestor element has been moved beyond its normal position involving a negative pixel amount – in my case, a negative pixel amount to move the div content up to the top; [...]

Continue reading about CSS background-color does not show

Peng Zhang on June 26th, 2012

The server control Sharepoint:FieldDescription does not render the description on a DispForm.aspx page when the ControlMode is set to “display”, despite the fact that the design view in Sharepoint Designer does show the description of the field. But when the controlMode is set to “Edit” or “New”, the field description content does get rendered on [...]

Continue reading about Sharepoint:FieldDescription does not show

Peng Zhang on February 15th, 2012

I encountered a Sharepoint security oddity with a document library. Basically, a user who does not have permission to access a folder within a document library can actually view the folder when he/she uses a particular link format. Note that it is using windows.open to open a window on a folder. See the different link [...]

Continue reading about Security Problems with Certain Link Format to Document Library

The default dictionary used for spelling checking when editing a wiki page is “English – US”. And it turns out that there is no built-in configuration or setting that would allow you to easily change that. One workaround, after some googling, is to use javascript to change the language code on the EditForm.aspx page with [...]

Continue reading about Change Default Language for Spelling Checking for a Wiki on Sharepoint 2007