Jump to content

Making a javascript call from within obj.innerHTML return?


woolyg

Recommended Posts

Hi all,

I'm making an AJAX call into a DIV, which is returning text, just fine. What I'd like to do is, when the text is, say, equal to '123', I'd like to do another ajax call, into a different DIV, that writes a different bit of text.

 

The first Ajax Call is returning the following PHP:

$text = $_GET['text'];

if($text == "123"){

echo "<script>ajax_call_root('c/ajax.comment.logged_in.inc.php', 'vote_ajax_bottom');</script>";

}

 

where 'c/ajax.comment.logged_in.inc.php' is the new php file to call, and  'vote_ajax_bottom'' is the target DIV.

 

Can this be done?

 

 

Cheers

WOolyG

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.