Depth Chart Demo

Depth Chart Demo

In this demo, we are integrating HTML5 and FileMaker to emulate a draggable “Depth Chart” to manage starting positions of football players.

We used a FMP URL to run a script each time the user moves a player up or down the list that grabs the record ids of the players, their order and creates an array that it passes as a variable to the FileMaker file. Then a script in FileMaker does all the hard work with the parsing.

We ‘localized’ the javascript, API Code and javascript function and reference each within the HTML calc we use in the web viewer. Then we set all the js and css values to local memory upon login to improve performance.

This can run on a network in FileMaker Pro or standalone WITHOUT web access on FileMaker Go.

Here is the source HTML I used:

<html lang=”en”>
<meta charset=”utf-8″ />
<title>jQuery UI Draggable + Sortable</title>
<link rel=”stylesheet” href=”” />
<script src=””></script>
<script src=””></script>
<link rel=”stylesheet” href=”/resources/demos/style.css” />
ul { list-style-type: none; margin: 0; padding: 0; margin-bottom: 10px; }
li { margin: 5px; padding: 5px; width: 150px; }
$(function() {
$( “#sortable” ).sortable({
revert: true
$( “#draggable” ).draggable({
connectToSortable: “#sortable”,
helper: “clone”,
revert: “invalid”
$( “ul, li” ).disableSelection();

<li id=”draggable” class=”ui-state-highlight”>Drag me down</li>

<ul id=”sortable”>
<li class=”ui-state-default”>Item 1</li>
<li class=”ui-state-default”>Item 2</li>
<li class=”ui-state-default”>Item 3</li>
<li class=”ui-state-default”>Item 4</li>
<li class=”ui-state-default”>Item 5</li>


Print Friendly