[Chameleon] Modifying the form inside of QueryResults

Abbott,Arthur Arthur.Abbott at nscc.ca
Fri May 12 13:31:31 EDT 2006


Thanks for the quick response. Yes I have looked into the customized query results. I think that I would be in the
same boat as with modifing QueryResults.phtml. I still need to know how to communicate with the application main
form to update the source property of an img tag. this is the code i need to be able to update.
 
      <div id="PictureLayer">
        <img src="http://*.*.*.*/images/softball.png" name = "dispImg">
      </div>
 
how can i get the to the document?
 
Arthur

________________________________

From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com]
Sent: Fri 5/12/2006 12:12 PM
To: Abbott,Arthur
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] Modifying the form inside of QueryResults



Hi,
Were you aware of the custom query result documentation?
http://chameleon-tiki.maptools.org/tiki-index.php?page=QueryWidgetCustomizingResults
I think that would be the way to go.

Other than that, you may check in the code:
chameleon/htdocs/widgets/Query/QueryResult.phtml

Best regards,
Julien

Abbott,Arthur wrote:
> Anyone,
> 
> I'm currently tinkering around inside of the QueryResults.phtml file. I've managed to find and extract a url which points to an image from a layer. I would now like to use that url to change an image that resides in the template file. The following is a snippet from QueryResult.
> 
>        // Check if there's any result
>         if($oResultSet)
>         {           
>             $url = findURL($oResultSet);
>             if($url != "")
>             {
>               //display the image in the popup window
>               $szResults .= "<img SRC='";
>               $szResults .=$url;
>               $szResults .= "'";
>             }
>             else         //else perform the query as normal.
>             $szResults = formatQueryResults( $oResultSet, $aszLayers,
>                                              $aszTitles );           
>         }
> 
> Is there a way to access the form from inside QueryResult? Is so, how?
> 
> Thanks in advance,
> 
> Arthur Abbott
>
> _______________________________________________
> 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