$post 404 NOT FOUND why?
$post 404 NOT FOUND why?
Hello all
I have this problem where just I can't find why is not working
the following code makes me mad
In the first .external I got 404 NOT found file1.php
the second where is exactly the same working and finds file2.php
- // This not working
- $('.external').bind('click', function () {
var value = $(this).attr('href');
$(this).attr('target', '_blank');
$('#number').val(value);
$.post('file1.php', $('#numbers').serialize(), function (data) {
$('.rea').html(data);
});
});
- // this working
$('.outer').bind('click', function () {
var value = $(this).attr('href');
$(this).attr('target', '_blank');
$('#link').val(value);
$.post('file2.php', $('#links').serialize(), function (data) {
$('.rea').html(data);
});
});
NOTE: html forms is same, and yes file1.php exist
Please any idea???