This post is to remind myself of mistakes I did or encountered with javascript.

Do not use window.location.origin

It is undefined in Firefox currently (ver. 14.0.1). Instead, use window.location.protocol + '//' + window.location.host

from http://stackoverflow.com/questions/5375788/jquery-load-responds-with-error-under-firefox-works-fine-under-chrome

to be continued...


Andrew Chaa

another day, another PR