Error: Twitter did not respond. Please wait a few minutes and refresh this page.
It’s coded to run on an iPhone but viewable in the latest versions of Firefox, Safari and Chrome. You can also view on an iPad or iTouch. But not in IE.
Calling a function that parses the query string each time just isn’t efficient.
I decided to use a self-executing function I wrote that stores the values as properties of an object.
But what if you want to have a delay between effects on the current item?
In short – don’t use .each() for looping – and don’t use setTimeout for the delay.
We’re going to call items by index instead, optionally using a clever way to add a delay.
I was working on a large corporate site that had iframes all over the place.
They had internal content(same domain) that would show up inside these iframes.
Stopping an animation with jQuery is easy.
But what if we want to “pause” and restart the animation?
Well, not so easy – so I dug in and figured a way to make this work cross-browser.
There are cross-browser concerns.
I’ve tested many ways to achieve it and in this post there is code that should work cross-browser. Let’s dig in…
It not only encloses the code but also gives it a unique name for reference.
This avoids “code collision”, where two like named objects or functions can break your code.
Most developers usually throw in console.log or alerts during development. But if the consoles/alerts are not removed before code goes to production or a client, it can cause a big problem.
The following code example using console.warn provides this safely. If window.console or console.warn are not supported, no message is generated. But it does not cause the page to choke, like using a simple console.log.