mam taki uklad katlogow na serwerze

w folderze js znajduje sie scrypt
Kod
$().ready(function(){
$('#formularzGlowny').validate({
rules: {
imie:{
required:true,
minlength:10
},
email:{
required:true,
email:true
},
temat:{
required:true,
minlength:2
},
wiadomosc:{
required:true,
minlength:10
}
},
messages:{
imie:{
required: 'Pole wymgane',
minlength: 'Proszę podać minimum 10 znaków'
},
temat:{
required: 'Pole wymgane',
minlength: 'Proszę podać minimum 2 znaki'
},
wiadomosc:{
required:'Pole wymagane',
minlength:'Proszę podać minimum 10 znaków'
},
email:'Proszę wpisać prawidłowy adres e-mail'
},
submitHandler: function(){
var imie=$("#imieGlowny").val();
var email=$("#emailGlowny").val();
var temat=$("#tematGlowny").val();
var wiadomosc=$("#wiadomoscGlowny").val();
$.ajax({
url : '../classes/send_mail.php',
type : 'POST',
data : {imie:'imie',nazwisko:'nazwisko',email:'email',temat:'temat',wiadomosc:'wiadomosc'},
beforeSend:function(){
$("input[@type=text]:disabled");
$("#formularzGlowny").animate({
opacity:0.5
});
},
success: function(data){
alert(data);
$("#formularzGlowny").animate({
opacity:1
});
$(':input',"#formularzGlowny").not(':submit').val('');
},
error: function(jqXHR, exception) {
if (jqXHR.status === 0) {
alert('Not connect.\n Verify Network.');
} else if (jqXHR.status == 404) {
alert('Requested page not found. [404]');
} else if (jqXHR.status == 500) {
alert('Internal Server Error [500].');
} else if (exception === 'parsererror') {
alert('Requested JSON parse failed.');
} else if (exception === 'timeout') {
alert('Time out error.');
} else if (exception === 'abort') {
alert('Ajax request aborted.');
} else {
alert('Uncaught Error.\n' + jqXHR.responseText);
}
}
});
return false;
}
});
});
$('#formularzGlowny').validate({
rules: {
imie:{
required:true,
minlength:10
},
email:{
required:true,
email:true
},
temat:{
required:true,
minlength:2
},
wiadomosc:{
required:true,
minlength:10
}
},
messages:{
imie:{
required: 'Pole wymgane',
minlength: 'Proszę podać minimum 10 znaków'
},
temat:{
required: 'Pole wymgane',
minlength: 'Proszę podać minimum 2 znaki'
},
wiadomosc:{
required:'Pole wymagane',
minlength:'Proszę podać minimum 10 znaków'
},
email:'Proszę wpisać prawidłowy adres e-mail'
},
submitHandler: function(){
var imie=$("#imieGlowny").val();
var email=$("#emailGlowny").val();
var temat=$("#tematGlowny").val();
var wiadomosc=$("#wiadomoscGlowny").val();
$.ajax({
url : '../classes/send_mail.php',
type : 'POST',
data : {imie:'imie',nazwisko:'nazwisko',email:'email',temat:'temat',wiadomosc:'wiadomosc'},
beforeSend:function(){
$("input[@type=text]:disabled");
$("#formularzGlowny").animate({
opacity:0.5
});
},
success: function(data){
alert(data);
$("#formularzGlowny").animate({
opacity:1
});
$(':input',"#formularzGlowny").not(':submit').val('');
},
error: function(jqXHR, exception) {
if (jqXHR.status === 0) {
alert('Not connect.\n Verify Network.');
} else if (jqXHR.status == 404) {
alert('Requested page not found. [404]');
} else if (jqXHR.status == 500) {
alert('Internal Server Error [500].');
} else if (exception === 'parsererror') {
alert('Requested JSON parse failed.');
} else if (exception === 'timeout') {
alert('Time out error.');
} else if (exception === 'abort') {
alert('Ajax request aborted.');
} else {
alert('Uncaught Error.\n' + jqXHR.responseText);
}
}
});
return false;
}
});
});
w "public_html" znjduje sie index.php ktory laduje plik kontakt.php z "templates". W kontakt.php dodaje z folderu js w/w scrypt. Problem mam z fragmentem ajaxa gdzie podaje url scryptu jaki ma sie wykonac czyli "send_mail.php". "send_mail.php" znjduje sie w folderze classes.
Mam problem z okresleniem sciezki do pliku. Wywala bląd "Requested page not found. [404]"