johnska7 Posted October 23, 2006 Share Posted October 23, 2006 Hey all,I have a nice little script that exports the contents of my database to an excel file. I have everything working (even the headers so that it pops open a window for opening or saving the file) but what I'm left with is a blank white screen behind the window...the page is accessed via a link, not a form, and everything is done between my function file and the top of the page that does an include on the function file. My question is, how can I make it so that the link that I click off of stay on the screen, or reload the screen, after clicking the link so that the people who are trying to get the excel file can still be in the regular area and not have to hit the back button. Link to comment https://forums.phpfreaks.com/topic/24869-exporting-to-excel-but-staying-on-the-page/ Share on other sites More sharing options...
Barand Posted October 23, 2006 Share Posted October 23, 2006 In a word, AJAXpage1 has a link or button, which when clicked, sends xmlhttp.request to your export scriptExport runs and creates Excel file and sends completion message back.page1 displays completion message. Link to comment https://forums.phpfreaks.com/topic/24869-exporting-to-excel-but-staying-on-the-page/#findComment-113391 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.