JavaScript is the Web’s Buttonman

Javascript is another scripting language. It is 75% similar to PHP. It’s a “Front-End” script, meaning that a script is loaded into your browser along with a page’s content. And it stays in your browser until you close the page. Because of much cyber-mischief, it is very restricted. Or used to be. Now, it’s growing up.

About 20 years ago, HTML 4 came out, a major upgrade that meant your web pages were backed by XML. What’s the big deal bout that? It standardized most browsers, but also ushered in the age of look-and-feel interactive UI. Or, from a coder’s point of view, it allows you to write code that pumps content into places on the webpage and change their appearance. It also makes the Button magic happen, it responds to clicks, mouseovers, key-presses. It also introduced AJAX, which allows Javascript to execute PHP functions, accepting & returning more data. That is now the rule.

I use PHP to build the basic HTMO for the Synopsis browser, populate the logo and overall summary. Once the Javascript is doped with lots of data my PHP generates, the host downloads it and hands it off to your browser.

Once it’s “On it’s own”, Javascript listens for when you press a button or link, and then does something. Pressing a Category link gets the link’s ID, use that to get all the Posts associated with that category’s ID, and then displays each post as a “brick”, in descending order by a post’s Relevance score, or in ascending order by how long an article is. It also updates the Category summary box with data for that category. It may also update your cookie, if you told the Concierge you would like a cookie.

An interesting note, Javascript was fathered by Douglas Crockford who created it while working at NetScape. I met him at a Code Camp, where he lectures. Building Javascript gave him a nice living but he didn’t get rich from it.


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Upload Files Drag and drop your files here or click the button to upload your files from your computer

multi file upload Drag and drop your files Max Upload: 20 MB
close image preview
image preview
Task already exist for this element.
Write your message in the existing thread.
Here, we opened it for you.
Pushed to Media Folder.
The file was added to the website's media folder, you can now use it from the there.
poweredby
hide sidebar icon
sidebar left
sidebar menu
sidebar menuThis Page
sidebar menuAll Pages
sidebar menuShow Complete Tasks
sidebar menuShow Internal Tasks
sidebar menuSort by Date
sidebar menuSort by Priority
sidebar menuSort by Status
Tasks
Pages
no task in sidebar
Add your comments
Click any part of the page to start collaborating
              Loading...
              link to inbox
              responsive box
              desktop iconDesktop
              tablate iconTablet
              mobile iconMobile
              Browse Comment
              ×
              ×
              Approve Page

              When the page is ready, click the green button to signal to the webmaster that <b>this page is approved.

              there was some error. Please try again.
              ×
              Page Approved
              Desktop Tablet Mobile
              Back to Standard View
              You Ran Out of Website Slots

              That's great!
              It means you're growing & onboarding more clients!<br>Don't let it stop you

              There was some error. Please try again.