imageI do a lot of technical reading and studying through PDF e-books. The problem is that, most of the time, the book doesn't contain an index (a.k.a. Bookmarks in Adobe Reader) with direct links to chapters so you can easily browse to your favorite destination. I usually had to do a search for, say, "Chapter 5" till I find it in the text! That's why I love CHM based ebooks over PDF, but that's another story.

 

But the real hassle is that whenever I close that specific book and re-open it later, I have to go through the same process again to pick up from where I've left. I sometimes try to remember the pdf page number I was last at, but in vain.

 

imageI said "why don't Adobe Reader remember that for me!? there must be a way, right?" Well, luckily there is. It's a hidden gem that is unfortunately disabled by default :(.

More...




I had a couple of div's that show their CSS styles according to an imported css file. However, during Javascript manipulation using jQuery, a lot of styles are attached in the 'style' attribute of the div and the latter overrides the CSS defined in imported file.

I wanted to clear all those styles defined as an attribute. The easiest way is to simply use the '*' as a means to choose all defined styles and set them all to an empty value of ''. Example:

 $('#myElem').attr('style', ''); //Select all '*' css styles defined as an attribute of #myElem's and set them to an empty value

 I was about to write a for-loop when I thought about this nifty solution.

 

NOTE: In case you're wondering what Javascript notation is that; I am using jQuery library. A similar method should be available in other Javascript Frameworks like prototype.




Flickr

Oroba Tunnel in Salah Salem Road [Cairo]  [NOT HDR]

Subscribe

RSS Feed
Add to Technorati Favorites
AddThis Feed Button


Subscribe by Email


Search

About Me

AA. I am Mohamed Salem Korayem. I work as an Embedded Software Engineer in a major international automotive supplier company here in Cairo, Egypt.

Currently I work in the Tooling Dept. where I, and the rest of the team, strive to make our fellow embedded software geeks happier. I work mainly with the .NET 2.0 using C#.

I also have a big appetite for web-development. I like analyzing the revolution of the web (aka Web 2.0) and how it affects people's lives in return. I develop web-apps with ASP.NET 2.0/Python in my free time. For client-side stuff, I use jQuery for all that Javascript magic.

What I muse, I share on this blog. So enjoy reading my mind and in case you like what you read, kindly subscribe by either email or RSS.

Email me!


Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Archive

Tags

Categories

Blogroll

OPML fileOPML

PersonalLinks



page counter Directory of Computers/Tech Blogs

Sign in