Jump to content

Please look at this...is it possible?


shamsuljewel

Recommended Posts

suppose I use this line in my code

<a onClick=\"makeRequest3('add_frnds.php','running','$query','1');\" href='#'>Accept</a>

 

So by ajax add_frnds.php will execute and show result in a div.

 

its ok but I am now use a alert() in the add_frnd.php....but the alert() didn't worked..? >:(

 

But when I open the add_frnd.php normally it works..but in the div it don't...is it possible to work in the div???

Link to comment
https://forums.phpfreaks.com/topic/78767-please-look-at-thisis-it-possible/
Share on other sites

I use DIV's with AJAX all the time, but you didn't give us enough code to see how you are populating the divs

 

<div id="myDiv"></div>

 

javascript

document.getElementById('myDiv').innerHTML = <your results from AJAX return>

 

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.