gsaldutti Posted October 19, 2012 Share Posted October 19, 2012 Just curious if anyone has an opinion on the following. I am building a site where alert messages will be necessary rather often (such as, "You must check at least 2 boxes", etc). I can't decide whether to have these alerts as standard javascript POPUP alerts (where the user has to click OK in order to continue), or just have the message appear on the actual page in red font or something. Anyone have an opinion either way? Quote Link to comment https://forums.phpfreaks.com/topic/269674-opinion-pop-up-alerts-vs-on-page-display/ Share on other sites More sharing options...
Pikachu2000 Posted October 19, 2012 Share Posted October 19, 2012 Irrespective of the fact that JS alerts are more annoying than being forced to sit through an episode of Jersey Shore, what happens when a user has JS disabled? Quote Link to comment https://forums.phpfreaks.com/topic/269674-opinion-pop-up-alerts-vs-on-page-display/#findComment-1386330 Share on other sites More sharing options...
galvin Posted October 19, 2012 Share Posted October 19, 2012 That settles it Quote Link to comment https://forums.phpfreaks.com/topic/269674-opinion-pop-up-alerts-vs-on-page-display/#findComment-1386344 Share on other sites More sharing options...
cutielou22 Posted October 29, 2012 Share Posted October 29, 2012 I must agree pop up alerts are annoying. I don't think much people will favor them over a page display. Pop up alerts are like pop up ads in a way and nobody likes ads. When they see the pop up alert they probably think ads and will want to go in another direction . . . And like Pikachu2000 said what happens when a user has JS disabled? You will have to have the page display anyways. Quote Link to comment https://forums.phpfreaks.com/topic/269674-opinion-pop-up-alerts-vs-on-page-display/#findComment-1388340 Share on other sites More sharing options...
txmedic03 Posted November 20, 2012 Share Posted November 20, 2012 I am lacking in sleep at the moment, so forgive me if I missed something obvious here, but my semi-lucid mind has convinced me that you are considering processing some sort of user input like from a form with options a user would select from. That form would then be submitted to a form processor which I assume would be written in php since that is the primary focus of this site. You could simply show the alert above the form with the error inside <noscript></noscript> tags generated via php or some sort of fancy dhtml alert in the event that javascript is a viable option. Personally, I would just put a <div></div> with my "hey you screwed this up." message because pop-ups and extra clicking are annoying, but if you want to get fancy with it you could have your cake and eat it too. You could also do an ajax Form with ajax submission and a <noscript></noscript> with an old school generic form as a fallback if you want to process the form without showing the user a page reload. This would all be rather convoluted, but some people really dig the fancy bells and whistles and like using an elephant gun for squirrel hunting. Quote Link to comment https://forums.phpfreaks.com/topic/269674-opinion-pop-up-alerts-vs-on-page-display/#findComment-1393745 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.