[Javascript] printing blocks of text

Chris Tifer christ at saeweb.com
Fri Aug 1 08:15:56 CDT 2003


That's still basically the same thing he's talking about. For future
reference though, it'd be better if you escaped your quotes like
he mentioned. Replace " with \"

Chris Tifer
http://emailajoke.com

----- Original Message -----
From: "Alan Easton" <alan.easton at unn.ac.uk>
To: "'[JavaScript List]'" <javascript at LaTech.edu>
Sent: Friday, August 01, 2003 8:42 AM
Subject: RE: [Javascript] printing blocks of text


> I have done this kind of thing in the past:
>
> <script language=javascript>
> var oeTags = '<OBJECT
CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
>     + 'WIDTH="222" HEIGHT="38"'
>     +
>
'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c
> ab">'
>     + '<PARAM NAME="MOVIE" VALUE="contact.swf">'
>     + '<PARAM NAME="PLAY" VALUE="true">'
>     + '<PARAM NAME="LOOP" VALUE="false">'
>     + '<PARAM NAME="QUALITY" VALUE="high">'
>     + '<PARAM NAME="MENU" VALUE="false">'
>     + '<PARAM NAME="bgcolor" VALUE="#009966">'
>     + '<EMBED SRC="contact.swf"'
>     + 'WIDTH="222" HEIGHT="38"'
>     + 'PLAY="true"'
>     + 'LOOP="false"'
>     + 'QUALITY="high"'
>     + 'BGCOLOR="#009966"'
>     + 'MENU="false"'
>     + 'TYPE="application/x-shockwave-flash"'
>     +
>
'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod
> _Version=ShockwaveFlash">'
>     + '</EMBED>'
>     + '</OBJECT>';
>
>     document.write(oeTags);
> </script>
>
> Don't know if it helps, but you get the idea........
>
> Alan...
>
>
> -----Original Message-----
> From: Chris Tifer [mailto:christ at saeweb.com]
> Sent: 01 August 2003 13:34
> To: [JavaScript List]
> Subject: Re: [Javascript] printing blocks of text
>
>
> None that I know of. Not with JavaScript.
>
> Chris Tifer
> http://emailajoke.com
>
> ----- Original Message -----
> From: "Chris Basken" <chriz at basken.com>
> To: <javascript at LaTech.edu>
> Sent: Thursday, July 31, 2003 4:37 PM
> Subject: [Javascript] printing blocks of text
>
>
> > Hey all,
> >
> > In Perl, you can do things like:
> >
> >    print qq*
> >
> >    BUNCH OF PLAIN TEXT HERE
> >
> >    *;
> >
> > Is there a way to do something similar in JS?  If I have line after line
> of
> > HTML I want to write, I've usually just done lots of document.writes,
but
> > that involves escaping quotes and whatnot.  Is there a better way?
> >
> >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list