Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 JavaScript Not Working Problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ranko
Junior Member

400 Posts

Posted - 11 April 2006 :  13:29:54  Show Profile
So I am redoing the forum to full CSS layout. And today I noticed that the javascripts don't work when I remove the tables. And I am sure that is all I did as I have a clean install too to compare the layout and colors and stuff..

Edit. Just noticed this; when the code for the javascript looks like this:
Response.Write	"<script language=""JavaScript"" type=""text/javascript"">" & vbNewLine & _
		"<!-- hide from JavaScript-challenged browsers" & vbNewLine & _
		"function openWindow(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=400,height=400')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow2(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=400,height=450')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow3(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=400,height=450,scrollbars=yes')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow4(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=400,height=525')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow5(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=450,height=525,scrollbars=yes,toolbars=yes,menubar=yes,resizable=yes')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow6(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=500,height=450,scrollbars=yes')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindowHelp(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=470,height=200,scrollbars=yes')" & vbNewLine & _
		"}" & vbNewLine & _
		"// done hiding -->" & vbNewLine & _
		"</script>" & vbNewLine & _


It works; when I edit & vbNewLine & _ to & _ it stops.

Edited by - Ranko on 11 April 2006 13:33:49

AnonJr
Moderator

United States
5768 Posts

Posted - 11 April 2006 :  13:52:56  Show Profile  Visit AnonJr's Homepage
I'm a little fuzzy at the moment from lack of sleep/caffeine (either one would be fine at this point), but would it have anything to do with properly terminating the statements with a ";"?
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 11 April 2006 :  15:30:27  Show Profile
I don't know; I moved it to an external file and it works like a charm. So I don't really care anymore.
Go to Top of Page

Nertz
Junior Member

Canada
341 Posts

Posted - 11 April 2006 :  15:36:25  Show Profile
I think Anon hit the nail on the head. The newline characters are acting as statement terminators, and if taken out you'd need to insert semi-colons at the right places.

Sadly, most Family Court Judges wrongfully reward opportunistic gold diggers
that use our children unjustly as "instruments" of power.


www.fathers-4-justice-canada.ca
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 11 April 2006 :  16:25:59  Show Profile  Visit AnonJr's Homepage
quote:
Originally posted by Ranko

I don't know; I moved it to an external file and it works like a charm. So I don't really care anymore.
I guess that's a good solution too... as long as it works.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.38 seconds. Powered By: Snitz Forums 2000 Version 3.4.07