Thanks Up front for the help...
I have the following code which creates a ArrayList which I'll use for the pass:

<cfset arrSearchResults = CreateObject( 
"java", 
"java.util.ArrayList" 
).Init() />

Next I run the javascript to get the results I want - see the notes in the 
script
where I'm trying to get the results from the js into the arraylist - as it is 
written the text "result.title" is placed into arraylist but not the value from 
the js var result.title:

<script language="Javascript" type="text/javascript">    
//<![CDATA[
    function Main() {
        //Create a gsearch object
        var SiteSearch = new GwebSearch();
        SiteSearch.setSiteRestriction("www.rensup.com");
        SiteSearch.setResultSetSize(GSearch.LARGE_RESULTSET);
        SiteSearch.EXPAND_MODE_OPEN;
        SiteSearch.setSearchCompleteCallback(null, searchComplete, [null]); 
        }

   function startsearch() {
   SiteSearch.execute("description. ""Glass Sinks"" .htm");
   }
   
   function searchComplete() { 
      if (SiteSearch.results && SiteSearch.results.length) { 
        var i; 
                var results = new array();
                for (i=0; i < SiteSearch.results.length; i++ ) { 
          var result = gSearch.results[i];
          //NEED to now pass the results to an array structure that CF can 
utilize
                <cfset ArrayAppend( arrSearchResults, "result.Title" ) />
          // as it is now it passes back the text result.Title but not the 
value 
          // that is contained in the javascript var result.title - HOW DO I 
GET THE
          // value from the js var into the cset arrayappend call??? Have tried 
## -          // no effect? Can't seem to find out how to do this?
         } 
      } 
    } 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2402
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to