[jQuery] Re: [validate] remote checking and apache rewrite problem
No, there is no redirect involved, and i managed to identify the problem: The second script, which used Apache rewrite was displaying also some html content, not only 'true' or 'false' ... I didn't notice it first, because the only thing my php script was displaying was 'true' or 'false', but when i checked source code i immediatelly realised, that the php script was displaying also some html tags. That was my problem, i fixed the output and it's now working fine. Thanks for your answer. On 27. Nov, 17:07 h., Jörn Zaefferer [EMAIL PROTECTED] wrote: Is there a redirect involved? If so, my guess is that the XMLHttpRequest doesn't follow the redirect, just gets the 30x code and no response body. I don't think the plugins can do anything about that... Jörn On Thu, Nov 27, 2008 at 12:02 PM, jurkoferko [EMAIL PROTECTED] wrote: Hi i have a problem with remote checking. I have two identical scripts, both of them return 'true' or 'false': 1. /something.php 2. /script/something When i use the first PHP script in remote, javascript sends data to the PHP script and PHP sends data to javascript. Everything is working OK. But when i use the second PHP script in remote, which is executed the same way as the first, but the difference is, that this second script is handled through Apache's rewrite function, this second script sends data to PHP correctly but receives NO ANSWER. Although the script itself displays 'true' or 'false' when you call it directly from the browser. Is there any way that remote checking in jquery's validate will work with apache's rewrite ? Or am I doing something wrong ?
[jQuery] [validate] remote checking and apache rewrite problem
Hi i have a problem with remote checking. I have two identical scripts, both of them return 'true' or 'false': 1. /something.php 2. /script/something When i use the first PHP script in remote, javascript sends data to the PHP script and PHP sends data to javascript. Everything is working OK. But when i use the second PHP script in remote, which is executed the same way as the first, but the difference is, that this second script is handled through Apache's rewrite function, this second script sends data to PHP correctly but receives NO ANSWER. Although the script itself displays 'true' or 'false' when you call it directly from the browser. Is there any way that remote checking in jquery's validate will work with apache's rewrite ? Or am I doing something wrong ?
[jQuery] [validate]
Hello i have a question about the remote checking. My question is: does the remote method need the php script to have .php in its name ? (i.e.: something.php) In other words, does remote method work with Apache's Rewrite function? I have two identical scripts which both return TRUE or FALSE to jquery. Scripts: remote: /somedir/something.php - it works (jquery sends data and receives TRUE or FALSE correctly) remote: /rewritedir/something - doesn't work (jquery sends data and doesnt receive anything) The second example with apache's rewrite works only one way - jquery validation sends the data to the php script, but it cannot read the data back (at least for me). Can anyone please tell me if it can work this way? I really would like to preserve Apache's rewrite function...