/    Sign up×
Community /Pin to ProfileBookmark

Does work one server but doesn’t on another

Hi

I have a problem with javascript, which runs perfectly when I deploy app on one server. Same code deployed on another server gives problem. I am using same browser(IE6).

Error is

Could not get the textAlign propert. Invalid argument.

Code is:

var td = document.createElement(‘td’);

td.className = ‘black’;
td.style.padding = ‘4px’;
td.style.whiteSpace = ‘nowrap’;
td.nowrap = “true”;
td.style.backgroundColor = bgColor;
td.gridBackgroundColor = td.style.backgroundColor;
td.lastBackgroundColor = td.style.backgroundColor;
td.style.borderLeftColor = ‘#606465’;

td.style.textAlign = this.cols[this.colCounter].headerAlign;
td.style.borderBottomColor = ‘#606465’;
td.style.borderBottomStyle = ‘solid’;

your help is verymuch appriciated.

Thanks

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

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