<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Bart,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Are you sure you can set the SRC of a DIV? I
thought traditionally, that should not be possible.... I use IFRAME for
this purpose. Something from my dusty dhtml memory tells me that the SRC of a
DIV is only supported in either mozilla or explorer....... but I could be
wrong.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Just as a thought on the side, you could place your
URL values in a javascript array, and on the loading of the page, you can
load these values into your popup dynamically. Seems cleaner than putting them
all in the URL of the popup.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jacob</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>-----Original Message-----<BR>From: <A
href="mailto:chameleon-bounces@maptools.org">chameleon-bounces@maptools.org</A>
[mailto:chameleon-bounces@maptools.org] On Behalf Of Paul Spencer<BR>Sent: 21
December 2004 21:14<BR>To: <A
href="mailto:bartvde@xs4all.nl">bartvde@xs4all.nl</A><BR>Cc: <A
href="mailto:chameleon@maptools.org">chameleon@maptools.org</A><BR>Subject: Re:
[Chameleon] 1 on n widget parameters</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Bart,</DIV>
<DIV> </DIV>
<DIV>passing multiple values for the same attribute in a url can be
<BR>accomplished in several ways:</DIV>
<DIV> </DIV>
<DIV>1. multiple identical keys</DIV>
<DIV> </DIV>
<DIV>szWcasURL=http://first.server.com/&szWcasURL=http://second.server.com/&</DIV>
<DIV> </DIV>
<DIV>PHP will only see the first value in $_GET/$_POST/$_REQUEST so you have
<BR>to inspect the $_SERVER array and parse the values manually</DIV>
<DIV> </DIV>
<DIV>2. multiple identical keys as an array</DIV>
<DIV> </DIV>
<DIV>szWcasURL[]=http://first.server.com/&szWcasURL[]=http://second.server.com/&</DIV>
<DIV> </DIV>
<DIV>This is a convenience method that PHP provides, any attribute that ends
<BR>in [] coming from POST or GET will be interpreted as an array of values
<BR>in $_GET/$_POST/$_REQUEST. In this case, you would be able to access
<BR>your values from</DIV>
<DIV> </DIV>
<DIV>$_GET['szWcasURL'][0] and $_GET['szWcasURL'][1]</DIV>
<DIV> </DIV>
<DIV>3. multiple values from the same key</DIV>
<DIV> </DIV>
<DIV>szWcasURL=http://first.server.com/|http://second.server.com/&</DIV>
<DIV> </DIV>
<DIV>use some separator that is not valid in a URL then use:</DIV>
<DIV> </DIV>
<DIV>$aszWcasURL = explode( "|", $_GET['szWcasURL'] );</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>If you are using Popup.php to generate the popup link, you should
<BR>probably use #3 above. If you are crafting your own URL for the popup,
<BR>then #2 is probably slightly more efficient as PHP will parse the
<BR>headers into an array automagically.</DIV>
<DIV> </DIV>
<DIV>My idea to change all popups to "popins" would not change this, you
<BR>still need to craft an appropriate URL for this.</DIV>
<DIV> </DIV>
<DIV>Cheers,</DIV>
<DIV> </DIV>
<DIV>Paul</DIV>
<DIV> </DIV>
<DIV><A href="mailto:bartvde@xs4all.nl">bartvde@xs4all.nl</A> wrote:<BR>>
Hello list,<BR>> <BR>> for embedding a widget into my main page (instead
of a popup) I use a div<BR>> for which after the page load I put the src to
the ...Popup.phtml file of<BR>> a widget, e.g.:<BR>> <BR>>
function myOnLoad()<BR>> {<BR>> pageLoaded =
true;<BR>> CWC2OnLoadFunction();<BR>>
document.getElementById("catalogframe"). src =<BR>>
"/chameleon/widgets/GeoservicesCatalogSearch/CatalogSearchPopup.phtml?szCallbackFunc=catalogSearchCB&szWcasURL=http://geoservice1-agi.minvenw.nl:8080/deegreewcas/wcas&iMaxRecords=10&sid=[$gszSessId$]&bEmbedded=1&szMapviewerURL="+MapviewerURL+"&szMapviewerLiteURL="+MapviewerLiteURL;<BR>>
}<BR>> <BR>> Now I wanted to change this approach to incorporate a 1 to n
parameter (I<BR>> now have one WCASURL, but I need n). For widgets it is
possible to define<BR>> parameters which are children of the widget CWC2 tag
(1 to n parameters).<BR>> <BR>> How does this work in Chameleon when these
"arrays" need to be passed over<BR>> the URL to the popup.phtml page? Are
there examples of this? Or can a<BR>> popup.phtml page also access the widget
params through another way? How<BR>> would one go about this?<BR>>
<BR>> I remember Paul mentioning a different approach to this embedding
popups<BR>> problem by changing Popup.php to use div's inside the page. Would
that<BR>> approach solve my problem described above or would I still have a
problem<BR>> with 1 to n widget params?<BR>> <BR>> Hope the e-mail is
still clear :), must sound a bit vague ....<BR>> <BR>> Thanks in
advance,<BR>> Bart<BR>> <BR>>
_______________________________________________<BR>> Chameleon mailing
list<BR>> <A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR>>
<A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR>>
</DIV>
<DIV> </DIV>
<DIV>--
<BR>+-----------------------------------------------------------------+<BR>|Paul
Spencer
<A href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</A>
|<BR>+-----------------------------------------------------------------+<BR>|Applications
& Software
Development
|<BR>|DM Solutions Group
Inc
<A
href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</A>|<BR>+-----------------------------------------------------------------+<BR>_______________________________________________<BR>Chameleon
mailing list<BR><A
href="mailto:Chameleon@lists.maptools.org">Chameleon@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/chameleon">http://lists.maptools.org/mailman/listinfo/chameleon</A><BR></FONT></DIV></FONT></DIV></BODY></HTML>