[Cartoweb-users] undesired change of font and style
Oliver Christen
oliver.christen at camptocamp.com
Mon Apr 14 02:30:00 EDT 2008
Hi
you must not! output something directly with a echo or a print.
this will simply break the rendering of your page, the usual result is a
broken styling as you observed.
if your plugin must return a message, either use the normal output via the
renderForm function in your plugin, or you can return a user-message with:
$this->cartoclient->addMessage("File uploaded OK");
regards
Oliver
>
> Hi all,
> sorry if it is a bit off-topic, Anyway, I've added in a plugIn the feature
> of uploading file into the server, so there are some responses which are
> sent to the user by a message window, for example if the file does not
> match
> the rule. Now after displaing the window, the format of the template
> changes; some fonts becam to big and some colors are changed.
> I've simply added this:
>
> echo "<SCRIPT LANGUAGE='JavaScript'> alert('File uploaded OK')</SCRIPT>";
>
> I suppose that on clicking ok the page is not fully reloaded, is there a
> way
> to solve this annoyng effect ?
>
> THanks to all
>
>
> --
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
>
> Sponsor:
> Scopri le tue passioni con Leonardo.it!
>
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7653&d=20080412
>
>
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
More information about the Cartoweb-users
mailing list