Javascript works in Browser Preview but not when posted to the internet

L

larrylyons

I have a javascript page that I used sucessfully on the net three years
ago. I am trying to use it again and although it works fine when I
preview it in a browser, It won't work when posted and downloaded from
the internet. Firefox's Javascript Console show's that the variables I
use in some document writes are not defined, however they are.
EXAMPLE:
<script Language ="javascript">
document.write(twStr)
</script>
 
L

Lee

(e-mail address removed) said:
Sorry. a lot of my question was cut off.
The page can be seen at
http://ca.geocities.com/[email protected]/GolfPool2006.html
It works when I email it and it is open in a browser.
I changed service providers could that make a difference?
It works when I save it to the desktop and open it in a browser.
It's driving me crazy. Any help would be appreciated.
LL

Firefox reports an unterminated string literal at line 205.
The comments are breaking the line before the closing quote.

203: function shWeek(){
204: newWindow =
window.open("","","scrollbars,resizable,height=300,width=200,top=5,left=50",align='center');
205: var newContent = "<html><head><title>This Week</title></head>";
newContent += '<body bgcolor="#ffffcc" leftmargin="1" align="center"
topmargin="0" marginwidth="0" marginheight="0">
206: <!-- following code added by server. PLEASE REMOVE -->
207: <!-- preceding code added by server. PLEASE REMOVE -->'
208: newContent += '<h3><center><a href="#" onClick="window.close()">Close
Window</a> </h3></center></body></html>';
209: newWindow.document.write(newContent)
210: for (i = 0; i< twPoint.length; i++) {
211: newWindow.document.write(twPoint[0]+" - "+twPoint[1]);
212: newWindow.document.write("<BR>")
213: }


--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,481
Members
44,900
Latest member
Nell636132

Latest Threads

Top