On Wed, Mar 17, 2010 at 12:05 PM, Mircea Carasel <[email protected]> wrote: > On Wed, Mar 17, 2010 at 12:14 AM, George Niculae > <[email protected]> wrote: >> >> >> --- On Tue, 3/16/10, Tambrea Cosmin <[email protected]> wrote: >>> I have tried to solve the cross-domain problem when >>> retrieving the >>> installation log and I have found that jQuery had >>> implemented a >>> solution for this issue. >> >> If I am not wrong - jQuery is using the "dynamic script tag" hack to allow >> cross-site calls. Dojo supports this as well: >> http://docs.dojocampus.org/dojo/io/script - there's a sample at the bottom >> of the page as well, if it's working it could save us for adding a new >> library. >> >> Thanks, >> George > I am wondering if there is another solution to avoid cross-domain hacks. > Since the log file you are trying to read is already exposed through > URL: http://localhost/retrieve-update-log.cgi?start_pos=1, > > maybe you can put an IFRAME inside the sipX software update page - > that should contain the log file content. > It looks like IFRAME is working also when cross domain calls are intended: > http://www.dyn-web.com/tutorials/iframes/ > > Mircea
Relevant example on how to load the output of an URL in a defined IFrame object: http://www.dyn-web.com/tutorials/iframes/load.php Most probably you would have to reload the iframe content periodically. This can be achieved also with some java script (make use of the javascript timeout function) Mircea >> >> >> >> >> _______________________________________________ >> sipx-dev mailing list [email protected] >> List Archive: http://list.sipfoundry.org/archive/sipx-dev >> Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev >> sipXecs IP PBX -- http://www.sipfoundry.org/ >> > _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
