Hi all,
I've got some remote content pages that are created by a framework called Symfony and have Ajax parts to them. They make a change to a database and the response is the confirmed change, for example it might send back the word "coal". The response is put into the cell on screen and the user sees the new state of the database. Well that's how it works without being within MySource Matrix. When it is seen as a remote content asset, the response from the Ajax call is surrounded by the menus and design that the whole site has, and all that gets crammed into one table cell.
So my question is this: How can my remote content page make an AJAX request and get a tunneled response without that response being surrounded by the website design?
It sounds like you don't want any of your Ajax requests to be tunneled. You don't want the Remote Content page to touch them at all because you have no need for all the template work it does. This assumes though that the user can access the URL directly in their browser and it is not restricted to only being accessed from the Matrix server.
Can you turn tunneling off? If not, you can you craft the Ajax request in such a way that the Remote Content page is unable to replace the URL in the source. Just use JS to construct the remote URL you are going to make the request to, breaking up the domain and path of the URL. That way, Remote Content cannot see the complete URL in the source and it will not attempt to replace it with a redirect to itself.
You can apply a blank design on the AJAX response page, then the response will only contain what your Ajax code printed out
Create a new design and Edit the parse file, paste in the following code
Then apply this design onto the ajax response page. Let me know how it goes.
--------------------------------------
I just saw Greg's response, i think i misunderstood your question.
Tunneling can't be turned off because we've got external users and the content is on machines hidden within our network that MySource can see but the outside world can't.
Your solution of crafting the Ajax request seems to rely on tunneling not being needed, but in our case it is 
A one off "do not apply any design to this" parameter that I could append onto the tunneled URL would be nice. I see that can be done to change the active style, but that sets it for the session and if some refreshes the main page this new design (or lack of) will be applied to the whole page which will remove all the useful menus at the top/side/bottom.
[quote]It sounds like you don't want any of your Ajax requests to be tunneled. You don't want the Remote Content page to touch them at all because you have no need for all the template work it does. This assumes though that the user can access the URL directly in their browser and it is not restricted to only being accessed from the Matrix server.
Can you turn tunneling off? If not, you can you craft the Ajax request in such a way that the Remote Content page is unable to replace the URL in the source. Just use JS to construct the remote URL you are going to make the request to, breaking up the domain and path of the URL. That way, Remote Content cannot see the complete URL in the source and it will not attempt to replace it with a redirect to itself.[/quote]