/    Sign up×
Community /Pin to ProfileBookmark

IE vs Firefox

Hi

i have this code that with Firefox work but with IE no;

function showPhoto (trElemnt){
if(isKeySent) return;

var photoID = “”;
var photoIDCell = trElemnt.cells[1];
alert(“photoID 1 ->” + photoIDCell.textContent);

with IE ” photoIDCell.textContent” is udefined.

can some help to undertstand ?

thanks in advance

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@jcgalFeb 17.2012 — Maybe the problem resides in the trElemnt.cells[1] part of code .

trElemnt may be null when you call showPhoto



Can you post a bigger part of code that includes the showPhoto invokation?
×

Success!

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