Re: [IronPython] IronPython to JavaScript

2009-03-09 Thread Jimmy Schementi
users-boun...@lists.ironpython.com] On Behalf Of Michael Foord [fuzzy...@voidspace.org.uk] Sent: Sunday, March 08, 2009 4:39 PM To: Discussion of IronPython Subject: Re: [IronPython] IronPython to JavaScript Jimmy Schementi wrote: > Kristian wrote: > >> Just curios... Has anyone had time to

Re: [IronPython] IronPython to JavaScript

2009-03-08 Thread Michael Foord
Jimmy Schementi wrote: Kristian wrote: Just curios... Has anyone had time to look at my sample yet? Yes, and sorry for the horrifically late reply ... http://jimmy.schementi.com/silverlight/scriptable source is here: http://jimmy.schementi.com/silverlight/scriptable.zip There was a

Re: [IronPython] IronPython to JavaScript

2009-03-01 Thread Michael Foord
Jimmy Schementi wrote: Kristian wrote: Just curios... Has anyone had time to look at my sample yet? Yes, and sorry for the horrifically late reply ... http://jimmy.schementi.com/silverlight/scriptable source is here: http://jimmy.schementi.com/silverlight/scriptable.zip There was a

Re: [IronPython] IronPython to JavaScript

2009-03-01 Thread Jimmy Schementi
Kristian wrote: > Just curios... Has anyone had time to look at my sample yet? Yes, and sorry for the horrifically late reply ... http://jimmy.schementi.com/silverlight/scriptable source is here: http://jimmy.schementi.com/silverlight/scriptable.zip There was a few small changes I made to Mich

Re: [IronPython] IronPython to JavaScript

2009-01-25 Thread Kristian
onpython.com] On Behalf Of Kristian Jaksch > > Sent: Wednesday, January 14, 2009 2:04 PM > > To: Discussion of IronPython > > Subject: Re: [IronPython] IronPython to JavaScript > > > Ok, here we go. I attach a MINIMAL sample for you guys :-) > > > It should just send

Re: [IronPython] IronPython to JavaScript

2009-01-14 Thread Jimmy Schementi
Thanks, I'll take a look at it. > -Original Message- > From: users-boun...@lists.ironpython.com [mailto:users- > boun...@lists.ironpython.com] On Behalf Of Kristian Jaksch > Sent: Wednesday, January 14, 2009 2:04 PM > To: Discussion of IronPython > Subject: Re: [Ir

Re: [IronPython] IronPython to JavaScript

2009-01-14 Thread Jimmy Schementi
n > Subject: Re: [IronPython] IronPython to JavaScript > > Thanks again for the reply. > > I must be getting something seriously wrong. I did what you said and I > don't get any Javascript error but I still get the same error as > before from Ironpython: > > "

Re: [IronPython] IronPython to JavaScript

2009-01-14 Thread Kristian Jaksch
Thanks again for the reply. I must be getting something seriously wrong. I did what you said and I don't get any Javascript error but I still get the same error as before from Ironpython: "SystemError: Object reference not set to an instance of an object." I looked at the source code of your Web

Re: [IronPython] IronPython to JavaScript

2009-01-13 Thread Michael Foord
Ahhh... there is a detail I missed out in that article. You can only hook up the Javascript function after the Silverlight control has loaded. This is *possibly* the cause of your problems. I do the hooking up in an onload function: function onload() { co

Re: [IronPython] IronPython to JavaScript

2009-01-13 Thread Kristian Jaksch
Thanks for the reply! No, I can't get it to work with Javascript either. I added the script below to my page: function some_function(sender, args) { value = args.val; alert(value); } control = document.getEleme

Re: [IronPython] IronPython to JavaScript

2009-01-12 Thread Michael Foord
xkrja wrote: I'm trying to call javascript from IronPython (via Silverlight 2) but I can' get it to work properly. I looked at this example: http://www.voidspace.org.uk/ironpython/silverlight/scriptable.shtml#id10 http://www.voidspace.org.uk/ironpython/silverlight/scriptable.shtml#id10 It's e

[IronPython] IronPython to JavaScript

2009-01-12 Thread xkrja
I'm trying to call javascript from IronPython (via Silverlight 2) but I can' get it to work properly. I looked at this example: http://www.voidspace.org.uk/ironpython/silverlight/scriptable.shtml#id10 http://www.voidspace.org.uk/ironpython/silverlight/scriptable.shtml#id10 It's explained very c