tmyonline Posted August 1, 2009 Share Posted August 1, 2009 Guys, I have a table of records. Each record is represented by a row. Each row has an "Update" link. I'm looking for a way that enables me to launch an update form (preferably as a pop-up window) when I click on the Update link. I heard it can be done in JavaScript but client browsers may have JavaScript or pops-up disabled. Can it be achieved in PHP instead ? Thanks. Link to comment https://forums.phpfreaks.com/topic/168412-how-to-launch-a-pop-up-window/ Share on other sites More sharing options...
gevans Posted August 1, 2009 Share Posted August 1, 2009 As php is server-side you cannot use it to launch a pop-up window. Link to comment https://forums.phpfreaks.com/topic/168412-how-to-launch-a-pop-up-window/#findComment-888362 Share on other sites More sharing options...
.josh Posted August 1, 2009 Share Posted August 1, 2009 alternative to js is to use target="_blank" in your anchor tag. This will only create a full sized window (or tab, depending on user's browser settings). If you are wanting to control size, you're still stuck with js. Link to comment https://forums.phpfreaks.com/topic/168412-how-to-launch-a-pop-up-window/#findComment-888402 Share on other sites More sharing options...
gevans Posted August 1, 2009 Share Posted August 1, 2009 Also you need to use the frameset doctype if you want to be valid whilst using the 'target' attribute. Link to comment https://forums.phpfreaks.com/topic/168412-how-to-launch-a-pop-up-window/#findComment-888404 Share on other sites More sharing options...
haku Posted August 2, 2009 Share Posted August 2, 2009 Use a CSS popup. They are powered by javascript, but will not be blocked by browsers. Link to comment https://forums.phpfreaks.com/topic/168412-how-to-launch-a-pop-up-window/#findComment-888815 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.