[maplab-users] Change "page loading...please wait" text

kgrootendorst at baird.com kgrootendorst at baird.com
Fri Jun 3 14:07:48 EDT 2005


Bill,
That worked flawlessly - thanks.

Kevin




"William Bronsema" <wbronsema at dmsolutions.ca> 
Sent by: <maplab-users-bounces at lists.maptools.org>
06/03/2005 09:50 AM

To
"'Roberto Horst'" <robertohorst at gmail.com>
cc
<maplab-users at lists.maptools.org>
Subject
RE: [maplab-users] Change "page loading...please wait" text






<p align=\"left\"><b><font face=\"Arial\" size=\"2\">GFI MailSecurity's 
HTML threat engine found HTML scripts in this email and has disabled 
them.</font></b></p>Roberto,

To make the change global for your maplab installation (i.e. all
applications produced by GMapFactory will have the new message) go to
/gmapfactory/htdocs/gmapfactory/templates/app_php_file.php

Look for the function called "drawMainMap" (around line 656). There is a
chunk of code that looks like this (around line 685):

// draw the map as a ROSA applet
echo "<td width=".$oMap->width." height=".$oMap->height.">\n";
echo "<Xpplet name=\"RosaApplet\" archive=\"".ROSA_FILE."\" ".
       "code=\"Rosa2000\" width=\"".$oMap-><!--width."\" height=\"".
        $oMap->height."\" MAYSCRIPT>\n";
echo "<param name=\"TB_POSITION\" value=\"right\">\n";
echo  "<param name=\"TB_ALIGN\" value=\"top\">\n";
echo "<param name=\"IMG_URL\" value=\"".$urlMainMap."\">\n";
echo "<param name=\"INP_FORM_NAME\" value=\"main\">\n";

Add the parameter to this chunk of code.  i.e. 
echo '<param name="LOADING_MSG" value="New loading message">';

To update an existing application, open the <app_name>.php file and look 
for
the same code block.

HTH,
Bill


William A. Bronsema, C.E.T.
Software & Applications Development,
DM Solutions Group Inc.

e-mail: wbronsema at dmsolutions.ca
Web   : http://www.dmsolutions.ca
Phone : (613) 565-5056 ext.25
Fax   : (613) 565-0925
________________________________________________

> -----Original Message-----
> From: maplab-users-bounces at lists.maptools.org [mailto:maplab-users-
> bounces at lists.maptools.org] On Behalf Of Daniel Morissette
> Sent: Thursday, June 02, 2005 3:11 PM
> To: Roberto Horst
> Cc: maplab-users at lists.maptools.org
> Subject: Re: [maplab-users] Change "page loading...please wait" text
> 
> Roberto Horst wrote:
> > In which file are these parameters???
> >
> 
> I don't know, but it shouldn't be too hard for you to find: look for the
> code that generates the ROSA applet tag in the source files in the
> directory where your GMapFactory app has been created. Once you find it
> then you need to insert a line for the LOADING_MSG parameter (or edit
> the existing one if there is one).
> 
> Daniel
> 
> 
> 
> > On 6/1/05, Daniel Morissette <dmorissette at dmsolutions.ca> wrote:
> >
> >>kgrootendorst at baird.com wrote:
> >>
> >>>Can anybody tell me where I can change the "Page loading... Please
> wait"
> >>>text that displays while waiting for a map to draw?
> >>>Specifically, I'd like to substitute an animated gif for the text. 
But
> >>>I'm not sure where I can find the text.
> >>>
> >>
> >>I presume you are referring to the "Loading map... Please wait." 
message
> >>that you get in GMapFactory apps?
> >>
> >>If I remember correctly, I don't think GMapFactory allows you to 
change
> >>this through the GUI, but you can edit the generated code and change 
the
> >>message by adding/changing the LOADING_MSG parameter to the ROSA 
applet
> >>in the page. See:
> >>http://maptools.org/rosa/index.phtml?page=rosa_params.html
> >>
> >>Daniel
> >>--
> >>------------------------------------------------------------
> >>  Daniel Morissette               dmorissette at dmsolutions.ca
> >>  DM Solutions Group              http://www.dmsolutions.ca/
> >>------------------------------------------------------------
> >>_______________________________________________
> >>Maplab-users mailing list
> >>Maplab-users at lists.maptools.org
> >>http://lists.maptools.org/mailman/listinfo/maplab-users
> >>
> >
> >
> > _______________________________________________
> > Maplab-users mailing list
> > Maplab-users at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/maplab-users
> >
> 
> 
> --
> ------------------------------------------------------------
>   Daniel Morissette               dmorissette at dmsolutions.ca
>   DM Solutions Group              http://www.dmsolutions.ca/
> ------------------------------------------------------------
> _______________________________________________
> Maplab-users mailing list
> Maplab-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/maplab-users


_______________________________________________
Maplab-users mailing list
Maplab-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/maplab-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/maplab-users/attachments/20050603/459bcbc9/attachment.html


More information about the Maplab-users mailing list