Is there a way, using javascript, to check a website's server/database for changes that were sent and then implement a reload? -
so title says. can check website's server/database (or whatever called, sorry i'm new coding) changes made website can implement reload , implement code.
in site's javascript can make small requests web server without reloading whole page, take action; e.g. change content on part of page, or maybe navigate somewhere else. can choose specific url request data from. common way structure things using rest , json.
the regular part of site live @ www.example.com/myaccount, etc., , rest api live @ www.example.com/api/account/posts?dateafter=blah. can use client-side js libraries jquery send requests rest api, deserialize resulting json js objects, take action.
on server side, various frameworks build apis, appropriate routing. depends kind of hosting, language expertise, etc. have.
Comments
Post a Comment