Παρουσίαση με Ετικέτες

Gotcha: JS replace on document.location fails, use document location.href
20 Αυγούστου 14 03:17 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
This is my contribution to: http://stackoverflow.com/questions/2652816/what-is-the-difference-between-document-location-href-and-document-location Here is an example of the practical significance of the difference and how it can bite you if you don’t realize it (document.location being an object and document.location.href being a string): We use MonoX Social CMS (http://mono-software.com) free version at http://social.ClipFlair.net and we wanted to add the language bar […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
Gotcha: must set document.location.hash only at end of page in Mozilla
07 Σεπτεμβρίου 13 11:35 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I just came across a different behaviour between IE and Mozilla Firefox: scripts at the former seem to execute after the page has fully rendered, while the later they seem to execute when they’re met by the page parser or something like that. The HTML script tag has a defer attribute for running scripts after […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , , , , ,
Gotcha: var x = x() in Javascript gives “Object Expected” error
14 Ιουνίου 13 12:27 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At ClipFlair Studio (a Silverlight app), I had some time ago implemented a confirmation warning upon user trying to close the webpage (when it was running inside the web browser), which then had stopped functioning. It seems at some refactoring I had added code like the following: var activityView = activityView(); and it was failing […]

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές