/    Sign up×
Community /Pin to ProfileBookmark

can anyone tell me where i may find a list of javascript functions?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@KorNov 05.2006 — there is no javascript functions' list, as any coder may (and must) name the functions whichever he wants to (except for using the javascript reserved words).

I guess that you ment to say [B]methods[/B].

Well, it is hard to find somewhere a list of methods (as each object/element accepts it's own methods as native)

[COLOR=blue]I guess you have not understood the essence of javascript. Javascript works like that:



Document has [B]elements[/B] (tags, text...). Elements have [B]attributes/properties[/B]. Attributes have [B]values[/B].

In order to refere/create/change/remove the elements/attributes/values, javascript uses [B]methods[/B] (the methods are to be used according to the elements). Methods are nested in [B]functions[/B]. Functions are triggered by [B]events[/B], following the user's [B]actions[/B].

[/COLOR]


For instance;

var obj = document.getElementById('someid');

- getElementById() is a method to refere an element upon it's id

obj.setAttribute('readOnly','readonly')

- setAttribute() is a method to set/change an element's attribute. In the example it will set a form's control as readonly. Note that the "readOnly" attribute is native [I]only[/I] only for some of the form's controls, not for all the elements.

To be more intricate (that is why I have chosen the readonly example), IE and Moz (mainly, but there are other small differences or even bugs for other browsers as well) use sometimes different methods, so that there is no comprehensive list of methods, as there is no browser yet which is able to follow [B]all[/B] the standards. In that examaple, 'readonly' is the standard accepted attribute name, but IE needs the camelcase 'read[B][COLOR=Red]O[/COLOR][/B]nly'

That means you should start from studying elements (and their native attributes and methods) rather than start from studying methods.

Further more, javascript is a prototype oriented language, that means the objects can be also properties of other objects as well, so that this dual existance allows different methods, according to the way you have referenced/treated that element, as an object, or as a property.

Now? What we were talking about? Can you detail what you are really looking for?
Copy linkTweet thisAlerts:
@bpool_leeauthorNov 05.2006 — thanks but... after a very long search i managed to find what i wanted to find, it was the methods and properties of different objects.
Copy linkTweet thisAlerts:
@KorNov 05.2006 — exactly. Take care, there are some few but important differences between IE and Moz (or all the DOM compliant browsers) .
×

Success!

Help @bpool_lee spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...