Skip to content

Instantly share code, notes, and snippets.

<rule name="www.example.com" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTP_HOST}" pattern="^www.example.com" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" />
</conditions>
<action type="Rewrite" url="/site-files/example_com/{R:0}" />
</rule>
<rule name="Image Cache" stopProcessing="true">
<match url="^assets/cache/([0-9]+)/([0-9]+)/(.+)" />
function getFile() {
var postData = "foo=bar&this=that";
var request = YAHOO.util.Connect.asyncRequest('POST', 'script.php', getFileCallback, postData);
}
getFileCallback = {
success: function(o) {
panel.setBody(o.responseText);
},
failure: function(o) {
DTS.control = {
...
init: function() {
if (placeEditor) { DTS.control.defaultEditor(placeEditor) };
if (loadBlocks) { DTS.control.refreshBlocks() };
},
defaultEditor: function(el) {
function nextSlide() {
myEditor.saveHTML();
window.setTimeout(function() {
var current = YAHOO.util.Dom.get('currentslide').value;
YAHOO.util.Dom.get(current).value = myEditor.get('textarea').value;
myEditor.setEditorHTML(YAHOO.util.Dom.get('nextslideid').value);
YAHOO.util.Dom.get('currentslide').value = 'nextslideid';
}, 200); // So that saveHTML has had time to run
}