Thursday, 15 December 2011

screenshot of a whole web page

Have trouble in taking a screenshot of the whole content of  a web page when there is scrollbars , then you should check these addons.
ieSnapshotter - http://www.filedudes.com/ieSnapshotter-download-45699.html
screengrab - https://addons.mozilla.org/en-US/firefox/addon/screengrab/ - After installing , go to the site and right click and select screengrab then save as complete page.

database name as numeric mysql

Have you ever wondered why the numbers or number-text combination  with spaces is not allowed in naming a database in mysql, then you check the below links. The solution is to give them inside a backtick operator.

http://stackoverflow.com/questions/5986497/can-a-database-name-start-with-a-number
http://stackoverflow.com/questions/2121596/mysql-numeric-database-limitation

Wednesday, 14 December 2011

Monday, 12 December 2011

Friday, 11 November 2011

Passing parameters to PDF

Once I had a weird requirement from the client that the pdf should open with the zoom percentage of 100. When I googled , got this interesting links http://floatboxjs.com/content/parameters.pdf, http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf.

Examples:

http://example.org/doc.pdf#Chapter6
http://example.org/doc.pdf#page=3
http://example.org/doc.pdf#page=3&zoom=200,250,100
http://example.org/doc.pdf#zoom=50
http://example.org/doc.pdf#page=72&view=fitH,100
http://example.org/doc.pdf#pagemode=none

Friday, 28 October 2011

window opener property

The opener property returns a reference to the window that created the window.For example to get the id of the element present in the parent window, we should use like this

window.opener.document.getElementById('video')

Reference: http://www.w3schools.com/jsref/prop_win_opener.asp

Tuesday, 25 October 2011

PNG transparency problem in IE6

I think most of the web developers have headache using PNG image in IE6 when the client asks for IE6 support.
To overcome this issue please refer the beow link.
http://www.dillerdesign.com/experiment/DD_belatedPNG/

The idea here is let say you are placing a  image in a div or tag. We need to pass the id or class to the javascript function like this DD_belatedPNG.fixPng(yourElement).

Please refer http://support.microsoft.com/kb/294714 for microsoft's approach to the problem.

When applying this fix , you may encounter error in IE8 like this (Message: Invalid argument. Line: 13 Char: 461). To avoid this, add a meta tag forcing IE in to compatibility mode(http://wordpress.org/support/topic/js-error-messages-in-ie8).

meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"

Below are the other remedies for this problem
http://jquery.khurshid.com/ifixpng.php
http://jquery.andreaseberhard.de/pngFix/
http://plugins.jquery.com/project/iepngfix