Hi,
I noticed this in "man HTML::Mason::Request":
flush_buffer
[...]
Attempts to flush the buffers are ignored within the context of a
call to "$m->scomp" or when output is being stored in a scalar
reference, as with the " { store => \$out } " component call
modifier.
I have been searching a long time why my javascript redirect was never
sent and finally understood why after reading this manual section.
if ($r->headers_in->{'X-Requested-With'} eq 'XMLHttpRequest') { ## ajax
$r->warn("javascript redirect");
$r->content_type("application/javascript");
$m->print('window.location="/login.md";');
$m->abort(200);
}
This code is called within a component itself called with $m->scomp().
How can I make that work while still calling the compent with
$m->scomp()?
Thanks,
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users