/    Sign up×
Community /Pin to ProfileBookmark

weird ‘one word on a line’ output

In Firefox and safari the codes works well, but in IE the output is written as one word per line, like this….

I’m
not
happy
about
the
Raiders
first
draft
pick

I think you get the point. The particular space is an <iframe> within a <table> within a <div>. The code is below…

<script type=”text/javascript”>
document.write(‘<table width=’+win_wide+’ height=’+win_high+’ cellpadding=”0″ cellspacing=”0″>’)
</script>
<tr>
<td>
<script type=”text/javascript”>
if (navigator.appName == “Safari”){
document.write(‘<iframe frameborder=”1″ marginheight=”1″ marginwidth=”1″ align=”top” id=”equip” name=”equip” width=’+win_wide+’ height=’+win_high+’></iframe>’)
} else{
document.write(‘<iframe src=”NSECstudentdbII_equip.asp?position=<%=info_position%>” frameborder=”0″ marginheight=”1″ marginwidth=”1″ align=”top” id=”equip” name=”equip” width=’+win_wide+’ height=’+win_high+’></iframe>’)
}
</script>
</td>
</tr>
</table>

Anyone have an idea why my output is one word at a time?

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@digitalentropyauthorApr 28.2007 — haha! I'm an idiot. The problem wasn't even that page. I was placing the loaded data into a table outside of a <div> tag and that was screwing up my formatting.
×

Success!

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