/    Sign up×
Community /Pin to ProfileBookmark

need javascript help: write document to table

hi

i need help on my script. i would like to open [COLOR=”Red”]schedA[/COLOR] in a column (id=”target”) but it just keeps opening in a new window..or shows nothing at all ? what am i doing wrong?

codes:
[url]http://pastebin.com/m66cb2734[/url]

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@FangSep 21.2007 — function SchedA(){
for (i=0; i<24; i++) {
lines[i+1] = timeStart[i]
+t2+ sumTime(timeStart[i],timeDiff[1])
+t2+ sumTime(timeStart[i],timeDiff[2])
+t2+ sumTime(timeStart[i],timeDiff[3]) + nl;
}

<i> </i>text = "&lt;p&gt;&lt;strong&gt;Schedule: A&lt;/strong&gt;&lt;/p&gt;" + lines[1] +lines[2] + lines[3] + lines[4] + lines[5] + lines[6] +
<i> </i> lines[7] +lines[8] + lines[9] + lines[10] + lines[11] + lines[12] +
<i> </i> lines[13] +lines[14] + lines[15] + lines[16] + lines[17] + lines[18] +
<i> </i> lines[19] + "01:00"

document.getElementById('target').innerHTML=text;
}
×

Success!

Help @borjok 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...