Click here to Skip to main content
16,005,121 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
Questionhow to pass onclick parameter in zend framework Pin
rose19617-Feb-09 21:33
rose19617-Feb-09 21:33 
QuestionAJAX & PHP Pin
Bryant May14-Feb-09 8:18
Bryant May14-Feb-09 8:18 
AnswerRe: AJAX & PHP Pin
it_8x14-Feb-09 9:29
it_8x14-Feb-09 9:29 
GeneralRe: AJAX & PHP Pin
Bryant May15-Feb-09 4:17
Bryant May15-Feb-09 4:17 
GeneralRe: AJAX & PHP Pin
Perspx15-Feb-09 4:54
Perspx15-Feb-09 4:54 
GeneralRe: AJAX & PHP Pin
Bryant May16-Feb-09 1:49
Bryant May16-Feb-09 1:49 
AnswerRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 6:08
Ioannis_o519-Feb-09 6:08 
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 6:22
Bryant May19-Feb-09 6:22 
Hi there, thanks for getting back to me!

I'll try and be a bit clearer on what im asking...So, I have an Ajax function that calls a php script which contains a variable with a value (lets say $one = 1).

If I print this variable in my php script (print $one;) and output it in my Ajax function like so:

var result = XMLHttpRequestObject.responseText;
document.getElementById("div").innerHTML = result;


This will obviously output the variable value of 1 to "div".

But what i actually want to do is, in my ajax function say

var result = XMLHttpRequestObject.responseText;
if (result.$one == 1)
{
    somecodeHere;
}


Hopefully thats a little clearer. If you need me to explain further thats no problem.

Thank you

Bryant
GeneralRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 6:58
Ioannis_o519-Feb-09 6:58 
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 7:24
Bryant May19-Feb-09 7:24 
GeneralRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 7:58
Ioannis_o519-Feb-09 7:58 
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 8:49
Bryant May19-Feb-09 8:49 
GeneralRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 9:22
Ioannis_o519-Feb-09 9:22 
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 10:52
Bryant May19-Feb-09 10:52 
GeneralRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 22:30
Ioannis_o519-Feb-09 22:30 
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 23:08
Bryant May19-Feb-09 23:08 
AnswerRe: jumla in PHP Pin
EliottA14-Feb-09 7:36
EliottA14-Feb-09 7:36 
GeneralRe: jumla in PHP Pin
it_8x14-Feb-09 9:34
it_8x14-Feb-09 9:34 
QuestionFixed ip Address Pin
anishkannan13-Feb-09 18:26
anishkannan13-Feb-09 18:26 
AnswerRe: Fixed ip Address Pin
Curtis Schlak.27-Feb-09 12:53
Curtis Schlak.27-Feb-09 12:53 
AnswerRe: Fixed ip Address Pin
JasonPSage27-Feb-09 12:55
JasonPSage27-Feb-09 12:55 
AnswerRe: Fixed ip Address Pin
bcoide28-Feb-09 0:24
bcoide28-Feb-09 0:24 
Questiondatabase(PHP) Pin
JAYRAJ GIRI13-Feb-09 1:56
JAYRAJ GIRI13-Feb-09 1:56 
AnswerRe: database(PHP) Pin
Kristian Sixhøj13-Feb-09 14:15
Kristian Sixhøj13-Feb-09 14:15 
AnswerRe: database(PHP) Pin
Smithers-Jones15-Feb-09 8:53
Smithers-Jones15-Feb-09 8:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.