Example
The accordian below is a very simple example of using Jayrock to pass data between Javascript (client-side) code and ASP.NET (server-side) code. It's function is to dynamically load the content for a FAQ on demand - i.e. when the user clicks on the question, the answer for that question is loaded from the database and rendered on the page using Javascript.
- Who Let The Dogs Out?
-
- Do You Know Where You're Going To?
-
- Do You Know the Way To San Jose?
-
- Have you never been mellow?
-
The code that makes this work is detailed here
Download the source here