The code works fine with old page but same code dont work on new one?

codychicken

New Member
I am currently changing the looks and some functionality on my web site. The old one was created with MS FrontPage on a pc. Now I am using Dreamweaver on a Mac. I have an add record page that uses ASP. It has a validator javascript it refers to. The old page works fine on the same server while the new one (the codes are the same) does not run the validator. The js is in js subfolder. The same code works with the old page, but not on the new one? I am really confused here.What am I missing here? Please help. Thanks.\[code\] JavaScript is:{var MahkemeAdi = document.KayitGir.form_mahkeme_adi.value * 1if(document.KayitGir.form_mahkeme_adi.value.length < 12) { alert("KAYIT GIRISI HATASI! \nLUTFEN MAHKEME ADI ALANINDA BIR SECIM YAPINIZ!"); document.KayitGir.form_mahkeme_adi.focus(); return false; }return true; }\[/code\]The page's code is:\[code\]<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Language" content="tr" /><title>BilTak 2.0.1 Kay?t Giri?i</title><script language="JavaScript" src="http://stackoverflow.com/questions/12445770/js/kaygir_validator.js" type="text/javascript"></script><link href="http://stackoverflow.com/questions/12445770/css/biltak.css" rel="stylesheet" type="text/css"></head><body><form method="post" action="kayit_gir.asp" name="KayitGir" onSubmit="return KayGirValidator(this)"><select name="form_mahkeme_adi" class="TBFLAT"> <option value = "http://stackoverflow.com/questions/12445770/--SE??N?Z--" selected="selected">--SE??N?Z--</option> <% Dim rsM, sSqlM set rsM= server.createobject("adodb.recordset") sSqlM = "SELECT MahkemeAdi FROM [mahkeme] order by MahkemeAdi" rsM.open sSqlM, conn, adOpenStatic, adLockReadOnly, adCmdText Do Until rsM.EOF = True Response.Write "<option value="http://stackoverflow.com/questions/12445770/&chr(34)&rsM("MahkemeAdi")&chr(34)& ">" & rsM("MahkemeAdi") & "</option>" & VbCrlf rsM.Movenext Loop rsM.close set rsM = Nothing %> </select>\[/code\]
 
Back
Top