Uncategorized

How to position a page within an iframe using CSS

Here is a useful technique to position a page within an iframe using CSS. This allows to show part of a web page within the iframe and positioned to a specific spot on the page within the iframe.

*Many sites block their content from iframes, this technique will not work on sites that block iframes. You will need to use a server side scraping method on those sites.

Here is an example of this css and iframe pseudo "scraping" method that shows the "Tutankhamun" box on the Wikipedia page:

This is the CSS and html code to accomplish the task:
<style>
#outerdiv {
width: 250px; position: relative;
}
#innerdiv {
position: absolute; left: -320px; top: -220px;clip:rect(220px 600px 660px 0px);
}
</style>
<div id="outerdiv">
<div id="innerdiv">      
<iframe width="600" height="660" src="http://en.wikipedia.org/wiki/Tutankhamun" scrolling="no" frameborder="0"></iframe>
</div>
</div>

Fix for Firefox received a message with incorrect Message Authentication Code

Recently when browsing with Firefox, I kept getting a popup message box: ...received a message with incorrect Message Authentication Code. This happened every time I visited GMail, or any other ssl site via htttps://. I searched everywhere for a solution to fix this annoyance, and finally found my solution in the MozillaZine forum at this link: http://tinyurl.com/5wnhs7

The fix to this problem is to enable a firewall on the user's PC.

This is the fix that worked for me. During my search for a fix I noticed that this is a widespread problem with Firefox.

It seems that this message occurs in Firefox when one disables the Windows firewall service. I had inadvertently disabled the service, and that was when the messages started occurring. After I enabled the Windows firewall service the "incorrect Message Authentication Code" messages stopped.

According to the people at the MozillaZine forums, any firewall will do, it is not necessary to use only the Windows firewall. But a software firewall needs to be enabled.

Some people on the forum feel that this points to spyware or viruses on the user's PC. I have scanned my PC and found no traces of spyware or viruses, so this may be a problem with Firefox.

Telemarketers giving free Gift Cards

This post is off topic, but I recently recieved a call from a what I thought was Telemarketer. The caller id on my telephone read "Research Center 231-224-2031".

They asked me if I would answer a few questions about "Household Services". In return for my time, they promised that I would receive a ten dollar gift card from Target.

"Yeah, right, another scam", I thought.

But the offer was enticing and I went ahead and answered about ten minutes worth of yes/no questions. At the end of the question and answer session, they took my name and address and promised to send me the gift card. I didn't really believe them, but I took my chances and gave them the information.

About two weeks later my gift card arrived in the mail! I went to Target and splurged on some clearance items, parlaying my ten dollar bonanza into a sizable value based on original retail. All is well.

Moral of the story - be very careful, but sometimes telemarketers can be trusted!