AJAX/JQuery question - Call me grasshopper
Permalink
With all these years of software engineering under my belt, I'm humbled to admit I need help on a design level question...
I'm not sure what is the correct approach... I'm building a custom block that has several divs that I hide/show based on what level of the interface I'm in. div1->div2->div3
div3 needs to hit the server based on what was clicked in div2. I was using document.getElementById("div3").innerHTML = req.responseText; after using XMLHttpRequest();
Everything returns fine, but the problem I'm having is while in the server php request, I appear to lose my Concrete5 references to logged in user, etc. ex: Page::getCurrentPage(); does not complete in the remote call.
My C++ and low level skills are plenty, but my general web based stuff is spotty with an admittedly weak understanding of sessions and how states are maintained in the browser/server world. I did some reading and searching in the forum on jQuery, but I'm not sure which tree to bark down.
Any help would be appreciated.
Thanks
-Steve
I'm not sure what is the correct approach... I'm building a custom block that has several divs that I hide/show based on what level of the interface I'm in. div1->div2->div3
div3 needs to hit the server based on what was clicked in div2. I was using document.getElementById("div3").innerHTML = req.responseText; after using XMLHttpRequest();
Everything returns fine, but the problem I'm having is while in the server php request, I appear to lose my Concrete5 references to logged in user, etc. ex: Page::getCurrentPage(); does not complete in the remote call.
My C++ and low level skills are plenty, but my general web based stuff is spotty with an admittedly weak understanding of sessions and how states are maintained in the browser/server world. I did some reading and searching in the forum on jQuery, but I'm not sure which tree to bark down.
Any help would be appreciated.
Thanks
-Steve