473,738 Members | 7,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JScript-enabled Netscape

One of the banes of contemporary JavaScript programming for the Web is the
differences between JScript and JavaScript -- specifically, a number of
non-standard, but useful objects and/or methods (especially DHTML-related)
which are available in the former, but not the latter. Since JavaScript
engine in Gekko is very strong, I came to realize that the easiest way to
achieve platform independence would be to write specifically for JScript,
and then to have a JavaScript library with definitions of JScript's DHTML
extensions.

So I thought of writing such a library myself, but as it is quite a massive
task I first wanted to check with the group if anyone knows of such a thing
already existing somewhere?

Berislav
Jul 20 '05 #1
6 1401


Berislav Lopac wrote:
One of the banes of contemporary JavaScript programming for the Web is the
differences between JScript and JavaScript -- specifically, a number of
non-standard, but useful objects and/or methods (especially DHTML-related)
which are available in the former, but not the latter. Since JavaScript
engine in Gekko is very strong, I came to realize that the easiest way to
achieve platform independence would be to write specifically for JScript,
and then to have a JavaScript library with definitions of JScript's DHTML
extensions.


The MS reference docs for JScript are at
http://msdn.microsoft.com/library/de...eReference.asp
Do you find any DHTML extensions there?
So it seems you confuse host objects respectively the object models
http://jibbering.com/faq/#FAQ2_8
an application like a browser provides with the core language.

As for trying to emulate MSIE DOM features with Mozilla there are people
who have done that, one of the better attempts at that is at
http://webfx.eae.net/dhtml/ieemu/

However I would stronly suggest to use the W3C DOM as much as possible
if you are scripting for the Web now and not to start with IE
extensions. The W3C DOM should give you a solid base for IE5+, Netscape
6+, Opera 7 and other browsers like Konqueror, Safari.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
Martin Honnen wrote:
Berislav Lopac wrote:
One of the banes of contemporary JavaScript programming for the Web
is the differences between JScript and JavaScript -- specifically, a
number of non-standard, but useful objects and/or methods
(especially DHTML-related) which are available in the former, but
not the latter. Since JavaScript engine in Gekko is very strong, I
came to realize that the easiest way to achieve platform
independence would be to write specifically for JScript, and then to
have a JavaScript library with definitions of JScript's DHTML
extensions.
The MS reference docs for JScript are at

http://msdn.microsoft.com/library/de...us/script56/ht
ml/js56jslrfJScrip tLanguageRefere nce.asp Do you find any DHTML extensions there?
So it seems you confuse host objects respectively the object models
http://jibbering.com/faq/#FAQ2_8
an application like a browser provides with the core language.
I stand corrected and ashamed -- I should have known that.
However I would stronly suggest to use the W3C DOM as much as possible
if you are scripting for the Web now and not to start with IE
extensions. The W3C DOM should give you a solid base for IE5+,
Netscape 6+, Opera 7 and other browsers like Konqueror, Safari.


Very well, then -- but how about the XML-handling OM's? In my experience
they differ slightly in the two main browsers. I have seen WebFX's solution,
but they still leave out some very useful features found in JScript.

Berislav
Jul 20 '05 #3


Berislav Lopac wrote:
Martin Honnen wrote:
Berislav Lopac wrote:

So it seems you confuse host objects respectively the object models
http://jibbering.com/faq/#FAQ2_8
an application like a browser provides with the core language.

I stand corrected and ashamed -- I should have known that.


Very well, then -- but how about the XML-handling OM's? In my experience
they differ slightly in the two main browsers. I have seen WebFX's solution,
but they still leave out some very useful features found in JScript.


JScript has XML features? I thought above you noted that you now
understand the difference between a language and an object model. IE
(and only on Win) uses MSXML to load and parse XML, MSXML is COM based
so you can use it with JScript or VBScript or VB or even PHP on Win, so
those useful features have nothing to do with JScript.
I don't know what features you are missing, if you are ony interested in
the IE on Win and Mozilla based browsers and want a solution without
understanding for instance the powerful XPath implementation Mozilla has
by now you might want to look at
http://sarissa.sourceforge.net/
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #4
Martin Honnen wrote:
JScript has XML features? I thought above you noted that you now
understand the difference between a language and an object model. IE
(and only on Win) uses MSXML to load and parse XML, MSXML is COM based
so you can use it with JScript or VBScript or VB or even PHP on Win,
so those useful features have nothing to do with JScript.
I don't know what features you are missing, if you are ony interested
in the IE on Win and Mozilla based browsers and want a solution
without understanding for instance the powerful XPath implementation
Mozilla has by now you might want to look at
http://sarissa.sourceforge.net/


Sorry for my innacurate terminology, but yes, this is exactly what I had in
mind. I meant the IE (i.e. MSXML) specific extensions when used from
JScript, and specifically selectNodes and selectSingleNod e methods which
Sarissa provides. Thanks!

Berislav
Jul 20 '05 #5
Berislav Lopac wrote:
One of the banes of contemporary JavaScript programming for the Web is the
differences between JScript and JavaScript -- specifically, a number of
non-standard, but useful objects and/or methods (especially DHTML-related)
which are available in the former, but not the latter. Since JavaScript
engine in Gekko is very strong, I came to realize that the easiest way to
achieve platform independence would be to write specifically for JScript,
and then to have a JavaScript library with definitions of JScript's DHTML
extensions.

So I thought of writing such a library myself, but as it is quite a massive
task I first wanted to check with the group if anyone knows of such a thing
already existing somewhere?

Berislav


Something similar has been tried in the past, though I do not believe it
was successful. Others may disagree. It is still active, though I am
not sure how much. It is called DynAPI at site:

http://dynapi.sourceforge.net/dynapi/

It tried to make a new API to do everything via a standard interface. I
played with it a lot, and even implemented a website using it with
flash-style animations via JS. It worked well, but it was not as
portable as I would have liked... It didnt work well in opera, and had
problems with Linux Netscape versions.

You might want to read their code, as there will likely be a lot of
already-learned info for you.

Brian
Jul 20 '05 #6
In article <bu**********@l s219.htnet.hr>, be************@ dimedia.hr
enlightened us with...

So I thought of writing such a library myself, but as it is quite a massive
task I first wanted to check with the group if anyone knows of such a thing
already existing somewhere?


If you mean a library of cross-browser DHTML that does object checking
and stuff for you, then yes.
There are a couple already.

--
--
~kaeli~
A little rudeness and disrespect can elevate a meaningless
interaction to a battle of wills and add drama to an
otherwise dull day.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #7

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

Similar topics

20
5968
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client javascript code and work out what it does but I can't really write it from scratch.
4
5862
by: Harag | last post by:
Hi All I currently thinking of converting from my little knowledge of VBscript to jScript ASP. With this in mind I'm looking at my current code to see how it will convert over to Jscript. One thing I have spotted that I can't think of a way round is the ADO recordset.GetRows command.
3
2245
by: Christopher Brandsdal | last post by:
Hi! Maby this is wring newsgroup.. I'm using ASP / VBscript on my own cms system, but I needed to use some jscript to make something work... I'm new to jscript, so here is a simple question: (1) I want to count how many characters there is in a string. In ASP I just use <%=Len(Variabel)%> How do I do this in Jscript?
2
2383
by: Zach Mortensen | last post by:
I can't seem to get dynamically-compiled JScript code to use C#-defined custom attributes. I have a simple attribute and a class defined in a C# assembly: namespace MyNamespace { public abstract class MyCsharpAttribute : Attribute { }
4
1948
by: RFS666 | last post by:
Hello, I have the following problem: I have a web project where I display an activeX control that displays 2D-graphs on an aspx-page. I use jscript to access and modify the properties of the activeX-2D-control. In codebehind, I use C# for the application logic (eg. the database access). The query to the database retuns me an object of a C# class (called DBResultSet) that contains all the data from the query. This data has then to be...
6
1853
by: RFS666 | last post by:
Hello, After I posted yesterday "using C# class in jscript", I have a new problem: I have a C# class - DBResult - that contains (and other variables) a string array (and other variables), that contains data from a database query which is done in C# in codebehind. I create a jscript - script that is injected into the aspx-page. I need this to fill an activeX-control with data. I assign the string-array (and - for testing - a single...
7
3289
by: RFS666 | last post by:
Hello, I would like to use variables with a type in jscript.NET. I declare them as follows: var x : double = 5.03; This doesn't work in my script, that I write to the page in codebehind with "registerClientScriptBlock" as follows: string script = "<script language=jscript>"; script += "function test()";
5
1472
by: Maxwell2006 | last post by:
Hi, I have a requirement to develop an application component using only Server-Side Jscript (not Jscript.NET). What is Server-Side Jscript?
0
989
by: tvin | last post by:
Hello all, I have a problem to use jscript.js file in aspx page: I wrote jscript file in Notepad and I compiled this jscript file,after compiled and .exe in command prompt,i see that the result of this file is correct. after that i called this jscript.net file(jscript.js) in .aspx page. when this aspx file run ,it can't understand the code wrote in jscript.js.
1
3475
by: Andrew Wan | last post by:
How can VBScript code access JScript code variables in the same ASP page? <SCRIPT LANGAUGE="VBScript"> Dim a a = 10 </SCRIPT> <SCRIPT LANGUAGE="JScript"> Response.Write(a); </SCRIPT>
0
8969
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
8788
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
9476
Oralloy
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...
0
9335
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
9263
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,...
0
6053
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
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.