can anyone lend a hand?
i want to click an image and have jquery:
-hide that image
-then call a href to test.php
this does not seem to work
Code:$("img").click(function () { $("img").hide(1000,function(){ $.get("test.php"); }); });
can anyone lend a hand?
i want to click an image and have jquery:
-hide that image
-then call a href to test.php
this does not seem to work
Code:$("img").click(function () { $("img").hide(1000,function(){ $.get("test.php"); }); });
i found this link
http://curtishenson.com/quick-tip-de...g-with-jquery/
but i dont see a reference to href
maybe something like this?
but this still doesnt work
Code:$('img').click(function(e){ var toLoad = $(this).attr('test.php'); $("img").hide(1000); setTimeout(function(){window.location = toLoad}, 1000); e.preventDefault });
got it working like this, but why does that variable not work?
Code:$('img').click(function(e){ $("img").hide(1000); setTimeout(function(){window.location = 'test.php'}, 1000); e.preventDefault });
Bookmarks