This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfmodule template="./tags/page.cfm"> | |
<cfoutput> | |
<h2> | |
Bouncing Back to Home | |
</h2> | |
<p> | |
<!--- Required for restoration visits - see note below. ---> | |
<a href="index.htm">Go back to home</a> → |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<turbo-frame id="async-frame"> | |
<p> | |
This is the async FRAME content. | |
</p> | |
<!--- | |
In order for these inline Turbo-Stream elements to be picked up and applied to the | |
live document, they have to be included inside of the Turbo-Frame element. | |
Otherwise, they will not be transcluded into the calling page and will, therefore, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfmodule template="./tags/page.cfm" section="home"> | |
<cfoutput> | |
<h2> | |
Welcome to This Site | |
</h2> | |
<ul> | |
<li> | |
<a href="video.htm?id=meghan-trainor" data-turbo-frame="player"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link rel="stylesheet" type="text/css" href="./demo.css" /> | |
<style type="text/css"> | |
/** | |
* Creating a STACKING CONTEXT around the body. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
param name="form.note" type="string" default=""; | |
param name="form.submitted" type="boolean" default=false; | |
if ( form.submitted ) { | |
if ( form.note.len() ) { | |
application.notes.prepend( form.note ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> SELECT | |
-> ( @path ) AS path, | |
-> SUBSTRING_INDEX( @path, '/', 1 ) AS segment_1, | |
-> SUBSTRING_INDEX( @path, '/', 2 ) AS segment_2, | |
-> SUBSTRING_INDEX( @path, '/', 3 ) AS segment_3, | |
-> SUBSTRING_INDEX( @path, '/', 4 ) AS segment_4, | |
-> SUBSTRING_INDEX( @path, '/', 5 ) AS segment_5 | |
-> \G | |
*************************** 1. row *************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfmodule template="./tags/page.cfm" section="home"> | |
<cfoutput> | |
<h2> | |
Welcome to Our Site! | |
</h2> | |
<p> | |
Copy, copy, copy.... | |
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
// Adding latency so that we can see the place-holder text and tell more clearly that | |
// the frame content is being loaded asynchronously. | |
sleep( 1000 ); | |
</cfscript> | |
<turbo-frame id="home-frame"> | |
<cfoutput> | |
<p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
requestSetTimeout( 5 ); | |
blockForSeconds( 4 ); | |
// CAUTION: !! DOES NOT WORK !! | |
requestSetTimeout( 5 ); | |
blockForSeconds( 4 ); | |
writeOutput( "Done" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<turbo-frame id="home-frame"> | |
<p> | |
This is lazy-loaded frame content. Copy, copy, copy .... | |
</p> | |
</turbo-frame> |