Jump to content

Archived

This topic is now archived and is closed to further replies.

johnska7

Exporting to Excel but staying on the page

Recommended Posts

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.

Share this post


Link to post
Share on other sites
In a word, AJAX

page1 has a link or button, which when clicked, sends xmlhttp.request to your export script

Export runs and creates Excel file and sends completion message back.

page1 displays completion message.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.