Jump to content

Prototype update from inside an ajax/php file


envexlabs

Recommended Posts

Hey,

 

I'm having some trouble update another div element from inside a php file.

 

I have index.php which has pic_container and next divs.

 

When you click on the next div, ajax outputs a new photo into pic_container.

 

From that same php file, i am trying to update next with either element.update or document.getElementById.('next).innerHTML

 

It works when outside the ajax/php file, but wont work when inside the ajax/php file.

 

Do i have to set something as global in javascript, or am i doing something wrong?

 

Thanks,

 

envex

 

First off; you probably will need to post some code; so people can look at what your talking about. Also this thread may be better off in the AJAX forum; which is located here:

 

http://www.phpfreaks.com/forums/index.php/board,51.0.html

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.