i'm new to javascript but have programmed lots in vb, cobol, basic, etc
jscript seems much more object oriented to me, much more direct manipulation
of properties at least, than vb, don't know about methods yet
i'm having trouble locating property 'trees' so to speak, at least for
html/web and jscript objects
like in this code:
function MM_preloadImages() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;
i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
ok so a document has .images and .MM_p and .MM_p has length, etc
and a function has .arguments and .agruments have .length, etc
and then i guess since .arguments, variable a, is multiple, a list, etc
when created (var a =) its automatically created as an array and then all
arrays? have .indexOf property
so what i can't seem to find in groups, google, my 'javascript definitive
guide' is
what are html document properties
what are jscript function properties, what are jscript array properties
is there a set way to find this stuff or is it dig em out little by little
one by one??? 2 5729
"bbxrider" <bb*******@comcast.net> wrote in message
news:RTWVa.21176$uu5.2976@sccrnsc04... i'm new to javascript but have programmed lots in vb, cobol, basic,
etc jscript seems much more object oriented to me, much more direct manipulation of properties at least, than vb, don't know about methods yet
i'm having trouble locating property 'trees' so to speak, at least for html/web and jscript objects like in this code: function MM_preloadImages() {
This looks like a Dreamweaver function. If attempting to learn
JavaScript, Dreamweaver code should not be examined or treated as an
example; it is some of the worst JavaScript in existence and also
appears to be authored with the intention that it not be understandable
(after all, why would Macromedia want people to understand
HTML/JavaScript/CSS? They would no longer need their products).
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } ok so a document has .images and .MM_p and .MM_p has length, etc
The document is given a 'MM_p' property by the code - if(!d.MM_p)
d.MM_p=new Array(); -. So, 'MM_p' is a property that refers to a new and
empty JavaScript Array.
<snip> so what i can't seem to find in groups, google, my 'javascript definitive guide' is what are html document properties
document properties vary from one browser to another and some of them
(form and image references, etc) depend on the HTML that defines the
document.
exsamples:-
Opera 7.11
<URL: http://www.litotes.demon.co.uk/o711/a.html?br=o71 >
Mozilla 1.2
<URL: http://www.litotes.demon.co.uk/m12/a.html?br=m12 >
IceBrowser 5.4
<URL: http://www.litotes.demon.co.uk/ic54/a.html?br=ic54 >
what are jscript function properties, what are jscript array
properties is there a set way to find this stuff or is it dig em out little by
little one by one???
The standard properties of JavaScript funcitons and Arrays are defined
in the ECMA Script specification.
<URL: http://www.jibbering.com/faq/#FAQ3_2 >
Richard.
thanks for your help, especially the tip about possible dreamweaver code and
other references
the thing that i seem to keep running into is something like this, there's a
..form hanging off document
then theres .elements hanging off of form, but the element properties are
really 'input' but thats not coded as such
and then some example code in oreilly adds a property to .elements on the
fly, so trying to follow this is slow
for me, so i guess what i was really asking if there is something like a
wall chart with all the property chains
presented as hierachies so that you can easily find
"Richard Cornford" <ri*****@litotes.demon.co.uk> wrote in message
news:bg**********@sparta.btinternet.com... "bbxrider" <bb*******@comcast.net> wrote in message news:RTWVa.21176$uu5.2976@sccrnsc04... i'm new to javascript but have programmed lots in vb, cobol, basic, etc jscript seems much more object oriented to me, much more direct manipulation of properties at least, than vb, don't know about methods yet
i'm having trouble locating property 'trees' so to speak, at least for html/web and jscript objects like in this code: function MM_preloadImages() {
This looks like a Dreamweaver function. If attempting to learn JavaScript, Dreamweaver code should not be examined or treated as an example; it is some of the worst JavaScript in existence and also appears to be authored with the intention that it not be understandable (after all, why would Macromedia want people to understand HTML/JavaScript/CSS? They would no longer need their products).
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } ok so a document has .images and .MM_p and .MM_p has length, etc
The document is given a 'MM_p' property by the code - if(!d.MM_p) d.MM_p=new Array(); -. So, 'MM_p' is a property that refers to a new and empty JavaScript Array.
<snip> so what i can't seem to find in groups, google, my 'javascript definitive guide' is what are html document properties
document properties vary from one browser to another and some of them (form and image references, etc) depend on the HTML that defines the document. exsamples:-
Opera 7.11 <URL: http://www.litotes.demon.co.uk/o711/a.html?br=o71 > Mozilla 1.2 <URL: http://www.litotes.demon.co.uk/m12/a.html?br=m12 > IceBrowser 5.4 <URL: http://www.litotes.demon.co.uk/ic54/a.html?br=ic54 >
what are jscript function properties, what are jscript array properties is there a set way to find this stuff or is it dig em out little by little one by one???
The standard properties of JavaScript funcitons and Arrays are defined in the ECMA Script specification.
<URL: http://www.jibbering.com/faq/#FAQ3_2 >
Richard.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: bj |
last post by:
I have several pages that I want to allow the same kind of activity,
so my basic question is how best to structure the interaction (and I
have one related subquestion as well).
Scenario: The...
|
by: Eli |
last post by:
Hi gurus,
My question is about exchanging data on a basic HTML page between a
JavaScript piece of code and a Java client-side <APPLET> residing on
the same webpage.
To demonstrate the idea of...
|
by: blueapricot416 |
last post by:
This is a very basic question -- but I can't find the answer after
looking for 20 minutes.
If you code something like:
function set_It() {
setTimeout('Request_Complete("apple", -72)',5000)
}...
|
by: John Bailo |
last post by:
http://www.informationweek.com/software/showArticle.jhtml?articleID=196600515
Developers Embrace Java, Drop Visual Basic
"Developers have abandoned Microsoft's Visual Basic in droves during...
|
by: craig.burrell |
last post by:
I'm not a Javascript programmer, and I have a basic question about how
scripts may make use of libraries in Javascript. I thank everyone for
humouring me.
Do all of the libraries required by a...
|
by: Bill H |
last post by:
25 years ago every computer came with some form of Basic interpreter
so you could use yoru computer without having to buy more software. Is
Javascript (teamed with HTML) set to become the new...
|
by: MikeB |
last post by:
Hello All, I am new to ajax and wanted to start by trying something simple.
I have a web form with an updatepanel and then inside the update panel I
have a listbox. Then outside of the updatepanel...
|
by: sheldonlg |
last post by:
This is kind of basic, and I googled but didn't find much help.
I have an array of text element fields. They all need to have the same
name. So, let the name be either all with a or build...
|
by: rmurgia |
last post by:
When a variable is created using Javascript, should it then be able to be read immediately using embedded VB code or does the submit command have to be entered or are the variables between...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |