RE: [flexcoders] Evaluate expression - linking problems

2005-02-26 Thread Matt Chotin








click=”getURL(event.target.getRepeaterItem().URL,
‘_blank’);

 

click=”getURL(data.getBeginnger.result[event.target.repeaterIndices[0]].URL)”
//I think

 

Matt

 









From: Jeff Steiner
[mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 26,2005
9:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Evaluate
_expression_ - linking problems



 

Sorry - in my example below 
click="getURL( listBeg.currentItem.ID,
'_blank' )"
should be 
click="getURL( listBeg.currentItem.URL ,
'_blank' )"

Thanks,
Jeff
http://www.flexauthority.com

- Original Message - 
From: "Steiner, Jeff"
<[EMAIL PROTECTED]>
To: 
Sent: Saturday, February 26, 2005 9:36 AM
Subject: [flexcoders] Evaluate _expression_ -
linking problems


> 
> I don't really know how to describe this, so
I will do my best.
> 
> I have the following working:
> listBeg is my repeater
> URL is the element in the array that is
outputting to the label.  This
> is working as you would expect.
> 
> 
> 
> The following is not working.  I get
undefined when I run it.
> click="getURL( listBeg.currentItem.ID ,
'_blank' )"
> 
> Going the other route - this works:
> Click="getURL(
data.getBeginner.result[0].URL )"
> 
> This does not:
> Click="getURL(
data.getBeginner.result[listBeg.selectedIndex].URL )"
> 
> If I pull the internal variables out ofthe
links (aside from the first
> one not working which is driving me nuts)
they output correctly in Label
> fields.
> 
> Please tell me what I am doing wrong
here.  Also - if there is a way to
> force the evaluation of the internal variable
I am willing to do this
> the hard way.
> 
> Thanks,
> Jeff
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 










Re: [flexcoders] Evaluate expression - linking problems

2005-02-26 Thread Jeff Steiner
Sorry - in my example below 
click="getURL( listBeg.currentItem.ID , '_blank' )"
should be 
click="getURL( listBeg.currentItem.URL , '_blank' )"

Thanks,
Jeff
http://www.flexauthority.com

- Original Message - 
From: "Steiner, Jeff" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, February 26, 2005 9:36 AM
Subject: [flexcoders] Evaluate expression - linking problems


> 
> I don't really know how to describe this, so I will do my best.
> 
> I have the following working:
> listBeg is my repeater
> URL is the element in the array that is outputting to the label. This
> is working as you would expect.
> 
> 
> 
> The following is not working. I get undefined when I run it.
> click="getURL( listBeg.currentItem.ID , '_blank' )"
> 
> Going the other route - this works:
> Click="getURL( data.getBeginner.result[0].URL )"
> 
> This does not:
> Click="getURL( data.getBeginner.result[listBeg.selectedIndex].URL )"
> 
> If I pull the internal variables out of the links (aside from the first
> one not working which is driving me nuts) they output correctly in Label
> fields.
> 
> Please tell me what I am doing wrong here. Also - if there is a way to
> force the evaluation of the internal variable I am willing to do this
> the hard way.
> 
> Thanks,
> Jeff
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 




Evaluate expression - linking problems

2005-02-26 Thread Steiner, Jeff
I don't really know how to describe this, so I will do my best.

I have the following working:
listBeg is my repeater
URL is the element in the array that is outputting to the label. This
is working as you would expect.



The following is not working. I get undefined when I run it.
click="getURL( listBeg.currentItem.ID , '_blank' )"

Going the other route - this works:
Click="getURL( data.getBeginner.result[0].URL )"

This does not:
Click="getURL( data.getBeginner.result[listBeg.selectedIndex].URL )"

If I pull the internal variables out of the links (aside from the first
one not working which is driving me nuts) they output correctly in Label
fields.

Please tell me what I am doing wrong here. Also - if there is a way to
force the evaluation of the internal variable I am willing to do this
the hard way.

Thanks,
Jeff