Re: [flexcoders] Re: repeater child click event
On Wednesday 06 Jun 2007, nhp_ny wrote: the repeater has no children property. Did you read all of http://livedocs.adobe.com/flex/201/langref/mx/core/Repeater.html ? -- Tom Chiverton Helping to synergistically reinvent cross-platform IPOs on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: repeater child click event
--- In flexcoders@yahoogroups.com, Derek Vadneau [EMAIL PROTECTED] wrote: Sorry, I responded before trying, duh. Here's some working code (modified from the docs Referencing repeated components): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* layout=absolute mx:Script ![CDATA[ [Bindable] private var dp:Array = [1, 2, 3, 4, 5, 6, 7, 8, 9]; private function onClick(b:*):void { trace(b); } ]] /mx:Script mx:Panel title=Repeater Example width=75% height=75% paddingTop=10 paddingLeft=10 paddingRight=10 paddingBottom=10 mx:Text width=100% color=blue text=Use the Repeater class to create 9 Button controls in a 3 by 3 Tile container./ mx:Tile direction=horizontal borderStyle=inset horizontalGap=10 verticalGap=15 paddingLeft=10 paddingTop=10 paddingBottom=10 paddingRight=10 mx:Repeater id=rp dataProvider={dp} mx:LinkButton id=myLB height=50 width=50 label={String(rp.currentItem)} click=onClick(event.target);/ /mx:Repeater /mx:Tile mx:Button label=onClick click=onClick(myLB[0]);/ /mx:Panel /mx:Application On 6/6/07, nhp_ny [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, nhp_ny nhp_ny@ wrote: mx:Repeater ... mx:LinkButton id=myLB click=onClick(Event.currentTarget)/ /mx:Repeater how can i fire the click event of repeater child component myLB [0]? just to simulate a mouse click on that component. is it possibile that nobody here knows how to do this? i just need to call the onClick function passing it the first child component of the repeater that should be myLB[0]. -- Derek Vadneau yes ok,... thats what i'm working on too... but when i put the : mx:Button label=onClick click=onClick(myLB[0]);/ line inside a function, i doesn't work.. because i need to call the function from AS. Like: proivate function onInitApp():void { onClick(myLB[0]); } thanks
Re: [flexcoders] Re: repeater child click event
On Thursday 07 Jun 2007, nhp_ny wrote: yes ok,... thats what i'm working on too... but when i put the : mx:Button label=onClick click=onClick(myLB[0]);/ line inside a function, i doesn't work.. because i need to call the function from AS. Like: proivate function onInitApp():void { onClick(myLB[0]); } Your other option, rather than mucking about is to refactor so you have a method that is decoupled from knowing about your LinkBar. Call that from both onClick() and onInitApp(). -- Tom Chiverton Helping to augmentatively synergize strategic ROI on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: repeater child click event
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 07 Jun 2007, nhp_ny wrote: yes ok,... thats what i'm working on too... but when i put the : mx:Button label=onClick click=onClick(myLB[0]);/ line inside a function, i doesn't work.. because i need to call the function from AS. Like: proivate function onInitApp():void { onClick(myLB[0]); } Your other option, rather than mucking about is to refactor so you have a method that is decoupled from knowing about your LinkBar. Call that from both onClick() and onInitApp(). -- Tom Chiverton Helping to augmentatively synergize strategic ROI on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. sorry, maybe it's my english, but i didn't get it. 1 little line of code is better that 1 million words.
[flexcoders] Re: repeater child click event
this is my OnClick function: private function onClickCanali(obj:Object, xmlFile:String):void { var lb:LinkButton; for each (lb in lbCanali) { lb.enabled = true } obj.enabled = false; LoadXmlFile(xmlFile); } as you can see, i need to pass parameters to it, don't see another way to do it. I have vertical linkbuttons that i'm using like if i had a vertical linkbar. when i disable a linkbutton, the others get enabled. just like the linkbar does. and this is the xml that calls the func: mx:Repeater id=rCanali dataProvider={xmlCanali.canale} mx:LinkButton id=lbCanali label={rCanali.currentItem.title} width=100% textAlign=left click=onClickCanali (event.currentTarget, event.currentTarget.getRepeaterItem ().xmlfile);/ /mx:Repeater
Re: [flexcoders] Re: repeater child click event
On Thursday 07 Jun 2007, nhp_ny wrote: this is my OnClick function: This has an xmlFile argument that isn't set in the inital code you posted, I'll assume it's a page variable. private function onClickCanali(obj:Object, xmlFile:String):void { var lb:LinkButton; for each (lb in lbCanali) { lb.enabled = true } obj.enabled = false; LoadXmlFile(xmlFile); } as you can see, i need to pass parameters to it, don't see another way to do it. Right. Ya see, you post code and it all becomes much easier. private function onClickCanali(event:MouseEvent):void{ selectOnly(event.target.label); } private function selectOnly(lab:String){ var lb:LinkButton; for each (lb in lbCanali) { if (lb.label==lb){ lb.enabled = true ; }else{ lb.enabeled=false; } } LoadXmlFile(xmlFile); } in initApp(): selectOnly(someLabel);//you could get this string from the dataProvider of the repeater too. I have vertical linkbuttons that i'm using like if i had a vertical linkbar. when i disable a linkbutton, the others get enabled. just like the linkbar does. and this is the xml that calls the func: mx:Repeater id=rCanali dataProvider={xmlCanali.canale} mx:LinkButton id=lbCanali label={rCanali.currentItem.title} width=100% textAlign=left click=onClickCanali (event.currentTarget, event.currentTarget.getRepeaterItem ().xmlfile);/ /mx:Repeater -- Tom Chiverton Helping to enthusiastically facilitate robust models on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: repeater child click event
mx:Repeater id=rCanali dataProvider={xmlCanali.canale} mx:LinkButton id=lbCanali label={rCanali.currentItem.title} width=100% textAlign=left click=onClickCanali (event.currentTarget, event.currentTarget.getRepeaterItem ().xmlfile);/ /mx:Repeater the xml file is there. event.currentTarget.getRepeaterItem().xmlfile its the second parameter of the onclickCanali function thanks
[flexcoders] Re: repeater child click event
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 07 Jun 2007, nhp_ny wrote: this is my OnClick function: This has an xmlFile argument that isn't set in the inital code you posted, I'll assume it's a page variable. private function onClickCanali(obj:Object, xmlFile:String):void { var lb:LinkButton; for each (lb in lbCanali) { lb.enabled = true } obj.enabled = false; LoadXmlFile(xmlFile); } as you can see, i need to pass parameters to it, don't see another way to do it. Right. Ya see, you post code and it all becomes much easier. private function onClickCanali(event:MouseEvent):void{ selectOnly(event.target.label); } private function selectOnly(lab:String){ var lb:LinkButton; for each (lb in lbCanali) { if (lb.label==lb){ lb.enabled = true ; }else{ lb.enabeled=false; } } LoadXmlFile(xmlFile); } in initApp(): selectOnly(someLabel);//you could get this string from the dataProvider of the repeater too. I have vertical linkbuttons that i'm using like if i had a vertical linkbar. when i disable a linkbutton, the others get enabled. just like the linkbar does. and this is the xml that calls the func: mx:Repeater id=rCanali dataProvider={xmlCanali.canale} mx:LinkButton id=lbCanali label={rCanali.currentItem.title} width=100% textAlign=left click=onClickCanali (event.currentTarget, event.currentTarget.getRepeaterItem ().xmlfile);/ /mx:Repeater -- Tom Chiverton Helping to enthusiastically facilitate robust models on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. great!! got the idea but what about the xmlfile string? its a string that i need to get from the repeater dataprovider. When the user clicks the linkbutton, other than changing its state to disabled, i also need to have that string so i can load an external xml file. the data provider is: ?xml version=1.0? canali canale id=1 titleMy Title/title xmlfilexmldata/xmlfile /canale /canali
[flexcoders] Re: repeater child click event
and also ... another thig that i just saw.. ... selectOnly(someLabel); can't do that because i don't know the name of the linkbutton label. the linkbuttons get their labels from a xml file. thats why i was passing all those objects to the onClickCanali function.
Re: [flexcoders] Re: repeater child click event
On Thursday 07 Jun 2007, nhp_ny wrote: selectOnly(someLabel); can't do that because i don't know the name of the linkbutton label. the linkbuttons get their labels from a xml file. thats why i was passing all those objects to the onClickCanali function. Go via lbCanali.dataProvider[0] then. Maybe my comment in the code snippit wasn't clear. event.currentTarget.getRepeaterItem().xmlfile You can extract that in both initApp and onClick, and make it the 2nd arg to selectOnly(). -- Tom Chiverton Helping to vitalistically reintermediate fifth-generation information on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: repeater child click event
thanks, thanks and thanks.
Re: [flexcoders] Re: repeater child click event
On Thursday 07 Jun 2007, nhp_ny wrote: thanks, thanks and thanks. tom:Bow / :-) -- Tom Chiverton Helping to dynamically expedite out-of-the-box e-services on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: repeater child click event
On Tuesday 05 Jun 2007, nhp_ny wrote: way... for example... is there a way to let the repeaters first child , myLB[0], to be disabled? i tried myLB[0].enabled = false, but nothing. myLB isn't your repeater. Even if it was, it's not an array - use the actual children property. -- Tom Chiverton Helping to preemptively compete dot-com e-business on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: repeater child click event
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 05 Jun 2007, nhp_ny wrote: way... for example... is there a way to let the repeaters first child , myLB[0], to be disabled? i tried myLB[0].enabled = false, but nothing. myLB isn't your repeater. Even if it was, it's not an array - use the actual children property. -- Tom Chiverton Helping to preemptively compete dot-com e-business on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. the repeater has no children property.
[flexcoders] Re: repeater child click event
--- In flexcoders@yahoogroups.com, nhp_ny [EMAIL PROTECTED] wrote: mx:Repeater ... mx:LinkButton id=myLB click=onClick(Event.currentTarget)/ /mx:Repeater how can i fire the click event of repeater child component myLB[0]? just to simulate a mouse click on that component. is it possibile that nobody here knows how to do this? i just need to call the onClick function passing it the first child component of the repeater that should be myLB[0].
Re: [flexcoders] Re: repeater child click event
onClick(RepeaterID.getChildAt(0)); On 6/6/07, nhp_ny [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 05 Jun 2007, nhp_ny wrote: way... for example... is there a way to let the repeaters first child , myLB[0], to be disabled? i tried myLB[0].enabled = false, but nothing. myLB isn't your repeater. Even if it was, it's not an array - use the actual children property. -- Tom Chiverton Helping to preemptively compete dot-com e-business on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. the repeater has no children property. -- Derek Vadneau
Re: [flexcoders] Re: repeater child click event
Sorry, I responded before trying, duh. Here's some working code (modified from the docs Referencing repeated components): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* layout=absolute mx:Script ![CDATA[ [Bindable] private var dp:Array = [1, 2, 3, 4, 5, 6, 7, 8, 9]; private function onClick(b:*):void { trace(b); } ]] /mx:Script mx:Panel title=Repeater Example width=75% height=75% paddingTop=10 paddingLeft=10 paddingRight=10 paddingBottom=10 mx:Text width=100% color=blue text=Use the Repeater class to create 9 Button controls in a 3 by 3 Tile container./ mx:Tile direction=horizontal borderStyle=inset horizontalGap=10 verticalGap=15 paddingLeft=10 paddingTop=10 paddingBottom=10 paddingRight=10 mx:Repeater id=rp dataProvider={dp} mx:LinkButton id=myLB height=50 width=50 label={String(rp.currentItem)} click=onClick(event.target);/ /mx:Repeater /mx:Tile mx:Button label=onClick click=onClick(myLB[0]);/ /mx:Panel /mx:Application On 6/6/07, nhp_ny [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, nhp_ny [EMAIL PROTECTED] wrote: mx:Repeater ... mx:LinkButton id=myLB click=onClick(Event.currentTarget)/ /mx:Repeater how can i fire the click event of repeater child component myLB[0]? just to simulate a mouse click on that component. is it possibile that nobody here knows how to do this? i just need to call the onClick function passing it the first child component of the repeater that should be myLB[0]. -- Derek Vadneau
[flexcoders] Re: repeater child click event
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Monday 04 Jun 2007, nhp_ny wrote: mx:Repeater ... mx:LinkButton id=myLB click=onClick(Event.currentTarget)/ /mx:Repeater how can i fire the click event of repeater child component myLB [0]? just to simulate a mouse click on that component. Err, just call onClick() yourself ? -- Tom Chiverton Helping to collaboratively improve integrated products on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. i can't, as you can see, the onClick receives an object as a parameter that is the actual clicked linkbar of the repeater. so to do what you say, i must do: onClick(myLB[0]); but that gives me error
Re: [flexcoders] Re: repeater child click event
On Tuesday 05 Jun 2007, nhp_ny wrote: Err, just call onClick() yourself ? but that gives me error Firstly, always give the error message, when you just say 'gives me an error' it's not helpful. There are many errors :-) Why can't you do 'onClick(new LinkBar())' ? If your function relies on some property of the linkbar, you'll have to create the new LinkBar as a new variable, and fill in those properties. -- Tom Chiverton Helping to evangelistically enhance granular eyeballs on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: repeater child click event
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 05 Jun 2007, nhp_ny wrote: Err, just call onClick() yourself ? but that gives me error Firstly, always give the error message, when you just say 'gives me an error' it's not helpful. There are many errors :-) Why can't you do 'onClick(new LinkBar())' ? If your function relies on some property of the linkbar, you'll have to create the new LinkBar as a new variable, and fill in those properties. -- Tom Chiverton Helping to evangelistically enhance granular eyeballs on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. i don't paste errors because they are in italian anyway it has something to do with null objects. i need to pass to the onclick function, a linkbutton from the repeater list. there are n linkbuttons and i just need to pass the first one, so the myLB[0]. Because i have to simulate a myLB[0] linkbutton click the onClick function, receives the actual click linkbutton. and all i need to do is do that by code. Hope i've been clear now.
Re: [flexcoders] Re: repeater child click event
On Tuesday 05 Jun 2007, nhp_ny wrote: i need to pass to the onclick function, a linkbutton from the repeater list. there are n linkbuttons and i just need to pass the first one, so the myLB[0]. Because i have to simulate a myLB[0] linkbutton click You might want to look in the repeaters child list. -- Tom Chiverton Helping to assertively monetize performance-oriented synergies on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: repeater child click event
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 05 Jun 2007, nhp_ny wrote: i need to pass to the onclick function, a linkbutton from the repeater list. there are n linkbuttons and i just need to pass the first one, so the myLB[0]. Because i have to simulate a myLB[0] linkbutton click You might want to look in the repeaters child list. -- Tom Chiverton Helping to assertively monetize performance-oriented synergies on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. :( nothing... can't find a solution for it. maybe i can find another way... for example... is there a way to let the repeaters first child , myLB[0], to be disabled? i tried myLB[0].enabled = false, but nothing.