Skip to content

Instantly share code, notes, and snippets.

View schams-net's full-sized avatar
:octocat:
always busy like hell.

schams.net schams-net

:octocat:
always busy like hell.
View GitHub Profile
@schams-net
schams-net / UsingAjaxUrl.html
Last active May 25, 2017 03:52 — forked from helhum/UsingAjaxUrl.html
Using TS rendering
{namespace t=Helhum\TyposcriptRendering\ViewHelpers}
<button class="ajax-button" data-ajaxUri="{t:uri.ajaxAction(action: 'foo', controller: 'MyController') -> f:format.htmlentities()}">
Click Me
</button>
<script type="text/javascript">
jQuery.ajax(
jQuery(".ajax-button").data("ajaxuri")
).done(