RE: [flexcoders] HTTPService: how to dynamically add params.
Title: Mercury Email Signature Well, it does, just not all in the same place! Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi Cohen Sent: Wednesday, November 30, 2005 4:03 AM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] HTTPService: how to dynamically add params. Thanks Matt and Tracy , works like a charm BUT - why the hell the documentation does not talk about this. Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, November 29, 2005 20:50 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] HTTPService: how to dynamically add params. Use bracket notation. Try: var oRequest:Object = new Object() oRequest[paramName] = value; Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi Cohen Sent: Tuesday, November 29, 2005 12:23 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] HTTPService: how to dynamically add params. Hi I have an application that gets a callback URL and a callback Parameter name. now after user do something i need to send the info to that URL and use the given external Parameter name - remember i don't know its name so an object cannot be constructed to pass to the http service. for example var paramName:String = "result"; // this one changes upon request var oRequest:Object = new Object({paramName ??? : value}) - what do i put there ? it takes the paramName as a string not as its value. srv.send(oRequest) even tried using eval to evaluate a dynamic _expression_ on oRequest - didn't help. even tried using the oRequest.addProperty(paramName); then evaluate and assign - didn't help . any ideas ? Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] HTTPService: how to dynamically add params.
Title: Mercury Email Signature Thanks Matt and Tracy , works like a charm BUT - why the hell the documentation does not talk about this. Shlomi From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy SprattSent: Tuesday, November 29, 2005 20:50To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] HTTPService: how to dynamically add params. Use bracket notation. Try: var oRequest:Object = new Object() oRequest[paramName] = value; Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi CohenSent: Tuesday, November 29, 2005 12:23 PMTo: 'flexcoders@yahoogroups.com'Subject: [flexcoders] HTTPService: how to dynamically add params. Hi I have an application that gets a callback URL and a callback Parameter name. now after user do something i need to send the info to that URL and use the given external Parameter name - remember i don't know its name so an object cannot be constructed to pass to the http service. for example var paramName:String = "result"; // this one changes upon request var oRequest:Object = new Object({paramName ??? : value}) - what do i put there ? it takes the paramName as a string not as its value. srv.send(oRequest) even tried using eval to evaluate a dynamic _expression_ on oRequest - didn't help. even tried using the oRequest.addProperty(paramName); then evaluate and assign - didn't help . any ideas ? Shlomi __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] HTTPService: how to dynamically add params.
Title: Mercury Email Signature Var oRequest = new Object(); oRequest[paramName] = value; Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi Cohen Sent: Tuesday, November 29, 2005 9:23 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] HTTPService: how to dynamically add params. Hi I have an application that gets a callback URL and a callback Parameter name. now after user do something i need to send the info to that URL and use the given external Parameter name - remember i don't know its name so an object cannot be constructed to pass to the http service. for example var paramName:String = "result"; // this one changes upon request var oRequest:Object = new Object({paramName ??? : value}) - what do i put there ? it takes the paramName as a string not as its value. srv.send(oRequest) even tried using eval to evaluate a dynamic _expression_ on oRequest - didn't help. even tried using the oRequest.addProperty(paramName); then evaluate and assign - didn't help . any ideas ? Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] HTTPService: how to dynamically add params.
Title: Mercury Email Signature Use bracket notation. Try: var oRequest:Object = new Object() oRequest[paramName] = value; Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shlomi Cohen Sent: Tuesday, November 29, 2005 12:23 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] HTTPService: how to dynamically add params. Hi I have an application that gets a callback URL and a callback Parameter name. now after user do something i need to send the info to that URL and use the given external Parameter name - remember i don't know its name so an object cannot be constructed to pass to the http service. for example var paramName:String = "result"; // this one changes upon request var oRequest:Object = new Object({paramName ??? : value}) - what do i put there ? it takes the paramName as a string not as its value. srv.send(oRequest) even tried using eval to evaluate a dynamic _expression_ on oRequest - didn't help. even tried using the oRequest.addProperty(paramName); then evaluate and assign - didn't help . any ideas ? Shlomi __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.