JavaScript - Stupid Pop Up Blocker
pop up blocker is stopping my user action from using window.open. It is a html button that i want to open a dialog to tell the user his item was added to the shopping cart. The sumbit_cart() function is supposed to send a request via ajax then use window.open to open the dialog if the ajax function was successful.
Code: <input type="button" value="Add to Cart" onclick="return submit_cart();" /> I can understand the pop up blocker from blocking random pop ups but this is a user triggered event i don't see why it isn't allowing it. What can i do to make this work? Similar Tutorialshey guys im having a real problem with finding a script to lock my content for blogger, heres an example of the script Quote: http://www.blackhatcodebreaker.com/prison/index.html i have bought this script but does not work in blogger.com, can someone edit this script for me so it can work on bloger? you have to have the files hosted on your webhost.. Hey Guys, I'm trying to make a popup. Let me rephrase, not the type of popup that we all have cursed upon! But the same concept. I have a "control panel" type web application that i have developed. It is all completely dynamic. Each application has its own index.php file. My problem is, one of my applications i need has to open in a new window since its an external site. My problem is the way i have it setup dynamically in php i MUST have that inital index.php file. So what i have tried is to put in that index file just some javascript that opens a new window. Of course both IE and FF's popup blocker kick in. I need to find away around this. Does anyone have any ideas? So far i'd tried a window.open.... also tried creating a link with a target and id and then using click(); to deploy it. And i even tried creating a fake form with a target and an id and submiting it with javascript. Everything gets blocked. Thanks in advance, Jamie Anyone know why my switchh statement isn't working? Code: var rehash = inward.location.hash.match(/[^#]/); switch(rehash) { case 1: rehash = 5; break; case 2: rehash = 1; break; case 3: rehash = 2; break; case 4: rehash = 3; break; case 5: rehash = 4; break; case null: rehash = 5; default: rehash = null; }; Code: if (rehash == 1) { rehash = 5; } else if(rehash == 2) { rehash = 1; } else if(rehash == 3) { rehash = 2; } else if(rehash == 4) { rehash = 3; } else if(rehash == 5) { rehash = 4; } else if(rehash == null) { rehash = 5; } else{rehash = "Invalid URL or REFERRER"} the if string works fine -_- i must be missing something |