Re: PHP output fails from AJAX call
| From: | Adarsh Sharma | Date: | Thu, 30 Jan 2014 10:04:16 +0000 |
| Subject: | Re: PHP output fails from AJAX call | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322769@lists.php.net to get a copy of this message | ||
Tried but still not working :(
Actually i think value is clearly passing to the function and then to the
ajaxex.php. I tested by printing the exact value :
//document.write(queryString);
and it is showing the exact value of the user that you chooses. So , i dont
think problem lies in the value.
Access log clearly says it executed ajaxex.php without any issues :
1.4.12.25 - - [30/Jan/2014:09:58:31 +0000] "GET
/project/ajaxex.*php?q=133*HTTP/1.1" 200
*6093* "http://db11.app.com/project/"
"Mozilla/5.0 (Macintosh; Intel Mac OS
X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.102
Safari/537.36"
It trasferred about 6093 bytes after executing ajaxex.php but dont know
why it is not coming after clicking on the button.
Strange thing is if you execute directly
*http://db11.app.com/project/ajaxex.php?q=133
<http://db11.app.com/project/ajaxex.php?q=133>*
you will get the complete
report.
Thanks
On Thu, Jan 30, 2014 at 3:24 PM, Tim Streater <tim@clothears.org.uk> wrote:
> On 30 Jan 2014 at 09:39, Adarsh Sharma <eddy.adarsh@gmail.com> wrote:
>
> > var users = document.getElementById('users').value;
>
> You probably want:
>
> var ptr = document.getElementById('users');
> var ind = ptr.selectedIndex;
> var users = ptr.options[ind].value;
>
>
>
> --
> Cheers -- Tim
>