/    Sign up×
Community /Pin to ProfileBookmark

Does "getElementBy" work in firefox?

as the title says, does the javascript getElementBy work in firefox?

to post a comment
JavaScript

8 Comments(s)

Copy linkTweet thisAlerts:
@ananiasJul 13.2006 — getElementById does but I don't think getElementBy is a function in any browser.
Copy linkTweet thisAlerts:
@CrazyMerlinJul 13.2006 — getElementById and getElementsByName and getElementsByTagName all work in ff

if for somereason it isn't working (there is a situation in which it won't), use document.[elementname] where [elementname] is the name assigned to the element

but the correct DOM call is getElement(s)By....
Copy linkTweet thisAlerts:
@peteybauthorJul 14.2006 — still having problems with my script.

not sure how to link it but have got a thread in html forum about firefox with the code and a link to the site.

would appreciate if someone linked it if they go there and know how
Copy linkTweet thisAlerts:
@felgallJul 14.2006 — Those three methods work in ALL modern browsers that support Javascript. The latest browsers NOT to support them are IE4 and Netscape 4.
Copy linkTweet thisAlerts:
@konithomimoJul 14.2006 — Change this:

document.forms['calc'].elements[myArray[x][0]]

to this:

document.forms['calc'].myArray[x][0]
Copy linkTweet thisAlerts:
@KorJul 15.2006 — still having problems with my script.

not sure how to link it but have got a thread in html forum about firefox with the code and a link to the site.

would appreciate if someone linked it if they go there and know how[/QUOTE]

if you have posted the link there, how does it come that you can not post it here? :rolleyes:

Show us the link or the code. Here. Don't make us fumble through other forums.
Copy linkTweet thisAlerts:
@KorJul 15.2006 — Change this:

document.forms['calc'].elements[myArray[x][0]]

to this:

document.forms['calc'].myArray[x][0][/QUOTE]


Are you sure this a valid ideea? If [I]myArray[/I] is a variable, the first line (the genuine) is good. If [I]myArray[/I] is a name, both are wrong.
×

Success!

Help @peteyb 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.19,
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,
)...