gw1500se Posted February 17, 2023 Share Posted February 17, 2023 I have a Chrome extension but I occasionally get a result that needs a confirmation from the user. It appears that there is no way to produce a popup confirmation window. Is that true and if not, how do I do it? TIA. Quote Link to comment https://forums.phpfreaks.com/topic/315928-chrome-extension-confirmation-popup/ Share on other sites More sharing options...
requinix Posted February 17, 2023 Share Posted February 17, 2023 Do you know about confirm? Quote Link to comment https://forums.phpfreaks.com/topic/315928-chrome-extension-confirmation-popup/#findComment-1605808 Share on other sites More sharing options...
gw1500se Posted February 20, 2023 Author Share Posted February 20, 2023 (edited) Yes but when I try to use it I get an error that confirm is undefined. II just tried it again but this time there was no error. Odd. Thanks. Edited February 20, 2023 by gw1500se Quote Link to comment https://forums.phpfreaks.com/topic/315928-chrome-extension-confirmation-popup/#findComment-1605848 Share on other sites More sharing options...
gw1500se Posted February 20, 2023 Author Share Posted February 20, 2023 My bad. It is an execute error so it does not show up until it tries to execute. It says 'window' is undefined. Do I need a plugin or something? Quote Link to comment https://forums.phpfreaks.com/topic/315928-chrome-extension-confirmation-popup/#findComment-1605849 Share on other sites More sharing options...
requinix Posted February 21, 2023 Share Posted February 21, 2023 Yeah, I forgot: scripts run isolated and don't have things like the window available. Can't really find much searching around, but it looks like the answer is (or at one point, was) to do something with an iframe. As in you make a small page to act as your dialog, run it in an iframe, and somehow display that iframe.A starting point? Quote Link to comment https://forums.phpfreaks.com/topic/315928-chrome-extension-confirmation-popup/#findComment-1605852 Share on other sites More sharing options...
gw1500se Posted February 21, 2023 Author Share Posted February 21, 2023 Thanks. I sort of came to the same conclusion myself so I asked here hoping someone smarter than me could help. Quote Link to comment https://forums.phpfreaks.com/topic/315928-chrome-extension-confirmation-popup/#findComment-1605861 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.