edit-task
Home
Up
Delete
Task Name:
Task Description:
] javascript closure IN lang-js
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">language-javascript - examples - closure</h1> <h2>[previously]</h2> <ol> <li>] (function(){ //scoping function aka 'closure' </li> <li>var global</li> <li>function doThis(){}</li> <li>ref = BM so - global var</li> </ol> <h2>[currently]</h2> <ol> <li><strong>] ORIGINAL </strong></li> <li>] access the results</li> <ol> <li>] link scripts "displayJobs </li> <li>] inline script = qry to api, has callback=displayJobs</li> <li>] PRB access 'displayJobs data/content' from other scripts on the page (document.ready button.click)</li> </ol> <li><strong>] NEXT </strong></li> <li>] moved 'displayJobs' code into the page script codeblock</li> <li>] jq doc ready is the inner function(s)</li> </ol> <h2>[next]</h2> <ol> <li>]</li> <li><strong>] NOTE</strong></li> <ol> <li>] post "html" to PAGE via jq form - GETS silent fail B/C (server sees "potentially dangerous")</li> <li>] </li> </ol></ol>