Problems with Document.Write, please help!

Results 1 to 4 of 4

Thread: Problems with Document.Write, please help!

  1. #1
    Harry Fauland Guest

    Default Problems with Document.Write, please help!

    Here&#039s a part of my code: <BR><BR>i always get an error that in the first Document.Write an " is required. Strange, don&#039t know how to solve this. (The code is in one line, the board cuts it off)<BR><BR>&#060;% for i=1 to 3 <BR><BR>if len(bild(i))&#062;15 then<BR> Document.Write "&#060;tr&#062;"<BR> Document.Write "&#060;td width=&#039 214&#039 <BR> height=&#039 19&#039 valign=&#039top&#039&#062;Bild:&#060;/td&#062;" <BR> document.write "&#060;td width=&#039 378&#039 height=&#039 19&#039&#062;&#060;a href=&#039" & <BR> bild(i) & "&#039 target=&#039_blank&#039&#062;&#060;IMG SRC=&#039"<BR> & bild(i+3) &"&#039&#062;&#060;/a&#062;&#060;/td&#062;"<BR> document.write "&#060;/tr&#062;" <BR>end if <BR>next %&#062;<BR><BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    463

    Default RE: Problems with Document.Write, please help!

    If your code is on the page exactly as shown, I would say you need some line continuation. You can not just hit enter in the middle of a string. You need to add a _ to continue the string onto the next line.<BR>Example:<BR>Document.Write "&#060;td width=&#039 214&#039 _<BR>height=&#039 19&#039 valign=&#039top&#039&#062;Bild:&#060;/td&#062;" <BR><BR>notice the _ at the end of line1<BR>

  3. #3
    Harry Fauland Guest

    Default RE: Problems with Document.Write, please help!

    As is said in the first post, i did write the code in one line. This messageboard cuts it off at the length of the textfield. i really don&#039t know why this code doesn&#039t work !

  4. #4
    Join Date
    Dec 1969
    Posts
    39

    Default RE: Problems with Document.Write, please help!

    hello <BR>It may be Response.write("bla ")<BR>I think unlsess u give &#060;%@language = "javascript"&#062;<BR>document.write don&#039t work <BR>right ???<BR>Srinath<BR>madhyastha@yahoo.com


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •