473,803 Members | 4,458 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

java script interpreter

Hi,

We are developing one application for smartphone. In this we are
parsing XMLs and rendering it as UI elements using smartphone SDK.
Everything is working fine. Now one more requirement has come. Java
script will also be included in the XMLs. We are searching for java
script interpreters so that we will give our script files to this
interpreters as input andthe output buffer will be pure XML. We have
got one java script interpreter, but it is not taking document.write
kind of things. It is compiling plain functions.

Can anyone help in this search for a java script interpreter for
windows which supports document.write kind of things.
regards
harish
Jul 23 '05 #1
6 2275
What do you use to send document to the smartphone, webserver?
document.write is function specific for a webbrowser, therefor there
is no standalone JavaScript interpreter that automatically supports
document.write.

What you could do is look into the MS scripting host.
You can just make a myconverter.js file and use it to output parse
the XML documents or you can let your webserver host ASP files. ASP
has JavaScript support and it can output XML.

If that is not what you want maybe you can explain clearer what it is
that you want to do?

Greetings,
Vincent
harish wrote:
Hi,

We are developing one application for smartphone. In this we are
parsing XMLs and rendering it as UI elements using smartphone SDK.
Everything is working fine. Now one more requirement has come. Java
script will also be included in the XMLs. We are searching for java
script interpreters so that we will give our script files to this
interpreters as input andthe output buffer will be pure XML. We have
got one java script interpreter, but it is not taking document.write
kind of things. It is compiling plain functions.

Can anyone help in this search for a java script interpreter for
windows which supports document.write kind of things.
regards
harish


Jul 23 '05 #2
ha*******@yahoo .com (harish) writes:
We are developing one application for smartphone. In this we are
parsing XMLs and rendering it as UI elements using smartphone SDK.
Everything is working fine. Now one more requirement has come. Java
script will also be included in the XMLs.
For clarity: "Javascript " is in one word. It is not related to "Java".
We are searching for java script interpreters so that we will give
our script files to this interpreters as input andthe output buffer
will be pure XML.
Pure Javascript (or rather: ECMAScript) doesn't have output
capabilities. The language, as defined by the ECMA 262 v3 standard, is
meant to be used in many different settings. The output capabilities
of ECMAScript interpreters in browsers is provided by the runtime
environment (aka. the DOM).
We have got one java script interpreter, but it is not taking
document.write kind of things. It is compiling plain functions.
Then you should extend its environment with a host function that
does the output when called.
Can anyone help in this search for a java script interpreter for
windows which supports document.write kind of things.


Wikipedia has links to several Jevascript/ECMAScript implementations :
<URL:http://en.wikipedia.or g/wiki/JavaScript#Usag e>
but I doubt that is what you need. Just extend the runtime environment
for the one you have.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #3
Vincent van Beveren wrote:
What do you use to send document to the smartphone, webserver?
document.write is function specific for a webbrowser,
No. document.write( ) ist part of both client-side JavaScript up
to version 1.3 and of server-side JavaScript up to version 1.4.
Beyond CSJS 1.3, it is part of W3C DOM Level 1 and 2 HTML which
is in no way restricted to Web browsers. There are more HTML
UAs than Web browsers.
therefor there is no standalone JavaScript interpreter that
automatically supports document.write.


Non sequitur.

BTW: Your From header is invalid.
PointedEars
Jul 23 '05 #4
Lasse Reichstein Nielsen wrote:
ha*******@yahoo .com (harish) writes:
We are developing one application for smartphone. In this we are
parsing XMLs and rendering it as UI elements using smartphone SDK.
Everything is working fine. Now one more requirement has come. Java
script will also be included in the XMLs.


For clarity: "Javascript " is in one word. It is not related to "Java".

^^^^^^^^^^
We are searching for java script interpreters so that we will give
our script files to this interpreters as input andthe output buffer
will be pure XML.


Pure Javascript (or rather: ECMAScript) doesn't have output
capabilities.


JavaScript (note the case) is _not_ ECMAScript. JavaScript is an
*implementation * of ECMAScript. Up to version 1.3 it contained
client-side output capabilities that are further known to be part
of a so-called "DOM Level 0", originating from DOM support back to
Netscape 3 and IE 3. But those capabilities were and, as some of
them are included in W3C DOM Level 1 and 2 HTML, intended for HTML
and XHTML documents and UAs, namely Netscape Navigator considered
an HTML UA, and most of them are not applicable to XML documents/
DOMs and UAs.
PointedEars
Jul 23 '05 #5
Thomas 'PointedEars' Lahn wrote:
Lasse Reichstein Nielsen wrote:

<snip>
Pure Javascript (or rather: ECMAScript) doesn't have
output capabilities.


JavaScript (note the case) is _not_ ECMAScript.
JavaScript is an *implementation * of ECMAScript.

<snip>

It seems a bit pointless to be stating that Netscape's trademark name
"JavaScript " applies to something specific and distinct in response to a
post where the trademark name was never used.

Richard.
Jul 23 '05 #6
Thomas 'PointedEars' Lahn <Po*********@nu rfuerspam.de> writes:
Lasse Reichstein Nielsen wrote:
Pure Javascript (or rather: ECMAScript) doesn't have output
capabilities.


JavaScript (note the case) is _not_ ECMAScript.


I am very deliberate about the case. I write "JavaScript " when I mean
Netscape's implementation and "Javascript " when I am talking about
the mess of different implementations of ECMAScript in current use.

I know it's a small difference in spelling, but I have found no better
way to make the distinction and still be able to talk about "Javascript "
in the abstract (like "Sure you can implement a countdown in Javascript
for your web page").
JavaScript is an *implementation * of ECMAScript.


Some versions are. Other versions predate ECMAScript v1. But I was not
talking about "JavaScript ", but about implementations of ECMAScript
(e.g., Core JavaScript, or "pure Javascript" as I allow myself to call
it in non-technical terms).

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 23 '05 #7

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

Similar topics

0
2974
by: John Doe | last post by:
Hello, I'm currently working on a little tool that would benefit from having a little embedded script language. Although I have C++ source code available for such a script language, I have 2 concerns: - The capabilities of the C++ script interpreter that I've written are rather limited (of course I can solve this) - My little script interpreter was written for readability rather than
4
3429
by: angel | last post by:
A java runtime environment includes jvm and java class (for example classes.zip in sun jre). Of course jython need jvm,but does it need java class. Thanx
0
2322
by: Falco98 | last post by:
This is for a class assignment; all we have to do is make a XML-to-SQL converter with a GUI, which can run either on Win2k or Sun 8 systems (interchangably). My partner is writing the GUI in Java obviously, but before I write the backend, I want to know if there happens to be any easy to get Java to execute a Perl script somehow (it would help if the user didn't have to take any additional steps to make this happen, such as having to...
3
1801
by: #pragma once | last post by:
That's all we are expecting from programs written in the managed code; Though a MVP advised not to say that, because after JIT compilation the code runs in the native! Funny, isn't? That means scripting languages run in the Host code and never in the native? That means scripting languages are poorer than .NET in speed just because they are hosted by an interpreter? What about .Net run time libraries? Can any one tell me the differences?...
16
4755
by: fernandez.dan | last post by:
Hey I'm sorry if this is not the appropriate news group for this question. I was wondering if anyone has any recommendation for embbedding a script engine in a c++ application. I want to feed my C++ application scripts which based on the script would create C++ objects and call the appropriate methods. At the moment I created a simple interpreter within our C++ aplication that we can feed our custom scripts. The interpreter is primitive...
1
6659
by: Uma | last post by:
DB2I.PROCEDURE1 - Build started. C:\SQLLIB\java\jdk\bin\javac -classpath ".;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip" "PROCEDURE1.java" DB2I.PROCEDURE1 - Javac completed. C:\SQLLIB\java\jdk\bin\jar cf SQL40620024042610.jar PROCEDURE1.class DB2I.PROCEDURE1 - Jar file created. Call sqlj.install_jar ('file:///C|/Documents and Settings/Utalasila/Application...
1
1413
by: Paul | last post by:
Hi, I want to store particular algorithms written in Java into a database (preferably MySQL) and then be able to accept values such as algorithm type and parameters from a user (via JDBC) which will select the algorithm from the database, excecute it and return the result. I understand that MySQL does not support Java object types, so does anybody have any suggestions on how I could implement this? Will I need to compile the code and...
34
3697
by: Anthony Irwin | last post by:
Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute the program with java -jar program.jar I am sort of hoping python has something like this because I feel it
3
2348
by: uzzi | last post by:
I don't know how to make a php script to work via cron...I want to make it run daily...My server API is CGI/Fast CGI.I have hosting from godaddy and in the help section i found that i have to specify the interpreter manually...look what it says: i've tried with /web/cgi-bin/php "$HOME/html/path/to/my/script.php as command and it doesn't work. if i run the script in browser it works...what should i introduce as a command..and do i have...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
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,...
0
10316
jinu1996
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...
1
10295
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,...
1
7604
isladogs
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...
0
6842
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();...
0
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
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
3
2970
bsmnconsultancy
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.