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. 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> 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.. 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. Link to comment https://forums.phpfreaks.com/topic/148381-proactive-pop-up-window/#findComment-779528 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.