2009/12/12 morwo lukaszewsk...@gmail.com:
On Dec 6, 8:31 am, Rafał Pocztarski r.pocztar...@gmail.com wrote:
2009/12/3 shapper mdmo...@gmail.com:
Try using === instead of ==
This is PHP operator, isn't? And we're talking here about javascript.
Yes, I somehow managed to figure it out
. You only have to
make sure that your script returns JSONP, eg.
callback(JSON data);
where callback is a string specified in the URL and JSON data is
just, well, JSON data.
Rafał Pocztarski
are
optional.
Rafał Pocztarski
function call inside your handler then you can just pass it directly
without the anonymous function:
$(window).resize(function(){ reSize(); });
can be simplified to:
$(window).resize(reSize);
Rafał Pocztarski
are interested in got visible by comparing it's
position on the page to the bottom variable.
Rafał Pocztarski
2009/12/3 shapper mdmo...@gmail.com:
alert($.cookies.get(WCA.Player));
var cookie = $.cookies.get(WCA.Player);
if (cookie == null || cookie == 'Play') {
$(#JPlayer).play();
}
Try using === instead of ==
Rafał Pocztarski
and pages reloading then it gets more hairy, because you'd have to use
JSONP or manually inject script tags to load a script from the server,
and you'd have to make sure you access the cookies on the server and
not in the browser or otherwise you probably won't be accessing the
cookies you want.
Rafał
://linkvisitor.mozdev.org/
but you won't be able to mess with the browsing history in JavaScript
in any portable manner.
Rafał Pocztarski
around this but if you just want to include script
tags in your HTML without any fancy tricks to load scripts using
iframes or xhr evals or injections then move your script tags to the
bottom of your page.
Rafał Pocztarski
9 matches
Mail list logo