Set Server Side Timezone By Browser’s Tiemzone

Sometimes PHP wants to decide what is the timezone of client (browser).Here is a quick solution. Javascript send this offset data to server by whichever method you are using e.g GET,POST etc. PHP Method 1 Method 2 Continue reading Set Server Side Timezone By Browser’s Tiemzone

Attach event to ckeditor element in jquery way

Although Ckeditor provides it’s own api to add events to it’s dom elemnts,but one may add events to ckeditor elements in jquery way. I have used CKEDITOR 4.0 for my own purpose as I needed to implement it’s Inline Editing feature. Events can be attached to ckeditor contents with the help of contentDom() event provided by ckeditor and it fired when content of the editor … Continue reading Attach event to ckeditor element in jquery way

ie8-Object doesn’t support property or method ‘getElementsByClassName’

I needed to implement ckeditor in my module,and I came with a situation that I need to get elements of ckeditor by Class name in contentDom event of ckeditor.So I used following code, it works fine in firefox ,chrome,ie9,ie10,but not in ie8 As ie8 do not support getElementsByClassName() method, so I used querySelectorAll() mehtod.Please observe carefully in parameter of both methods,querySelectorAll() has parameter with ‘.’ … Continue reading ie8-Object doesn’t support property or method ‘getElementsByClassName’