[Chameleon] Dropdown/List box in QuickZoom widget

Gambin Dejan Dejan.Gambin at pula.hr
Tue Apr 4 03:22:44 EDT 2006


Hi Julien,

I tried it but it doesn't work. BUT - I have realised that I don't have
this problem in  PHP 4, only in PHP 5?

regards, dejan

> -----Original Message-----
> From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com] 
> Sent: Monday, April 03, 2006 4:51 PM
> To: Gambin Dejan
> Cc: chameleon at lists.maptools.org
> Subject: Re: [Chameleon] Dropdown/List box in QuickZoom widget
> 
> 
> Hi,
> If you replace the invalid character by its html encoded 
> value: &232; I think it will be replaced by the right 
> character when the template 
> parser will read it. Does it work?
> 
> Julien
> 
> Dejan Gambin wrote:
> > Hi,
> > 
> > Sorry if I don't answer correctly your question... this 
> character is 
> > normally displayed in my html pages...for example one of the 
> > characters causing problem is "ccaron" character that has 
> decimal code 
> > 232 and its html usage is &#232. I can see in xmlobject.php that 
> > "xml_parse_into_struct($parser, $szXMLDoc, $aVals, $index);" is 
> > causing error because $szXMLDoc has everything OK and 
> $aVals doesn't 
> > contain the "record" that has the failing character and 
> anything after 
> > it.
> > 
> > Do I have to use some functions to convert to ISO-8859-1 or UTF-8 
> > before calling xml_parse_into_struct or something? I tried 
> your piece 
> > of code with some tags containing my special characters. 
> The output is 
> > OK because it writes $szXMLDoc, but if I output $aVals it 
> doesn't work 
> > untill I remove my special character...
> > 
> > regards, dejan
> > 
> > 
> >>-----Original Message-----
> >>From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com]
> >>Sent: Sunday, April 02, 2006 9:06 PM
> >>To: Dejan Gambin; Chameleon Users
> >>Subject: Re: [Chameleon] Dropdown/List box in QuickZoom widget
> >>
> >>
> >>Hi,
> >>
> >>Is this character HTML encodable?
> >>
> >>Otherwise, try something like this to see if php can parse or
> >>not this tag: <?php $szXMLDoc = '<your cwc2 tag/>';
> >>             $parser = xml_parser_create();
> >>             xml_parser_set_option($parser, 
> >>XML_OPTION_CASE_FOLDING, 0);
> >>             xml_parser_set_option($parser, 
> >>XML_OPTION_SKIP_WHITE,   1);
> >>             xml_parse_into_struct($parser, $szXMLDoc, 
> >>$aVals, $index);
> >>             xml_parser_free($parser);
> >>
> >>print_r($szXMLDoc);
> >>?>
> >>
> >>Julien
> >>
> >>Dejan Gambin wrote:
> >>
> >>>Hi Julien,
> >>>
> >>>I have submitted a bug and attached the new
> >>
> >>QuickZoom.widget.php file.
> >>
> >>>Regarding my encoding problem, xml_parser_create
> >>
> >>unfortunately doesn't
> >>
> >>>support my encoding, that is ISO-8859-2. So what can I do?
> >>>
> >>>regards, dejan
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com]
> >>>>Sent: Friday, March 31, 2006 5:37 PM
> >>>>To: Gambin Dejan
> >>>>Cc: chameleon at lists.maptools.org
> >>>>Subject: Re: [Chameleon] Dropdown/List box in QuickZoom widget
> >>>>
> >>>>
> >>>>Hi,
> >>>>Please open a bug in Chameleon bugzilla and I'll integrate your 
> >>>>change.
> >>
> >>http://chameleon.maptools.org/index.phtml?page=bugs.html
> >>
> >>>>For the special characters, the functions used to parse 
> the content 
> >>>>of the widget are in PHP. It's xml_parser_create(). By going in
> >>>>chameleon/htdocs/common/xml_utils/XMLObject.php (around line 
> >>>>96) You could define the encoding to use in this function. 
> >>>>See: http://ca3.php.net/manual/en/function.xml-parser-create.php
> >>>>
> >>>>Julien
> >>>>
> >>>>Gambin Dejan wrote:
> >>>>
> >>>>
> >>>>>I have done the modifications in 2.4 version of QuickZoom
> >>>>
> >>>>widget. Now
> >>>>
> >>>>
> >>>>>I can send it somewhere...
> >>>>>
> >>>>>Just one question: why can't I use my special language
> >>>>
> >>>>characters when
> >>>>
> >>>>
> >>>>>defining VIEW names in "<view name=...". Whenever I use 
> a special 
> >>>>>character the widget doesn't display this select element and any 
> >>>>>element that follows in the list neither?
> >>>>>
> >>>>>regards, dejan
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>-----Original Message-----
> >>>>>>From: Paul Spencer [mailto:pspencer at dmsolutions.ca]
> >>>>>>Sent: Friday, March 31, 2006 2:32 PM
> >>>>>>To: Gambin Dejan
> >>>>>>Cc: chameleon at lists.maptools.org
> >>>>>>Subject: Re: [Chameleon] Dropdown/List box in QucikZoom widget
> >>>>>>
> >>>>>>
> >>>>>>dejan,
> >>>>>>
> >>>>>>unfortunately I think you will have to modify the widget
> >>
> >>to add an
> >>
> >>>>>>extra paramter.  I would suggest calling it SIZE with a
> >>
> >>default of
> >>
> >>>>>>one.
> >>>>>>
> >>>>>>Please send back to the list when you have it working 
> and someone
> >>>>>>will stick it in cvs.
> >>>>>>
> >>>>>>Cheers
> >>>>>>
> >>>>>>Paul
> >>>>>>
> >>>>>>On 31-Mar-06, at 4:11 AM, Gambin Dejan wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Hi,
> >>>>>>>
> >>>>>>>I would like to control the display of QuickZoom box so I
> >>>>
> >>>>can define
> >>>>
> >>>>
> >>>>>>>if it is displayed as dropdown (combo) box or listbox. I
> >>
> >>know that
> >>
> >>>>>>>SIZE parameter in SELECT html tag defines this (1 = combo, >1 =
> >>>>>>
> >>>>>>listbox). I
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>have tried using css but it ignores the SIZE parameter and
> >>>>
> >>>>displays
> >>>>
> >>>>
> >>>>>>>combo box always. If I set manually something like "<SELECT 
> >>>>>>>SIZE="10"....> it works OK.
> >>>>>>>
> >>>>>>>My question is: am I doing something wrong? Is the
> >>
> >>solution to put
> >>
> >>>>>>>another widget parameter and modify the widget? If yes
> >>
> >>then I can
> >>
> >>>>>>>do it and publish it if somebody is interesting in.
> >>>>>>>
> >>>>>>>regards, dejan
> >>>>>>>
> >>>>>>>_______________________________________________
> >>>>>>>Chameleon mailing list
> >>>>>>>Chameleon at lists.maptools.org
> >>>>>>>http://lists.maptools.org/mailman/listinfo/chameleon
> >>>>>>
> >>>>>>+---------------------------------------------------------
> >>
> >>--------+
> >>
> >>>>>>|Paul Spencer                           
> >>
> >>pspencer at dmsolutions.ca   |
> >>
> >>>>>>+---------------------------------------------------------
> >>
> >>--------+
> >>
> >>>>>>|Applications & Software Development                      
> >>
> >>        |
> >>
> >>>>>>|DM Solutions Group Inc                 
> >>
> >>http://www.dmsolutions.ca/|
> >>
> >>>>>>+---------------------------------------------------------
> >>
> >>--------+
> >>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>_______________________________________________
> >>>>>Chameleon mailing list
> >>>>>Chameleon at lists.maptools.org 
> >>>>>http://lists.maptools.org/mailman/listinfo/chameleon
> >>>>
> >>>>--
> >>>>Julien-Samuel Lacroix
> >>>>Mapgears
> >>>>http://www.mapgears.com/
> >>>>
> >>>
> >>>
> >>--
> >>Julien-Samuel Lacroix
> >>Mapgears
> >>http://www.mapgears.com/
> >>
> > 
> > 
> > 
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org 
> > http://lists.maptools.org/mailman/listinfo/chameleon
> 
> -- 
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> 



More information about the Chameleon mailing list