Forum Moderators: coopster & phranque

Message Too Old, No Replies

Mile-long URL not accepted by Javascript?

         

irock

7:29 am on Jan 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



document.write("<font size=3 face='Trebuchet MS'><a HREF='http://[ip removed]/bin/findwhat.dll?clickthrough&y=11111&x=IfHOqnzd4fjgnhufbK: Cq16IuK:CGUCSlnhHtBjBlUScfJh55AT7hkYvXhU2dkwxXpuGsmUUb1hIoBMgX94DsfUgov3$C'> <font color=#DF3716><b>Quality 1X DVDRs $0.69, +R $2.29; 16X CDRs $0.15</b></font></a></font>"); document.write("<font size=3 face='Trebuchet MS'><a HREF='http://[ip removed]/bin/findwhat.dll?clickthrough&y=11111&x=IfHOqnzd4fjgnhufbK: Cq16IuK:CGUCSlnhHtBjBlUScfJh55AT7hkYvXhU2dkwxXpuGsmUUb1hIoBMgX94DsfUgov3$C'> <font color=#DF3716><b>Get your DVD here</b></font></a></font>");

When I try to output this line, I got a blank page. Do you think it's because of the mile-long URL? I cannot modify anything inside the URL, unforunately.

FYI, this part of the code only works when there's ONLY ONE document.write. (There are TWO document.write in this part shown here.)

Could anyone help?

Thanks!

[edited by: irock at 7:42 am (utc) on Jan. 7, 2003]

[edited by: jatar_k at 6:38 pm (utc) on Jan. 7, 2003]
[edit reason] fixed sidescroll [/edit]

Acecool

7:39 am on Jan 7, 2003 (gmt 0)

10+ Year Member



Im not sure about javascript BUT
in php if you have something like that, you need to BACKSLASH \ all extra double quotes ""s and or single quotes ''s

toadhall

8:03 am on Jan 7, 2003 (gmt 0)

10+ Year Member



It outputs the two links for me.

Gives this:
Quality 1X DVDRs $0.69, +R $2.29; 16X CDRs $0.15Get your DVD here

Are your script tags happy?

<script language="JavaScript">
document.write("Blah,blah,blah");
</script>

I tried it in IE and Opera 6.5

T