Alicia Posted March 7, 2009 Share Posted March 7, 2009 Hi, Can gurus please give me an idea how can I create a proactive popup window ? I need something that I can activate a pop up screen on the visitors browser to ask whether they need any assistance just like normal live support tool offer.. please advise. Quote Link to comment https://forums.phpfreaks.com/topic/148381-proactive-pop-up-window/ Share on other sites More sharing options...
dropfaith Posted March 7, 2009 Share Posted March 7, 2009 pop up windows are more javascript based then anything this is a clickable link that opens a pop up window hopefully it helps <head> <script type="text/javascript"> <!-- function myPopup2() { window.open( "http://www.google.com/", "myWindow", "status = 1, height = 300, width = 300, resizable = 0" ) } //--> </script> </head> <body> <form> <input type="button" onClick="myPopup2()" value="POP2!"> </form> <p onClick="myPopup2()">CLICK ME TOO!</p> </body> Quote Link to comment https://forums.phpfreaks.com/topic/148381-proactive-pop-up-window/#findComment-779056 Share on other sites More sharing options...
Alicia Posted March 7, 2009 Author Share Posted March 7, 2009 Hi, Actually what i am looking for is when I click on a button from my end, the popup window will automatically display on the other end (visitor's browser).. just like a proactive invite chat alert or invitation.. I dont mean it pop up in my browser. Hope somebody can assist on this.. thanks.. Quote Link to comment https://forums.phpfreaks.com/topic/148381-proactive-pop-up-window/#findComment-779063 Share on other sites More sharing options...
haku Posted March 8, 2009 Share Posted March 8, 2009 You will have to create a loop that cycles ever X seconds on the client PC using javascript. Every time the loop executes, have it do a check in the background using AJAX to see if you have sent a new message. You will need a solid understanding of AJAX to do this. If you don't have one, then you should start with learning it and doing a bunch of tutorials until you have a good feel for it. Quote Link to comment https://forums.phpfreaks.com/topic/148381-proactive-pop-up-window/#findComment-779528 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.