pouncer Posted November 28, 2006 Share Posted November 28, 2006 row.innerHTML = values[1] + ' ' + values[2] + ':' + text;why does that not work?' ' Link to comment https://forums.phpfreaks.com/topic/28774-spaces-in-javascript/ Share on other sites More sharing options...
obsidian Posted November 28, 2006 Share Posted November 28, 2006 Depending on what you're doing, it does work. Keep in mind, however that you are outputting markup, [b]not[/b] visually what the user will see, so you typically have to use non-breaking spaces instead:[code]row.innerHTML = values[1] + ' ' + values[2];[/code]And so forth Link to comment https://forums.phpfreaks.com/topic/28774-spaces-in-javascript/#findComment-131738 Share on other sites More sharing options...
pouncer Posted November 28, 2006 Author Share Posted November 28, 2006 thanks Link to comment https://forums.phpfreaks.com/topic/28774-spaces-in-javascript/#findComment-131796 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.