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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.