OK, tried putting the variable names in the array, as well as changing
the array into a structure.  But the cffunction is called from a
javascript function that is some core engine thing insode the cfajax. 
If I return the array, I get "[object Object], [object Object],
...etc.".  It does something with this to turn it into the key and
text pairs for the select list.

Not sure where to go from here...

Chad
who is stuck

On 8/30/05, Steve Onnis <[EMAIL PROTECTED]> wrote:
> From the CFFUNCTION call, i would return out a structure with 2 items.  The
> first being the original argumants collection and the second being your
> country value.  this way you have both the data that you need and the
> original data you passed in.
> 
> then when your doing you javascript stuff, use the stucture items to get the
> data you need to perform your tasks.
> 
> Ofcourse this all depends on how your managing the state between each step
> as you said your doing it without page loads.
> 
> Steve
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Chad
> Renando
> Sent: Tuesday, August 30, 2005 7:15 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] RE: Passing variables between cffunction and
> javascript
> 
> 
> Thanks Antony.  What a coincidence... I don't know much about this
> either. ;)  Yeah, I was actually considering that if no one had
> anything else.  So I may be posting another OT post regarding array
> manipulation in Javascript.
> 
> Chad
> who is sick as a dog and lost his funny sigs somewhere in his pile of
> tissues
> 
> On 8/29/05, Antony Sideropoulos <[EMAIL PROTECTED]> wrote:
> > Hey Chad
> >
> > I don't know much about this, but you could cheat by putting your 'extra'
> > variable into the array - say at the 'top' and then use this in step 3,
> and
> > load your array data from the second position.
> >
> > Antony
> > Who wonders where Chad's 'funny' sigs have gone
> >
> >
> > On 8/29/05, Chad Renando <[EMAIL PROTECTED]> wrote:
> > >
> > > Mmmm... no... don't think so.  Steps 1, 2 and 3 are happening with no
> > > reload at the moment.  All I want to do is tack on an extra variable.
> > > I can tack on an extra variable when passing from step 1 to step 2,
> > > but I don't know how to pass an extra one out of the cffunction.
> > >
> > > Chad
> > >
> > > On 8/29/05, Steve Onnis < [EMAIL PROTECTED]> wrote:
> > > > You do understand that the browser needs to be reloaded for this dont
> > you?
> > > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED]
> > Behalf Of Chad
> > > > Renando
> > > > Sent: Monday, August 29, 2005 4:43 PM
> > > > To: CFAussie Mailing List
> > > > Subject: [cfaussie] Passing variables between cffunction and
> javascript
> > > >
> > > >
> > > > Asked this Q before re: an issue I have with CFAjax.  Figured I wasn't
> > > > clear enough (as the alternative is that I was being ignored...and it
> > > > couldn't be that)  ;)
> > > >
> > > > In a nutshell... here's what's going on...
> > > >
> > > > 1. The JavaScript function "getCounty()" gets the state value passed
> > from
> > > > the
> > > > drop-down and passes it to the cffunction "countylookup".
> > > >
> > > > 2. The cffunction "countylookup" grabs the appropriate counties for
> > > > the state and passes them back to the JavaScript function
> > > > "getCountyResult(countyArray)" using "<cfreturn county>".
> > > >
> > > > 3. The JavaScript function "getCountyResult(countyArray)" populates
> the
> > > > county
> > > > drop-down list with the array passed from step 2 above.
> > > >
> > > > QUESTION
> > > > How would I pass a variable from step 1 to step 3?  If I pass it into
> > > > step 2, can I pass another variable out of step 2 in addition to doing
> > > > "<cfreturn county>"?
> > > >
> > > > Sorry, still coming up to speed on passing stuff between cffunctions
> > > > and javascript.
> > > >
> > > > Cheers,
> > > >
> > > > Chad
> > > >
> > > > ---
> > > > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > > > To unsubscribe send a blank email to
> > > > [EMAIL PROTECTED]
> > > > Aussie Macromedia Developers: http://lists.daemon.com.au/
> > > >
> > > >
> > > >
> > > > ---
> > > > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > > > To unsubscribe send a blank email to
> > [EMAIL PROTECTED]
> > > > Aussie Macromedia Developers: http://lists.daemon.com.au/
> > > >
> > >
> > > ---
> > > You are currently subscribed to cfaussie as:
> [EMAIL PROTECTED]
> > > To unsubscribe send a blank email to
> > [EMAIL PROTECTED]
> > > Aussie Macromedia Developers: http://lists.daemon.com.au/
> > >
> >
> >  --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To
> > unsubscribe send a blank email to
> > [EMAIL PROTECTED] Aussie Macromedia
> > Developers: http://lists.daemon.com.au/
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to