Archive for the 'javascript' Category
Awful days
Some days you feel it would had been better to not quit the bed.
And some days you just can’t quit your bed.
Yesterday I passed all the day with a strong pain in the back, and I couldn’t even go to work. I passed the morning just checking that all the doctors near me where full, […]
Functions!
I implemented functions, at last!
So now I can execute:
var a = function fact(i) {
if (i == 1)
return 1;
else
return fact(i - 1);
}
if (a(3) == 6)
“pass”;
else
[…]
Little incompatibilities between browsers
On the series of incompatibilites between browsers, I have two new items to show.
First, don’t use location.hash = “#foo” to jump to “foo” link, because Safari will jump to %23foo. Safari’s behaviour seems very logic, but I don’t really know who is right, Safari or the IE / Firefox crowd.
Second, don’t use
<a h ref=”javascript:void(foo())” >foo</a>
You […]
It can’t be so hard…
Do you remember my last post about my javascript compressor?
Óscar Frías, from Trabber fame asked me for my opinion on the dojo javascript compressor, and my reply was along the lines of: “slightly better than mine, as it compress inner variables / functions names”. As this seemed a trivial to overcome difference, I coded this […]
“Link to this page” no longer needed
I finally killed an old “bug” in Panoramio, shared with any other Google Maps page I have seen.
It was difficult to extract a link to the thing you were seeing.
Google Maps has a “Link to this page” link. The URL of this link is dynamically updated to reflect the current status of Google Maps, so […]
Javascript compressor
Let’s see if you are a real hacker.
Your problem: a web page somewhat slow, with lots of javascript code.
You can:
ignore the problem
activate mod_deflate in the server for javascript code (be careful with old browsers!)
use a javascript compressor to remove any extra spaces, new lines, comments, etc.
take an existing javascript parser, and make it rewrite your […]
onload event
You can use the onload event on images to know when the browser has finished the download of an image.
I have used it for the upcoming version of Panoramio, where I only show the images after they have been fully loaded.
There is however a subtle difference between Internet Explorer and Firefox related to this event.
If […]
Loading Google Map’s page with many markers slow in Explorer
As anybody that has visited Panoramio will say to you,
it may take an awful long time to load markers on a Google Maps page.
I didn’t know what was going on. I mean, Firefox was much much faster on this page than Internet Explorer, on the same connection, same computer. Why?
A very long thread over this […]
Why Panoramio is not XHTML/CSS valid?
In my previous post Fade in and out I said that I didn’t care about Panoramio not being xhtml/css valid.
If that sounds weird, it’s just because people have forgotten the real goal of validating a site. Validation is a mean, not an end.
The goal is to have a site as cross browser as possible, so […]
Differences between Mozilla and Internet Explorer
Some time ago I read an article pointing out how to migrate apps from Internet Explorer to Mozilla. The articule is well written and worth a read, but it falls short on explaining all the real problems you can find when making a webapplication that works on both browsers (let alone something that works on […]
-
You are currently browsing the archives for the javascript category.
Archives
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
Categories
- css (2)
- html (8)
- Interaction Design (6)
- javascript (11)
- miscellaneous (25)
- new features / improvements (62)
- panoramio (46)
- personal (2)
- places (25)
- Uncategorized (5)