[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

JavaScript scripting engine suggestion

Tomas

6/15/2008 5:28:00 AM

Hi,

I am searching for component which could execute JavaScript(not
JavaScript.NET) in .NET application.
For example I have JS below, I need to pass MyData variable from .NET
application, execute JS and read Answer value. Is it possible?

function myCon(MyData) {

Answer:= MyData+1;

}

Regards,
Tomas


2 Answers

Alun Harford

6/15/2008 1:54:00 PM

0

Tomas wrote:
> Hi,
>
> I am searching for component which could execute JavaScript(not
> JavaScript.NET) in .NET application.
> For example I have JS below, I need to pass MyData variable from .NET
> application, execute JS and read Answer value. Is it possible?

(Surely you'd just want to execute the function and get the result?)

>
> function myCon(MyData) {
>
> Answer:= MyData+1;
>
> }

If you could write your .NET app for silverlight, you can interact with
javascript (and the DOM) pretty easily.

If you can't write your app for silverlight, I don't know of an easy way
to do this in the general case. In the past, I've often considered
writing a wrapper for SpiderMonkey (which wouldn't be too hard), but I
never got around to it and I'm not working with Javascript these days.

Alun Harford

DVH

7/31/2009 11:20:00 AM

0


"Chris X" <Chris_X2006@ahoo.co.uk> wrote in message
news:XcGdnVO_HrIYU-_XnZ2dnUVZ8lqdnZ2d@giganews.com...
>
> "DVH" <dvh@vhvhvhvh.com> wrote in message
> news:4a72a3e3$0$31037$bed64819@news.gradwell.net...
>>
>> "Chris X" <Chris_X2006@ahoo.co.uk> wrote in message
>> news:OLGdne899qQ8KuzXnZ2dnUVZ8hGdnZ2d@giganews.com...
>>> Lance Corporal Glenton may well end up being dishonourably discharged,
>>> but he's far too bright to be in the "Israeli" foreign legion (formerly
>>> the British Army) anyway. The last thing they want is people who can
>>> THINK for themselves, after all.
>>>
>>> http://news.bbc.co.uk/1/hi/england/north_yorkshire/8...
>>>
>>> A serving soldier who is refusing to return to Afghanistan has delivered
>>> a letter to the Prime Minister urging him to "bring our soldiers home".
>>> L/Cpl Joe Glenton, of the Royal Logistic Corps, delivered his letter to
>>> 10 Downing Street on Thursday.
>>>
>>> He said: "I know that the Afghan people are very resilient. I can't see
>>> us getting much further."
>>>
>>> The soldier, who lives in York, faces a preliminary court martial on
>>> Monday for refusing to go back to Afghanistan. In his letter he claims
>>> the war in Afghanistan is being fought in the interests of US foreign
>>> policy.
>>>
>>> L/Cpl Glenton is believed to be the first serving soldier to speak out
>>> against the government's policy.
>>>
>>> Taliban forces and the British Army are simply "grinding each other
>>> down" and achieving nothing, he said.
>>>
>>> The soldier went on: "I don't believe our cause is just. I think it's
>>> adversely affecting the Afghan people as well as the British Army and
>>> their families.
>>>
>>> "I think it has become part of the problem rather than the solution."
>>
>> Perhaps he should grow up.
>
> Perhaps you should admit to being a Zionazi.

Oops... nerve !