Forum Moderators: open

Message Too Old, No Replies

Content feed script question

How to feed long pieces of html code using document.write

         

jacknoir

10:47 am on Apr 24, 2004 (gmt 0)

10+ Year Member



Hi there,

I am trying to serve content from my database to other webmasters using Javascript and PHP - I have used the script described at [devarticles.com...]

I have no problems getting single line content to appear on external websites. The problem is that I also have some long texts with html code in the database that I would like to offer as content - but since document.write will only return single lines, how do I achieve that?

Hope this makes sense.

Best regards
Per

Bernard Marx

11:25 am on Apr 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try this:
[code]
<script>
document.write('<p id="para">This is a multi\
line document.write statement.<br>\
It might help.</p>')
</script>
[\code]