Hi everyone I am new with matrix and i want to implement ajax but i cannot implement it without having a server side programming. i am wondering if there is a way I can have a PHP file inside matrix. i am manipulating an xml file using ajax but the saving is not possible in javascript. that is why i need to have the saving in PHP. thanks in advance
AJAX implementation
No, you cannot use php inside of Matrix. You have to create a custom asset if you would like to use your own php code.
Can I ask why you are needing server side to do ajax? There are many ways in Matrix to do ajax with triggers...
[quote]No, you cannot use php inside of Matrix. You have to create a custom asset if you would like to use your own php code.
Can I ask why you are needing server side to do ajax? There are many ways in Matrix to do ajax with triggers…[/quote]
Thanks, sorry my fault have not read about the triggers yet.
Is there a trigger that will have the event onclick?thanks in advance..
No, you would have to use your own ajax script, but matrix could use that to do thing with triggers. E.g., we have an ajax script that lets us change status, delete, update, etc. any asset on a screen, all without moving from that screen or accessing the backend.
I guess I would like to hear what you specifically need to do with ajax.
[quote]No, you would have to use your own ajax script, but matrix could use that to do thing with triggers. E.g., we have an ajax script that lets us change status, delete, update, etc. any asset on a screen, all without moving from that screen or accessing the backend.
I guess I would like to hear what you specifically need to do with ajax.[/quote]
I already got it. But i did not use triggers to trigger the event just some ajax script. What I am doing is that we have a design with tabbing menus but i don't want to reload the whole page just to display that part. the div will have a dynamic content depending on what you have clicked. The content for each tab are saved as standard page. So in my script i am calling a standard page to be displayed.
You should be able to do that totally on the client side, without any server side scripting.
Here is a simple example: http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/