473,735 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

would like to interpret the JavaScript code in c#.

I would like to interpret the JavaScript code in c#.
I have some methods in JavaScript; is it possible to execute those
methods which return a result programmaticall y.

String strJava=’var test; test = 999; return test;’ ;
String Res = Exec.JavaScript (strJava);
Console.Write(R es);
*** Sent via Developersdex http://www.developersdex.com ***
Feb 1 '06 #1
1 1707
You could convert this:


else I'd scour codeproject.com as there is an article there about
interpretting code via the CodeDom namespace (iirc)

Feb 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: kaiwing18 | last post by:
Hi , I use apache server , php and mysql to implement a multi-language web admin system, in order to display the required language, the file needed to save with unicode instead of ANSI. But the server cant interpret the php code properly. What should i do?
by: franzkowiak | last post by:
Hello, I've read some bytes from a file and just now I can't interpret 4 bytes in this dates like a real value. An extract from my program def l32(c): return ord(c) + (ord(c)<<8) + (ord(c)<<16) + (ord(c)<<24)
by: Alexander Fillips | last post by:
Hi, my short question: is there a python object which can interpret java-script? the whole story ;-) I wrote some streaming-scripts for the xbox mediaplayer which supports python. for a new script i tried to filter the stream-url from an
by: Hype | last post by:
PID : 7031 TID : 3007211424 PROC : db2start INSTANCE: db2inst8 NODE : 000 FUNCTION: DB2 UDB, oper system services, sqloPdbFreeCmdHandle, probe:10 MESSAGE : Error closing socket, OSSrc = DATA #1 : Hexdump, 4 bytes 0xBFFF6B1C : 2500 0F87 How do we intepret the last line ? How can I lookup error messages for these values ?
by: Jarod_24 | last post by:
My program (it's a webcrawler) downloads htmlpages and in some cases the html has <script> </script> tags in it that generates parts of the html. How can i interpret this javascript and get the resulting html. Im hoping for something very simple: Dim page as string = downloadWebPage(www.page.com\index.htm) 'raw html Dim newPage as string = interpreter.processScripts(page)
by: victor.zou | last post by:
hi,all: I want to know how IE,netscape ,firefox interpret javascript code and execute it , Is anyone know it .any message is welcome. thanks victor
by: hup | last post by:
One of my Linux (CentOS) server stop interpret php code any more. I did try to compile and installed other version of php, but it's still not working. # cat /tmp/phpinfo.php <? phpinfo() ?> # /usr/local/bin/php -v
by: mailawson | last post by:
I have this extract from an ASP code which I am trying to adapt for another purpose. I wish to know what the code in following lines doing in the function chkfunc stkObj = chk.id.substr(6); stkObj = 'txtqnt' + stkObj; The calling ASP .... <td><input type=checkbox id='chkqnt<%=i%>' name='chkqnt<%=i%>' onclick=chkfunc(this,<%=i%>)></td> <td><input type=text size=5 id='txtqnt<%=i%>' name='txtqnt<%=i%>' onblur=qntorder(this,<%=i%>)...
by: Twayne | last post by:
Hi, Complete newbie here, no C or related language background; starting from the basics. I DO have Visual Basic 6 (non .NET) and batch file experience, but that's all. I have the following statement in a piece of code I chose to analyze. It's from a captcha form script but it is a pretty standard thing in many such scripts. I understand the first line fine.
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.