abdfahim Posted September 6, 2007 Share Posted September 6, 2007 In my web page, I have some tables, some images. I want to have a button, so that I can print any table or any image (not whole page) of my page. Is this possible? Quote Link to comment https://forums.phpfreaks.com/topic/68205-how-to-print-certain-portion-from-a-page/ Share on other sites More sharing options...
wildteen88 Posted September 6, 2007 Share Posted September 6, 2007 Give your tables/images unique id's. Then you use javascript (rather than PHP) to show/hide a particular table/image using the id. Have a search in Javascript help forum for scripts for showing/hiding elements on a page. There has been many posts for such scripts. Quote Link to comment https://forums.phpfreaks.com/topic/68205-how-to-print-certain-portion-from-a-page/#findComment-343043 Share on other sites More sharing options...
cooldude832 Posted September 6, 2007 Share Posted September 6, 2007 that or simply create a drop down that has each section in it then it loads a page 2 that uses fopen on the first page to extract that given section and then uses javascript to say print. Quote Link to comment https://forums.phpfreaks.com/topic/68205-how-to-print-certain-portion-from-a-page/#findComment-343047 Share on other sites More sharing options...
abdfahim Posted September 9, 2007 Author Share Posted September 9, 2007 thanx v much. I'll try that. But is it possible to do it (print) without opening any new page. I mean, say I want define an area with respect to top and left and then print that area? Quote Link to comment https://forums.phpfreaks.com/topic/68205-how-to-print-certain-portion-from-a-page/#findComment-344584 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.