views:

46

answers:

3

I have used popup at many places in my website (its in PHP with Mysql DB and lots of javascript). These are mostly been blocked my browsers, which restricts user to move ahead. what should do in my code so that my popups becomes Popyp blocker independent..

A: 

Not a direct answer but may be Floating div is a good replacement. Build a js dialog box.

pinichi
+3  A: 

Use Jquery Dialogs http://jqueryui.com/demos/dialog/ they are purely javascript and so popup blockers will not block this

jknair
+1 I like this... But can i use this for form submitting purpose? like wise if this dialog box contains any form which could be processed further?
OM The Eternity
yes you can. even add ajax methods for login forms and many other features
jknair
+1  A: 

Make sure your popups's URL is on the same domain as the main site. Using a link with 'target="_blank"' will never get blocked unless it was manually blocked as the user did the action himself. Switch to alerts and prompts instead of popups.

Moncader
What if browsers are by default enabled by pop blocker?, common non techy users are not aware of whats happening behind, how to prompt him in this case?
OM The Eternity
If its a link (<a href....>), then it will work unless the user himself, not the popupblock has blocked your site. This is not the default. If the popupblocker is set to block all popups by default, there is nothing you can do except move to a different system (Like the javascript 'floating divs' in other answers).
Moncader
Thanks Moncader
OM The Eternity