Login   Register  
PHP Classes
elePHPant
Icontem

Show and Ajax

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      OpenTBS  >  All threads  >  Show and Ajax  >  (Un) Subscribe thread alerts  
Subject:Show and Ajax
Summary:I want to ouput a file to save, but get the binary, using Ajax
Messages:2
Author:william drescher
Date:2009-12-11 12:49:02
Update:2009-12-12 10:19:36
 

  1. Show and Ajax   Reply   Report abuse  
Picture of william drescher
william drescher
2009-12-11 12:49:02
Absolutely great package !
The problem I have it that I am using the package in a php program that upadates a DIV using AJAX (using prototype.js). When Show() does the output ($TBS->Show(OPENTBS_DOWNLOAD+TBS_EXIT, $file_name);) where file name ends in .odt, I still get the binary output in the DIV instead of getting the open/save dialog in WinXP.

I suspect that this is a problem with my use of AJAX. What I somehow need to do is separate the streams and output my instructions to the AJAX div while downloading the Show() output as a separate stream.

Suggestions or thoughts ?

bill

  2. Re: Show and Ajax   Reply   Report abuse  
Picture of william drescher
william drescher
2009-12-12 10:19:36 - In reply to message 1 from william drescher
I decided to pop open a new window for the TBS output and that is working fine.