Re: [IronPython] Get a string from JavaScript to IronPython

2009-01-07 Thread Cenovsky, Lukas
sers-boun...@lists.ironpython.com] On Behalf Of Dino Viehland > Sent: Tuesday, January 06, 2009 6:45 PM > To: Discussion of IronPython > Subject: Re: [IronPython] Get a string from JavaScript to IronPython > > Strangely I don't see one - this is frequently asked for so >

Re: [IronPython] Get a string from JavaScript to IronPython

2009-01-06 Thread Dino Viehland
Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Tuesday, January 06, 2009 3:07 PM To: Discussion of IronPython Subject: Re: [IronPython] Get a string from JavaScript to IronPython Dino Viehland wrote: > Strange

Re: [IronPython] Get a string from JavaScript to IronPython

2009-01-06 Thread Michael Foord
riginal Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Cenovsky, Lukas Sent: Tuesday, January 06, 2009 9:13 AM To: Discussion of IronPython Subject: Re: [IronPython] Get a string from JavaScript to IronPython Unfortunately we can't

Re: [IronPython] Get a string from JavaScript to IronPython

2009-01-06 Thread Kristian
Thanks for the reply. I actually got it to work straight away :-) On Jan 6, 4:07 pm, Michael Foord wrote: > Kristian wrote: > > I have a code editor written in JavaScript on my page and I want to > > send the code that it is typed in as a string to IronPython so that it > > can be executed from I

Re: [IronPython] Get a string from JavaScript to IronPython

2009-01-06 Thread Dino Viehland
hon Subject: Re: [IronPython] Get a string from JavaScript to IronPython > Unfortunately we can't apply attributes to Python classes. I > get round > this particular problem by creating stub classes in C# and inheriting > from them in Python. See: > > http://www.voidspace.org.uk/ironp

Re: [IronPython] Get a string from JavaScript to IronPython

2009-01-06 Thread Cenovsky, Lukas
> Unfortunately we can't apply attributes to Python classes. I > get round > this particular problem by creating stub classes in C# and inheriting > from them in Python. See: > > http://www.voidspace.org.uk/ironpython/silverlight/scriptable.shtml Is there a CodePlex issue to resolve this? --

Re: [IronPython] Get a string from JavaScript to IronPython

2009-01-06 Thread Michael Foord
Kristian wrote: I have a code editor written in JavaScript on my page and I want to send the code that it is typed in as a string to IronPython so that it can be executed from IronPython. I got this to work in C# but not in IronPython. Below is the JavaScript I use: var t

[IronPython] Get a string from JavaScript to IronPython

2009-01-06 Thread Kristian
I have a code editor written in JavaScript on my page and I want to send the code that it is typed in as a string to IronPython so that it can be executed from IronPython. I got this to work in C# but not in IronPython. Below is the JavaScript I use: var textarea = document