473,378 Members | 1,209 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Host V Language Objects

Howdy All!

JavaScript uses objects created by the host: Window, Document, Form and
Image objects
JavaScript creates other objects by itself: String or Date etc..

My question is: does it ever make a difference to the programmer whether you
using a host or a language object?

Thanks for any advice!

Rob
:)

Jul 20 '05 #1
3 1346
I was thinking in terms of:
DOM is created by the browser...
so DOM is also available in other script languages right? Perl, VBScript..
PHP?

Which means that knowledge of these objects are directly transferable to
other languages that also allow access to the DOM..

Is this correct?

Thanks!

Rob
:)
Jul 20 '05 #2
"Robert Mark Bram" <re********@REMOVE.THIS.optusnet.com.au> writes:
I was thinking in terms of:
DOM is created by the browser...
so DOM is also available in other script languages right? Perl, VBScript..
PHP?
That depends on the browser. IE probably reveals the DOMs tructure to
any script language that can be used with the Windows Scripting Host.
That includes VBScript and PerlScript. Since PHP is a server-side
script, it won't have access to the client's DOM representation.

Other browsers, not written for Windows only, only accepts the script
languages they understand themselves. That is often just Javascript.
Which means that knowledge of these objects are directly transferable to
other languages that also allow access to the DOM..

Is this correct?


Sure. There have been several examples in this group alone of
solutions that are part VBscript and part Javascript. They interact
through the DOM, and can even call each other.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3
> JavaScript uses objects created by the host: Window, Document, Form and
Image objects
JavaScript creates other objects by itself: String or Date etc..

My question is: does it ever make a difference to the programmer whether you
using a host or a language object?


Yes. There are some objects offered by IE that are toxic to JScript. Attempting
to access the standard object properties causes failure. I think this was just
laziness/stupidity on Microsoft's part, but it is something you must watch out
for.
Jul 20 '05 #4

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

Similar topics

49
by: Ville Vainio | last post by:
I don't know if you have seen this before, but here goes: http://text.userlinux.com/white_paper.html There is a jab at Python, though, mentioning that Ruby is more "refined". -- Ville...
16
by: Michele Simionato | last post by:
I have read with interest the recent thread about closures. The funny thing is that the authors are arguing one against the other but I actually agree with all of them and I have a proposal that...
7
by: Rune Strand | last post by:
What would it take to create a Firefox extension that enables Python as a script language in the browser - just like Javascript? Is it at all possible? Are the hundred good reasons not to bother? ...
3
by: ytrewq | last post by:
Should dynamic ("expando") properties be restricted to native and user-defined objects? Or should host objects - such as references to the browser or a plug-in or to the document and its elements -...
6
by: p988 | last post by:
When we talk about safe code regarding C#, what do we realy mean? Is safe code the same as managed code literally? Why people say that C# is a component-oriented language? What differences...
2
by: Fadi | last post by:
Backround: I am trying to figure out how to do the equivalant of a classic COM Local Server Singleton in .NET/C#. I created a coupld of simple Class Libs that exposes public interfaces and hosted...
2
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. ...
1
by: misiek3d | last post by:
Hello I want to use IronPython as Windows Scripting Host language. Is it possible? How can I do it? I know that ActivePython works as WSH language but for specific reasons I need to use...
2
by: LayneMitch via WebmasterKB.com | last post by:
Hello. I posted this earlier with the full code of the JavaScript file I'm trying to open. I'm posting this again, because the file is not the problem. I seem to be having a 'windows' problem...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.