I'm sorry in advance if this isn't the clearest post. I'm still having trouble getting my head around what I think is the problem.
I have a Div being populated by some AJAX, the div used to be loaded without the ajax and it all worked fine. But I wanted to have the navigation bar of my site change the content of the div without page reloads like normal links. Because of the site, navigation will be used frequently and I wanted to keep it fast.
I'm not sure but I presume this is because I populate the div using
document.getElementById(box_id).innerHTML = data;
So now I'm really not sure what to do. I cant send the data to the main page using sessions or any other method I can think of because all the PHP is loaded at the server. I also cant POST it to a new page because I need to get the element by id. There is even a PHP foreach loop in there haha
Anyone have any good ideas? I have been pretty stuck for the past few days.
I can also post the code if it will help but I didn't think it was necessary, its more of a theory question.