envexlabs Posted February 1, 2008 Share Posted February 1, 2008 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 Link to comment https://forums.phpfreaks.com/topic/88891-prototype-update-from-inside-an-ajaxphp-file/ Share on other sites More sharing options...
phpQuestioner Posted February 1, 2008 Share Posted February 1, 2008 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 Link to comment https://forums.phpfreaks.com/topic/88891-prototype-update-from-inside-an-ajaxphp-file/#findComment-455658 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.