johnyp Posted July 10, 2012 Share Posted July 10, 2012 Hello to all experts here. I am very new to php and i need some help. I made a script that lists cars. In a popup window i set some options for the sql query that i then submit to the opener window to do the listing. What i want is when submiting the options not to close but hide the opened popup window so i can show it any time later to change something in the search options. Is this possible? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/265456-hide-a-popup-window/ Share on other sites More sharing options...
PeoMachine Posted July 10, 2012 Share Posted July 10, 2012 You can use a div, manipulating this with Jquery. Quote Link to comment https://forums.phpfreaks.com/topic/265456-hide-a-popup-window/#findComment-1360444 Share on other sites More sharing options...
johnyp Posted July 10, 2012 Author Share Posted July 10, 2012 Yes i know that but i need a popup window not a div. Any other way? Quote Link to comment https://forums.phpfreaks.com/topic/265456-hide-a-popup-window/#findComment-1360445 Share on other sites More sharing options...
scootstah Posted July 10, 2012 Share Posted July 10, 2012 Not all browsers allow this type of window manipulation, so you'll need to think of something else. Popup windows are a little oldschool anyway - most people use Modals now. Quote Link to comment https://forums.phpfreaks.com/topic/265456-hide-a-popup-window/#findComment-1360453 Share on other sites More sharing options...
johnyp Posted July 10, 2012 Author Share Posted July 10, 2012 Maybe i use div's in homepage. Can you tell me how to load an external page to a div? With php i would go with include(page); but how to do it with javascript. I need to have 15 divs and showing only the one when click to the href of the category. That is cause every category has different search criteria. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/265456-hide-a-popup-window/#findComment-1360474 Share on other sites More sharing options...
Adam Posted July 10, 2012 Share Posted July 10, 2012 I think you would benefit from using an existing package for this, like Fancybox or Tiny Box 2. Both have plenty of examples in their documentation. Quote Link to comment https://forums.phpfreaks.com/topic/265456-hide-a-popup-window/#findComment-1360479 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.