Ok, you are right there a 2 xmlhttprequest made, one for the left menu and the second for the main page.
The reason is, cause both of them require some seller_id, and based on that will show on the left the category he has products for, and then in the main page we display his products only.
The website that all that is coming from will have many sellers, and I need to filter products and categories based on the id they get at the time of register, so i need the filter.
The xmlhttprequest id made to a local page that will be on the seller server, the the page that has been requested (at the moment) is using curl or fopen to get the page, cause javascript doesn't allow it for security reasons.
Do you have a better ideea?
I tried XML, but found it very complicated to get some features working right, when using ajax and xmlhttprequest is a lot easier and more flexible.
I am looking into getting the back button and history sorted out for those pages as well.