<span name = "menu">
<!-- javascript here -->
<!-- content called via ajax -->
</span>
<span name = "content">
<!-- content called via ajax -->
<!-- changed by buttons from the menu-->
</span>
Does anyone know how to display contents in the content span using ajax generated menu from the menu span? If I’m not wrong, selecting a span can only happen within the same span. Is there something like parentpage.span like mysql?
If I’ve understood your question correctly, you can access the
spanas you have it currently usingdocument.getElementsByName("content"). However, it would probably be easier to give thespananid, then do something like this in your AJAX success function: