Skip to content

A simple little jQuery script that 'hijacks' all standard anchor hrefs and loads them via AJAX to create easy Single Page Application (SPA) prototypes.

Notifications You must be signed in to change notification settings

jpegjames/spa-hijack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

spa-hijack

A simple little jQuery script that 'hijacks' all standard anchor hrefs and loads them via AJAX to create easy Single Page Application (SPA) prototypes.

Usage

To use hijack.js, simply load jQuery and then simply load the hijack.js file.

Thats it! There are no options (yet).

Example Meta Tags

<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />

The Future

This simple script was created for students in one of my classes so they can make mobile apps with just using standard HTTP requests. While the intent of this script is to be used for prototypes, there are many other customizable options I plan to add.

About

A simple little jQuery script that 'hijacks' all standard anchor hrefs and loads them via AJAX to create easy Single Page Application (SPA) prototypes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published