Hi all!
I have made some php scripts using ajax and what I did is so using ajax to get content and all the stuff but since I am not using blogs I had to make by myself those scripts.
The only problem is while I am trying to access the variable IN_MANAGER_MODE there is a problem that I can’t access it?
I use the XMLHTTPRequest to get the content but I don’t move accross the pages but only change the content.
Can anyone tell me how to reach to the IN_MANAGER_MODE from other selfmade php files or I have to get the content through the parser (if it is true can anyone tell me how to initialize and run the parser through my content?
creo que es $_SESSION[’mgrValidated’]==1
Well I put some javascript methods that use XMLHTTPRequest on Template and the links are the same withing the web application.
I am not sure if this XMLHTTPRequest destroyes first the existing session then creates new one so no variables can be passed on.
Can any tell how to call the parser of MODx because I have to make some modules that would need to be parsed but i don’t want to reload all page onl the part of content
I have added to modx the multi language support but for that reason I will need to load and change only content not the whole page that means to reload it.
So, I will need to parse it because over there there are snippet and chunks used.
or better said the content should be called through a php class like parseContent.php?id=202 and it should return the parsed content
If you still missing the point of my problems il describe the whole sistuation
I use javascript to get the menus and their links it is all perfect becasue there is a support for multilanguage modx
When i click at an hyperlink I don’t want to reload whole page but only to get the proper content for desired id and it should be shown at content using document.getElementByID("content").innerHTML
-
☆ A M B ☆
- 24,524 Posts
You’re talking AJAX there, and it will function totally outside of the MODx engine, and the variables will not be available to you, so your back-end request handlers would have to do their own checking for where you are. You should be able to include the /manager/includes/config.inc.php file to get access to the SESSION from your scripts, that would help.