12/24/2023 0 Comments Wordpress backbone js![]() This is something very programmatic isn’t it? So whatever html content fed inside the content pointer would be fed up in the div tag has the id- contentHolder. initialize is the function used to set the content pointer, in our example we’ve set the content pointer to the div tag(id:”contentHolder”).In other hand if the change is “second” then it calls the method goToSecond. For example if the change is “home” (i.e., the “home” string is appended with the url) then it calls the corresponding view inside the method goToHome. This is routes function which is in-built function with Router module, in which once the () detects any change, this function gets executed.With these history of web development and the necessity of backbone.js, let’s move on to the introduction to backbone.js. Adding to SPA, it enhances the MVC pattern, which is something that focuses the terminology ‘separation of concerns’. On a single page (index.html) we are replacing the contents as we navigating with the hyperlinks. This ideology is known as “Single Page Application” technique. So the server is intended to be used only for request/response over model/data. ie., To be more specific transferring the functionality like validation, switching page contents, parsing the response and so on down the line to the client. Which is adding more functionality to the client side would drastically decrease the server tasks, Apparently increasing the performance of the server. So, they came up with the revolutionary idea the ‘thin client’ concept. When we talk about the necessity, people decided to increase the performance of the web applications. Whereas backbone.js partially depend on jQuery. Later the asynchronous javascript and xml (AJAX) technique added on top of the jQuery, to utilize the performance of the jQuery. Or in other words, a vehicle to the space, which is jQuery. Where came the ultimate vehicle for flying from one continent to another continent. It’s more likely riding a fuelled bike to move on, Of course which is something better than riding a bicycle, isn’t it? This was the period where XMLHttpRequest, XMLHttpResponse slowly enter into the web development field. ie., I’m comparing the performance of the web applications with the real life objects. It’s more likely riding a bicycle to shift from on place to another place. Remember the web development technologies starting from the period 1995……Īround this year where the Javascript, came into the picture in the development of web applications. To understand the necessity of backbone let’s rewind our time machine before 2 decades (year created 2014). ![]() To start our course the introduction to backbone.js, let’s first make note of the necessity of the technology backbone.js. “Necessity is the mother of invention“ – Plato What is the need/necessity of having backbone.js? ![]() I’ll probably update this as I learn more and complete more sample applications.īuilding Reactive WordPress Plugins – Part 1 – Backbone.This blog provides basic knowledge on backbone.js ![]() I haven’t gone through all of them, this is more of a repo than anything else. Ok, here’s a lot of the resources I was using for learning. It incorporates UnderscoreJS, which I wanted to learn too.Lots of companies use or used it to get their app structure going.Below, I’ve included some links for resources I was using to learn Backbone. ![]() I decided to start out with BackboneJS, and I’ll move to AngularJS next. It was pretty great, I learned a ton, and like the idea of being able to build something fast with the help of frameworks. I built a single page application with KnockoutJS for my Udacity Nanodegree. I’ve been doing a ton of learning of JavaScript frameworks recently. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |