|
||||
[Chameleon] Control structure in XMLThemeLegend templatePaul Spencer spencer@dmsolutions.caSat, 10 Jan 2004 15:37:17 -0500
|
Matt, there is no end user documentation for this yet, but this capability uses the TemplateProcessor.php file (in the htdocs folder) which does have some documentation aimed more at developers using TemplateProcessor.php rather than users of the XMLThemeLegend. However, there is one pertinent block in there: The macro language supports three basic operations: [repeat <object_type>]...[end] - this outputs up to the associated [end] for each object of <object_type>. This defines all attributes of the object within the current processing scope, making the values accessible to any [if] macros or [<attribute>] macros within the block. Attribute values will overwrite existing attribute values from other objects regardless of scope, so be careful with naming attributes between objects (they should be different). Once an [end] block is reached for a [repeat] macro, the associated attributes are taken out of the current scope [if <attribute> <operator> <value>]...[end] - this outputs up to the associated [end] if the expression is true. The <attribute> is some valid attribute for one of the current objects. The <operator> is = or !=. The <value> is either a quoted literal value or, if not quoted, an attribute of a current object. [<attribute>] - outputs the value of the attribute. The attribute must be defined for an object that is in scope (i.e. in a repeat block). For the XMLThemeLegend, we have not documented what the attributes can be but you can figure it out from the code. There are three main sets of attributes which are: 1. selection - this relates a context to a template, renderer and theme file 2. theme - this is a related set of groups 3. group - this is a set of layers that are controlled together For selection, the attribute values are selection_selected selection_name selection_contextfile selection_templatefile selection_rendererfile selection_themefile selection_url For theme, the attribute values are theme_type theme_abstract theme_name theme_bold theme_font theme_fontsize them_icon theme_extendabstract theme_extralayers theme_numlayers theme_id theme_url theme_input For group, the attributes are group_abstract group_name group_bold group_font group_fontsize group_icon group_extentabstract group_visible group_id group_theme_id group_url group_input group_numlayers to be honest, I don't exactly remember what all of this does, even though I wrote it ;) The concept of the widget is to separate rendering from the grouping logic and the widget to allow for custom legends in a variety of ways. Selections are defined in the application template as part of the widget. The theme file is an XML file that indicates what layers go in what groups and what groups go in what themes, and some default values. The renderer file is the one that determines how to display stuff. The basic concept is that you can use the repeat blocks on selection, theme and/or group which will repeat everything up to the associated [end] for each selection/theme/group in the theme XML file. Within this block all the [attribute_name] are replaced with the appropriate attribute value, for instance [group_name] would be replaced with the name of the current group. The if blocks operate on the same attribute values. I believe that before this widget is considered finished, we are going to revisit the selection stuff. The original concept that this widget was based on was something called a ContextSelector which was intended to allow the user to select between pre-defined map files (well, OGC Web Map Context files actually). I still haven't decided if I want to maintain this capability or put it in a separate widget, primarily because changing between contexts is a different set of functionality than displaying a legend for the current context. But the separation is not that easy because you have to know about the current context to potentially select a new theme file and potentially a new template and renderer file. Hope this clears it up for you :) Cheers, Paul Matt Frost wrote: > I'm trying to develop a template for the XMLThemeLegend that uses an > unordered list rather than a table for the legend items, but after all the > changes I've made, I'm afraid I've botched the template's loop logic. Could > someone explain the [repeat] and [end] sequence? > Thanks, > Matt Frost > > ----- Original Message ----- > From: <chameleon-request@lists.maptools.org> > To: <chameleon@lists.maptools.org> > Sent: Friday, January 09, 2004 3:16 PM > Subject: Chameleon digest, Vol 1 #103 - 2 msgs > > > >>Send Chameleon mailing list submissions to >>chameleon@lists.maptools.org >> >>To subscribe or unsubscribe via the World Wide Web, visit >>http://lists.maptools.org/mailman/listinfo/chameleon >>or, via email, send a message with subject or body 'help' to >>chameleon-request@lists.maptools.org >> >>You can reach the person managing the list at >>chameleon-admin@lists.maptools.org >> >>When replying, please edit your Subject line so it is more specific >>than "Re: Contents of Chameleon digest..." >> >> >>Today's Topics: >> >> 1. FW: [Chameleon] Hidden Text (Tracy Howlett) >> 2. Re: FW: [Chameleon] Hidden Text (Paul Spencer) >> >>--__--__-- >> >>Message: 1 >>Reply-To: <thowlett@whistlermuseum.org> >>From: "Tracy Howlett" <thowlett@whistlermuseum.org> >>To: <spencer@dmsolutions.ca> >>Cc: <chameleon@lists.maptools.org> >>Subject: FW: [Chameleon] Hidden Text >>Date: Fri, 9 Jan 2004 10:07:53 -0800 >>Organization: Whistler Museum and Archives >> >>This is a multi-part message in MIME format. >> >>------=_NextPart_000_000B_01C3D698.721CD0D0 >>Content-Type: text/plain; >>charset="us-ascii" >>Content-Transfer-Encoding: 7bit >> >>I was wondering why I hadn't heard anymore about this but I guess it is >>because it ended up being a private discussion. Anyone else come across >>this problem? >> >> >> >> _____ >> >>From: Tracy Howlett [mailto:thowlett@whistlermuseum.org] >>Sent: Saturday, January 03, 2004 1:13 PM >>To: 'jfournier@dmsolutions.ca' >>Subject: RE: [Chameleon] Hidden Text >> >> >> >> >> >>Hi Jason, >> >> >> >>I tried removing those breaks before your response so I can tell you that > > it > >>doesn't work. Neither did your new file. >> >> >> >>I only installed Chameleon about 3 weeks ago so it should have been a > > fairly > >>recent build. I noticed that someone else asked the same question a while >>back and I couldn't find a response. Maybe I'll search back and send him > > a > >>note to see if he got it fixed. >> >> >> >>Tracy >> >> >> >> _____ >> >>From: Jason Fournier [mailto:jfournier@dmsolutions.ca] >>Sent: Saturday, January 03, 2004 12:19 PM >>To: thowlett@whistlermuseum.org >>Subject: Re: [Chameleon] Hidden Text >> >> >> >>Tracy, >> >>If you look in the source of the file you attached (ie, >>ContextSelector.widget.php) you'll find a function called >>'GetHTMLHiddenVariables()' beginning on line 172. Inside this function > > are > >>all the hidden variables required for this widget. You'll notice that > > there > >>are <BR>'s included at the end of each hidden variable declaration. I'm > > not > >>sure why they are there but you can safely remove them - they are the > > cause > >>of the white space. The lines containing the <BR>'s to remove are as >>follows: >> >>180 >>184 >>188 >>192 >>225 >>230 >>238 >> >>I have also attached the file you sent modified with these changes. To > > test > >>this file please make a backup of >>/chameleon/htdocs/widgets/ContextSelector.widget.php and place the > > attached > >>file in that directory. >> >>Let me know if that works. If it does could you please post this message > > to > >>the entire list ... others may be encountering this problem. >> >>Please note that the current build of Chameleon contains this fix. >> >>Thanks! >>Jay >> >> >> >> >>Tracy Howlett wrote: >> >>Jason, >> >>If I am using the contextselector widget it is not consciously. I just > > took > >>the Chameleon sample and built on it. What is the ContextSelector widget >>for?? I've checked the source code and it does seem that 22 lines of >>'hidden' text are being added including references to the contextselector >>variables. >> >>Here is the link to my application. >>http://www.chirpwhistler.info/mapping/CHiRP.phtml >> >>And here is my ContextSelector.Widget file. >> >>Thanks! >> >>Tracy >> >>-----Original Message----- >>From: chameleon-admin@lists.maptools.org >>[mailto:chameleon-admin@lists.maptools.org] On Behalf Of Jason Fournier >>Sent: Friday, January 02, 2004 11:16 AM >>To: thowlett@whistlermuseum.org >>Cc: chameleon@lists.maptools.org >>Subject: Re: [Chameleon] Hidden Text >> >>Hi Tracy, >> >>Are you, by chance, using the ContextSelector widget? I did a little >>bit of research and found that, in some cases, the ContextSelector >>outputted <br>'s after each Hidden Variable it wrote out to the page. >>Please view the source of your page and look for the Hidden Variables >>(they should be just after the <BODY> tag). If this is in fact the case >>could you please email me the ContextSelector.widget.php file from your >>/chameleon/htdocs/widgets/ directory? >> >>Do you have a publicly available URL of your application? I could take >>a look at the output as well. >> >>Thanks, >>Jason >> >> >> >>Tracy Howlett wrote: >> >> >> >>Hi, >> >>I've seen this question posted a couple of times but haven't found an >> >> >>answer >> >> >>yet! I've got my application working fine now but when the page loads >> >> >>there >> >> >>is a bunch of space at the top of the page. I am pretty new to html >>programming but I figure this is because of all the hidden text? Is there >> >> >>a >> >> >>way to make the application load at the top of the page and leave the >> >> >>hidden >> >> >>stuff at the bottom? I've tried moving the code but that doesn't seem to >>make any difference. >> >>Cheers and Happy New Year, >> >>Tracy >> >> >>_______________________________________________ >>Chameleon mailing list >>Chameleon@lists.maptools.org >>http://lists.maptools.org/mailman/listinfo/chameleon >> >> >> >> >> >> >> >> >> >> >>-- >> -- >> |Jason Fournier >> |DM Solutions Group >> |Application Developer >> |Ottawa, ON >> |613.565.5056 x 18 >> |jfournier@dmsolutions.ca >> -- >> >>------=_NextPart_000_000B_01C3D698.721CD0D0 >>Content-Type: text/html; >>charset="us-ascii" >>Content-Transfer-Encoding: quoted-printable >> >><html xmlns:v=3D"urn:schemas-microsoft-com:vml" = >>xmlns:o=3D"urn:schemas-microsoft-com:office:office" = >>xmlns:w=3D"urn:schemas-microsoft-com:office:word" = >>xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" = >>xmlns=3D"http://www.w3.org/TR/REC-html40"> >> >><head> >><meta http-equiv=3DContent-Type content=3D"text/html; = >>charset=3Dus-ascii"> >><meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> >><!--[if !mso]> >><style> >>v\:* {behavior:url(#default#VML);} >>o\:* {behavior:url(#default#VML);} >>w\:* {behavior:url(#default#VML);} >>.shape {behavior:url(#default#VML);} >></style> >><![endif]--><o:SmartTagType >> namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" = >>name=3D"place"/> >><o:SmartTagType = >>namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" >> name=3D"City"/> >><o:SmartTagType = >>namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" >> name=3D"PersonName"/> >><!--[if !mso]> >><style> >>st1\:*{behavior:url(#default#ieooui) } >></style> >><![endif]--> >><style> >><!-- >> /* Font Definitions */ >> @font-face >>{font-family:Tahoma; >>panose-1:2 11 6 4 3 5 4 4 2 4;} >> /* Style Definitions */ >> p.MsoNormal, li.MsoNormal, div.MsoNormal >>{margin:0in; >>margin-bottom:.0001pt; >>font-size:12.0pt; >>font-family:"Times New Roman"; >>color:black;} >>a:link, span.MsoHyperlink >>{color:blue; >>text-decoration:underline;} >>a:visited, span.MsoHyperlinkFollowed >>{color:blue; >>text-decoration:underline;} >>pre >>{margin:0in; >>margin-bottom:.0001pt; >>font-size:10.0pt; >>font-family:"Courier New"; >>color:black;} >>span.EmailStyle18 >>{mso-style-type:personal; >>color:black;} >>span.EmailStyle19 >>{mso-style-type:personal-reply; >>font-family:Tahoma; >>color:green; >>font-weight:normal; >>font-style:normal; >>text-decoration:none none;} >>@page Section1 >>{size:8.5in 11.0in; >>margin:1.0in 1.25in 1.0in 1.25in;} >>div.Section1 >>{page:Section1;} >>--> >></style> >><!--[if gte mso 9]><xml> >> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> >></xml><![endif]--><!--[if gte mso 9]><xml> >> <o:shapelayout v:ext=3D"edit"> >> <o:idmap v:ext=3D"edit" data=3D"1" /> >> </o:shapelayout></xml><![endif]--> >></head> >> >><body bgcolor=3Dwhite lang=3DEN-US link=3Dblue vlink=3Dblue> >> >><div class=3DSection1> >> >><p class=3DMsoNormal><font size=3D2 color=3Dgreen face=3DTahoma><span = >>style=3D'font-size: >>10.0pt;font-family:Tahoma;color:green'>I was wondering why I = >>hadn’t heard >>anymore about this but I guess it is because it ended up being a private >>discussion. Anyone else come across this = >>problem?<o:p></o:p></span></font></p> >> >><p class=3DMsoNormal><font size=3D2 color=3Dgreen face=3DTahoma><span = >>style=3D'font-size: >>10.0pt;font-family:Tahoma;color:green'><o:p> </o:p></span></font></p= >> >><div> >> >><div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = >>size=3D3 >>color=3Dblack face=3D"Times New Roman"><span = >>style=3D'font-size:12.0pt;color:windowtext'> >> >><hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> >> >></span></font></div> >> >><p class=3DMsoNormal><b><font size=3D2 color=3Dblack face=3DTahoma><span >>style=3D'font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight= >>:bold'>From:</span></font></b><font >>size=3D2 color=3Dblack face=3DTahoma><span = >>style=3D'font-size:10.0pt;font-family:Tahoma; >>color:windowtext'> Tracy Howlett [mailto:<st1:PersonName = >>w:st=3D"on">thowlett@whistlermuseum.org</st1:PersonName>] >><br> >><b><span style=3D'font-weight:bold'>Sent:</span></b> Saturday, January = >>03, 2004 >>1:13 PM<br> >><b><span style=3D'font-weight:bold'>To:</span></b> '<st1:PersonName = >>w:st=3D"on">jfournier@dmsolutions.ca</st1:PersonName>'<br> >><b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [Chameleon] = >>Hidden >>Text</span></font><font color=3Dblack><span = >>style=3D'color:windowtext'><o:p></o:p></span></font></p> >> >></div> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'>Hi Jason, <o:p></o:p></span></font></p> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'>I tried removing those breaks before your = >>response so >>I can tell you that it doesn’t work. Neither did your new = >>file.<o:p></o:p></span></font></p> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'>I only installed Chameleon about 3 weeks ago = >>so it >>should have been a fairly recent build. I noticed that someone = >>else asked >>the same question a while back and I couldn’t find a = >>response. >>Maybe I’ll search back and send him a note to see if he got it = >>fixed.<o:p></o:p></span></font></p> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p> >> >><p class=3DMsoNormal><st1:City w:st=3D"on"><st1:place w:st=3D"on"><font = >>size=3D3 >> color=3Dblack face=3D"Times New Roman"><span = >>style=3D'font-size:12.0pt'>Tracy</span></font></st1:place></st1:City><o:p= >> >>></o:p></p> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p> >> >><div> >> >><div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font = >>size=3D3 >>color=3Dblack face=3D"Times New Roman"><span = >>style=3D'font-size:12.0pt;color:windowtext'> >> >><hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> >> >></span></font></div> >> >><p class=3DMsoNormal><b><font size=3D2 color=3Dblack face=3DTahoma><span >>style=3D'font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight= >>:bold'>From:</span></font></b><font >>size=3D2 color=3Dblack face=3DTahoma><span = >>style=3D'font-size:10.0pt;font-family:Tahoma; >>color:windowtext'> Jason Fournier [mailto:<st1:PersonName = >>w:st=3D"on">jfournier@dmsolutions.ca</st1:PersonName>] >><br> >><b><span style=3D'font-weight:bold'>Sent:</span></b> Saturday, January = >>03, 2004 >>12:19 PM<br> >><b><span style=3D'font-weight:bold'>To:</span></b> <st1:PersonName = >>w:st=3D"on">thowlett@whistlermuseum.org</st1:PersonName><br> >><b><span style=3D'font-weight:bold'>Subject:</span></b> Re: [Chameleon] = >>Hidden >>Text</span></font><font color=3Dblack><span = >>style=3D'color:windowtext'><o:p></o:p></span></font></p> >> >></div> >> >><p class=3DMsoNormal><font size=3D3 color=3Dblack face=3D"Times New = >>Roman"><span >>style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p> >> >><p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><st1:place = >>w:st=3D"on"><st1:City >> w:st=3D"on"><font size=3D3 color=3Dblack face=3D"Times New Roman"><span >> = >>style=3D'font-size:12.0pt'>Tracy</span></font></st1:City></st1:place>,<br= >> >><br> >>If you look in the source of the file you attached (ie, >>ContextSelector.widget.php) you'll find a function called >>'GetHTMLHiddenVariables()' beginning on line 172. Inside this = >>function are >>all the hidden variables required for this widget. You'll notice = >>that >>there are <BR>'s included at the end of each hidden variable >>declaration. I'm not sure why they are there but you can safely = >>remove >>them - they are the cause of the white space. The lines containing = >>the >><BR>'s to remove are as follows:<br> >><br> >>180<br> >>184<br> >>188<br> >>192<br> >>225<br> >>230<br> >>238<br> >><br> >>I have also attached the file you sent modified with these = >>changes. To >>test this file please make a backup of >>/chameleon/htdocs/widgets/ContextSelector.widget.php and place the = >>attached >>file in that directory.<br> >><br> >>Let me know if that works. If it does could you please post this = >>message >>to the entire list ... others may be encountering this problem.<br> >><br> >>Please note that the current build of Chameleon contains this fix.<br> >><br> >>Thanks!<br> >>Jay<br> >><br> >><br> >><br> >><br> >>Tracy Howlett wrote:<o:p></o:p></p> >> >><pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span >>style=3D'font-size:10.0pt'>Jason, = >><o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>If I am using the contextselector widget it = >>is not consciously. I just = >>took<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>the Chameleon sample and built on it. = >>What is the ContextSelector = >>widget<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>for?? I've checked the source code and = >>it does seem that 22 lines of<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>'hidden' text are being added including = >>references to the = >>contextselector<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>variables.<o:p></o:p></span></font></pre><pre>= >><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Here is the link to my = >>application.<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><a >>href=3D"http://www.chirpwhistler.info/mapping/CHiRP.phtml">http://www.chi= >>rpwhistler.info/mapping/CHiRP.phtml</a><o:p></o:p></span></font></pre><pr= >>e><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>And here is my ContextSelector.Widget = >>file.<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Thanks!<o:p></o:p></span></font></pre><pre><fo= >>nt >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><st1= >>:place >>w:st=3D"on"><st1:City w:st=3D"on"><font size=3D2 color=3Dblack = >>face=3D"Courier New"><span >> = >>style=3D'font-size:10.0pt'>Tracy</span></font></st1:City></st1:place><o:p= >> >>></o:p></pre><pre><font >> >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>-----Original = >>Message-----<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>From: <a >>href=3D"mailto:chameleon-admin@lists.maptools.org">chameleon-admin@lists.= >>maptools.org</a><o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>[<a >>href=3D"mailto:chameleon-admin@lists.maptools.org">mailto:chameleon-admin= >>@lists.maptools.org</a>] On Behalf Of Jason = >>Fournier<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Sent: Friday, January 02, 2004 11:16 = >>AM<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>To: <a >>href=3D"mailto:thowlett@whistlermuseum.org">thowlett@whistlermuseum.org</= >>a><o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Cc: <a >>href=3D"mailto:chameleon@lists.maptools.org">chameleon@lists.maptools.org= >></a><o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Subject: Re: [Chameleon] Hidden = >>Text<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Hi = >>Tracy,<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Are you, by chance, using the ContextSelector = >>widget? I did a little <o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>bit of research and found that, in some = >>cases, the ContextSelector <o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>outputted <br>'s after each Hidden = >>Variable it wrote out to the page. = >><o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Please view the source of your page and look = >>for the Hidden Variables <o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>(they should be just after the <BODY> = >>tag). If this is in fact the case = >><o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>could you please email me the = >>ContextSelector.widget.php file from your = >><o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>/chameleon/htdocs/widgets/ = >>directory?<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Do you have a publicly available URL of your = >>application? I could take = >><o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>a look at the output as = >>well.<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Thanks,<o:p></o:p></span></font></pre><pre><fo= >>nt >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Jason<o:p></o:p></span></font></pre><pre><font= >> >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Tracy Howlett = >>wrote:<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> <o:p></o:p></span></font></pre> >> >><blockquote style=3D'margin-top:5.0pt;margin-bottom:5.0pt' = >>type=3Dcite><pre wrap=3D""><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Hi,<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>I've seen this question posted a couple of = >>times but haven't found an<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> = >><o:p></o:p></span></font></pre></blockquote> >> >><pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span >>style=3D'font-size:10.0pt'>answer<o:p></o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> <o:p></o:p></span></font></pre> >> >><blockquote style=3D'margin-top:5.0pt;margin-bottom:5.0pt' = >>type=3Dcite><pre wrap=3D""><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>yet! I've got my application working = >>fine now but when the page = >>loads<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> = >><o:p></o:p></span></font></pre></blockquote> >> >><pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span >>style=3D'font-size:10.0pt'>there<o:p></o:p></span></font></pre><pre><font= >> size=3D2 >>color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> <o:p></o:p></span></font></pre> >> >><blockquote style=3D'margin-top:5.0pt;margin-bottom:5.0pt' = >>type=3Dcite><pre wrap=3D""><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>is a bunch of space at the top of the = >>page. I am pretty new to = >>html<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>programming but I figure this is because of = >>all the hidden text? Is = >>there<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> = >><o:p></o:p></span></font></pre></blockquote> >> >><pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span >>style=3D'font-size:10.0pt'>a<o:p></o:p></span></font></pre><pre><font = >>size=3D2 >>color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> <o:p></o:p></span></font></pre> >> >><blockquote style=3D'margin-top:5.0pt;margin-bottom:5.0pt' = >>type=3Dcite><pre wrap=3D""><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>way to make the application load at the top = >>of the page and leave the<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> = >><o:p></o:p></span></font></pre></blockquote> >> >><pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span >>style=3D'font-size:10.0pt'>hidden<o:p></o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> <o:p></o:p></span></font></pre> >> >><blockquote style=3D'margin-top:5.0pt;margin-bottom:5.0pt' = >>type=3Dcite><pre wrap=3D""><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>stuff at the bottom? I've tried moving = >>the code but that doesn't seem = >>to<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>make any = >>difference.<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Cheers and Happy New = >>Year,<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><st1= >>:place >>w:st=3D"on"><st1:City w:st=3D"on"><font size=3D2 color=3Dblack = >>face=3D"Courier New"><span >> = >>style=3D'font-size:10.0pt'>Tracy</span></font></st1:City></st1:place><o:p= >> >>></o:p></pre><pre><font >> >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>______________________________________________= >>_<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>Chameleon mailing = >>list<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><a >>href=3D"mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org= >></a><o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><a >>href=3D"http://lists.maptools.org/mailman/listinfo/chameleon">http://list= >>s.maptools.org/mailman/listinfo/chameleon</a><o:p></o:p></span></font></p= >>re><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> <o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> = >><o:p></o:p></span></font></pre></blockquote> >> >><pre wrap=3D""><font size=3D2 color=3Dblack face=3D"Courier New"><span >>style=3D'font-size:10.0pt'><o:p> </o:p></span></font></pre><pre><fon= >>t >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> <o:p></o:p></span></font></pre> >> >><p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D3 = >>color=3Dblack >>face=3D"Times New Roman"><span = >>style=3D'font-size:12.0pt'><o:p> </o:p></span></font></p> >> >><pre><font size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'>-- <o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> --<o:p></o:p></span></font></pre><pre><f= >>ont >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> |Jason = >>Fournier<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> |DM Solutions = >>Group<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> |Application = >>Developer<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> |Ottawa, = >>ON<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> |613.565.5056 x = >>18<o:p></o:p></span></font></pre><pre><font >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> |<a >>href=3D"mailto:jfournier@dmsolutions.ca">jfournier@dmsolutions.ca</a><o:p= >> >>></o:p></span></font></pre><pre><font >> >>size=3D2 color=3Dblack face=3D"Courier New"><span = >>style=3D'font-size:10.0pt'> --<o:p></o:p></span></font></pre></div> >> >></body> >> >></html> >> >>------=_NextPart_000_000B_01C3D698.721CD0D0-- >> >> >> >>--__--__-- >> >>Message: 2 >>Date: Fri, 09 Jan 2004 15:15:12 -0500 >>From: Paul Spencer <pagameba@magma.ca> >>Reply-To: spencer@dmsolutions.ca >>Organization: DM Solutions Group Inc >>To: thowlett@whistlermuseum.org >>CC: spencer@dmsolutions.ca, chameleon@lists.maptools.org >>Subject: Re: FW: [Chameleon] Hidden Text >> >>Tracy, >> >>I am sure that there are a bunch more things in there that could output >>text. We'll try to clean them up for the next release. >> >>Cheers, >> >>Paul >> >>Tracy Howlett wrote: >> >> >>>I was wondering why I hadn’t heard anymore about this but I guess it is >>>because it ended up being a private discussion. Anyone else come across >>>this problem? >>> >>> >>> >>>------------------------------------------------------------------------ >>> >>>*From:* Tracy Howlett [mailto:thowlett@whistlermuseum.org] >>>*Sent:* Saturday, January 03, 2004 1:13 PM >>>*To:* 'jfournier@dmsolutions.ca' >>>*Subject:* RE: [Chameleon] Hidden Text >>> >>> >>> >>> >>> >>>Hi Jason, >>> >>> >>> >>>I tried removing those breaks before your response so I can tell you >>>that it doesn’t work. Neither did your new file. >>> >>> >>> >>>I only installed Chameleon about 3 weeks ago so it should have been a >>>fairly recent build. I noticed that someone else asked the same >>>question a while back and I couldn’t find a response. Maybe I’ll search >>>back and send him a note to see if he got it fixed. >>> >>> >>> >>>Tracy >>> >>> >>> >>>------------------------------------------------------------------------ >>> >>>*From:* Jason Fournier [mailto:jfournier@dmsolutions.ca] >>>*Sent:* Saturday, January 03, 2004 12:19 PM >>>*To:* thowlett@whistlermuseum.org >>>*Subject:* Re: [Chameleon] Hidden Text >>> >>> >>> >>>Tracy, >>> >>>If you look in the source of the file you attached (ie, >>>ContextSelector.widget.php) you'll find a function called >>>'GetHTMLHiddenVariables()' beginning on line 172. Inside this function >>>are all the hidden variables required for this widget. You'll notice >>>that there are <BR>'s included at the end of each hidden variable >>>declaration. I'm not sure why they are there but you can safely remove >>>them - they are the cause of the white space. The lines containing the >>><BR>'s to remove are as follows: >>> >>>180 >>>184 >>>188 >>>192 >>>225 >>>230 >>>238 >>> >>>I have also attached the file you sent modified with these changes. To >>>test this file please make a backup of >>>/chameleon/htdocs/widgets/ContextSelector.widget.php and place the >>>attached file in that directory. >>> >>>Let me know if that works. If it does could you please post this >>>message to the entire list ... others may be encountering this problem. >>> >>>Please note that the current build of Chameleon contains this fix. >>> >>>Thanks! >>>Jay >>> >>> >>> >>> >>>Tracy Howlett wrote: >>> >>>Jason, >>> >>> >>> >>>If I am using the contextselector widget it is not consciously. I just > > took > >>>the Chameleon sample and built on it. What is the ContextSelector > > widget > >>>for?? I've checked the source code and it does seem that 22 lines of >>> >>>'hidden' text are being added including references to the > > contextselector > >>>variables. >>> >>> >>> >>>Here is the link to my application. >>> >>>http://www.chirpwhistler.info/mapping/CHiRP.phtml >>> >>> >>> >>>And here is my ContextSelector.Widget file. >>> >>> >>> >>>Thanks! >>> >>> >>> >>>Tracy >>> >>> >>> >>>-----Original Message----- >>> >>>From: chameleon-admin@lists.maptools.org > > <mailto:chameleon-admin@lists.maptools.org> > >>>[mailto:chameleon-admin@lists.maptools.org] On Behalf Of Jason Fournier >>> >>>Sent: Friday, January 02, 2004 11:16 AM >>> >>>To: thowlett@whistlermuseum.org <mailto:thowlett@whistlermuseum.org> >>> >>>Cc: chameleon@lists.maptools.org <mailto:chameleon@lists.maptools.org> >>> >>>Subject: Re: [Chameleon] Hidden Text >>> >>> >>> >>>Hi Tracy, >>> >>> >>> >>>Are you, by chance, using the ContextSelector widget? I did a little >>> >>>bit of research and found that, in some cases, the ContextSelector >>> >>>outputted <br>'s after each Hidden Variable it wrote out to the page. >>> >>>Please view the source of your page and look for the Hidden Variables >>> >>>(they should be just after the <BODY> tag). If this is in fact the case >>> >>>could you please email me the ContextSelector.widget.php file from your >>> >>>/chameleon/htdocs/widgets/ directory? >>> >>> >>> >>>Do you have a publicly available URL of your application? I could take >>> >>>a look at the output as well. >>> >>> >>> >>>Thanks, >>> >>>Jason >>> >>> >>> >>> >>> >>> >>> >>>Tracy Howlett wrote: >>> >>> >>> >>> >>> >>> >>>>Hi, >>>> >>>> >>>> >>>>I've seen this question posted a couple of times but haven't found an >>>> >>>> >>> >>>answer >>> >>> >>> >>> >>>>yet! I've got my application working fine now but when the page loads >>>> >>>> >>> >>>there >>> >>> >>> >>> >>>>is a bunch of space at the top of the page. I am pretty new to html >>>> >>>>programming but I figure this is because of all the hidden text? Is > > there > >>>> >>>a >>> >>> >>> >>> >>>>way to make the application load at the top of the page and leave the >>>> >>>> >>> >>>hidden >>> >>> >>> >>> >>>>stuff at the bottom? I've tried moving the code but that doesn't seem > > to > >>>>make any difference. >>>> >>>> >>>> >>>>Cheers and Happy New Year, >>>> >>>> >>>> >>>>Tracy >>>> >>>> >>>> >>>> >>>> >>>>_______________________________________________ >>>> >>>>Chameleon mailing list >>>> >>>>Chameleon@lists.maptools.org <mailto:Chameleon@lists.maptools.org> >>>> >>>>http://lists.maptools.org/mailman/listinfo/chameleon >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>>-- >>> >>> -- >>> >>> |Jason Fournier >>> >>> |DM Solutions Group >>> >>> |Application Developer >>> >>> |Ottawa, ON >>> >>> |613.565.5056 x 18 >>> >>> |jfournier@dmsolutions.ca <mailto:jfournier@dmsolutions.ca> >>> >>> -- >>> >> >>-- >> ----------------------------------------------------------------- >>|Paul Spencer spencer@dmsolutions.ca | >>|-----------------------------------------------------------------| >>|Applications & Software Development | >>|DM Solutions Group Inc http://www.dmsolutions.ca/| >> ----------------------------------------------------------------- >> >> >> >>--__--__-- >> >>_______________________________________________ >>Chameleon mailing list >>Chameleon@lists.maptools.org >>http://lists.maptools.org/mailman/listinfo/chameleon >> >> >>End of Chameleon Digest > > > _______________________________________________ > Chameleon mailing list > Chameleon@lists.maptools.org > http://lists.maptools.org/mailman/listinfo/chameleon > -- ----------------------------------------------------------------- |Paul Spencer spencer@dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| -----------------------------------------------------------------
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |