[Chameleon] Dropdown/List box in QuickZoom widget

Julien-Samuel Lacroix jlacroix at mapgears.com
Sun Apr 2 15:06:09 EDT 2006


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/


More information about the Chameleon mailing list