thomaswelton / bower-ajax-nav Goto Github PK
View Code? Open in Web Editor NEWAjax Navigation component
Ajax Navigation component
If you control click on a link it should open in a new tab, not do an ajax nav on the existing tab.
Add data attribute data-ajax-nav=false
option to disable ajax nav on links and forms
On the bootstrap with front and backend ajax nav the main template is not updated correctly
https://github.com/thomaswelton/bower-ajax-nav/blob/master/src/AjaxNav.coffee#L83
The the requires scripts fail to load the page navigation does not change
On error we should force a reload
*reminder
If code igniter triggers a 404 the HTML is updated, but the URL isn't. Makes it hard for the dev to know what URL is incorrect
The method for the xhr should be get not post
if requireScripts is undefined it throws an error
form should be submitted via ajax
On Ajax load preload CSS before injecting HTML
Explain what it does, how the server needs to respond and the events it fires
error!
Use requirejs module config to set require scripts on page load.
right now we are defining a module called global, bad recommendation from SO
Use get element by attribute role https://github.com/thomaswelton/bower-ajax-nav/blob/master/src/AjaxNav.coffee#L12
if target=_blank
ajax load should not happen
If and ajax error fails the pop state nav fails
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.