Hi,

I'm working at a gallery which got some download buttons to download
the images. 'Cause of a plugin I use it doesn't use the href of the
button anymore if I click it.

So i decided to try something else:

$(".zoomimage").children(".zoomimage_controls").children(".download-
button").each(function()
        {
                var zoomatt =$(this).parent("div").parent("div").attr("id");
                var imghref = $("#"+zoomatt+"_trigger").next("a.download-
button").attr("href");

                
$("#"+zoomatt).children(".zoomimage_controls").children(".download-
button").attr({href:imghref});
                
$("#"+zoomatt).children(".zoomimage_controls").children(".download-
button").click(function()
                {
                        open(this.href);
                });
        });

well if i click the download button now it opens a new tab for a sec
and close it again. then a popup to the download appears in the
document.

i would like to get this tab away even if it's just for a sec it
doesn't look nice.

i hope someone can help me.
thanks.

-weidc

Reply via email to