update page content

website content update process
update website content automatically
how to update website content
seo updating old content
how to update my website content
how to edit my website content
why update content
website update services

I have a morris chart that compares different students statistics. I also have a modal in which I can add a new student and the graph should update with new student statistics. After adding, the graph is getting updated but only when I refresh the whole page. How would I update the page without refreshing?


  ngOnInit() {
getData() {
          .subscribe(data => {

            const graphData = data.stathistory;
            const graphDataArr = [];
            let currentChar = 'a';

            for (const graphdata in graphData) {
              const curDate = graphdata.replace(/(\d{4})(\d{2})(\d{2})/g, '$1-$2-$3');
              const graphdataObj = { 'y': curDate };

              for (const element in graphData[graphdata]) {
                graphdataObj[currentChar] = Number(graphData[graphdata][element].rank);
                currentChar = this.nextChar(currentChar);

              currentChar = 'a';

            const yKeysArr = [];

            for (let i = 0; i < data.domains.length; i++) {
              currentChar = this.nextChar(currentChar);
            this.generateChart(graphDataArr, data.names, yKeysArr);

      generateChart(graphRanks = [], names = [], yKeys = []) {

        this.graphData = graphRanks;
        this.graphOptions = {
          xkey: 'y',
          ykeys: yKeys,
          labels: names,
          resize: true,
          parseTime: false,
          pointSize: 0,


addStudent(name) {
    this.http.post('url', {
      name: name,
      .subscribe(response => {


    <div *ngIf = 'graphData'  mk-morris-js [options]="graphOptions" [data]="graphData" type="Line" style="height: 500px; width: 100%;">

**code for modal dialog**

    <button type="button" class="btn btn-primary" (click)="addStudent(name)">

Please let me know if more info is needed.

This looks fine. I would suggest you to add console.log(graphRanks); just before this.graphData = graphRanks; to ensure that the new data is loaded when expected. By the way your button calls the function addDomain(name) while in your script the function name is addStudent(name).

Content Updates, is critical to improving your visibility in search results. Updating current content so that it’s optimized for search and the user experience. Consider site architecture. This is the point where you’ve taken inventory of the pages of your site and can decide whether the way the pages are connected is the best way.

I would recommend that you make your graphData an observable and use the async pipe in your html. Something like this:

graphData$ = this.http.get('url').pipe(
    map(x => // do stuff with x here)

Then, in your html you can make:

[graphData]="graphData$ | async"

Here is a good post by Todd Motto on the ng-if piece: https://toddmotto.com/angular-ngif-async-pipe


If you don't want to make your graphData an observable - you could probably use a switchMap in you addStudent function.

addStudent(name) {
this.http.post('url', {
  name: name,
      switchMap(x => this.getData())


5 Reasons Why Fresh Content is Critical for Your Website and SEO , Instead, you can make updates to your old content. you're more likely to rank higher if more people click on your content from the search engine results page. Select one of the following: Update page numbers only This only updates the pages that the headings are on, and ignores any changes to the heading text. Update entire table This will reflect any updates to the heading text, as well as any page changes. Select OK.

I finally got it working. I tried to clear the morris chart and generate the chart with new data. So, whenever there is a data change, it would clear the graph and redraw the graph with new data.

Clearing the chart

document.getElementById('idofthegraph').innerHTML = '';

This would draw the chart again

this.generateChart(graphDataArr, data.names, yKeysArr);

How Updating Your Old Content Can Help With Your Rankings, Missing and/or out-of-date content. This may seem like a lot, but it's important that every page makes a strong impression. While you're going  To update OneNote page content, you add and replace HTML elements on the page. Your changes are sent in the message body as an array of JSON change objects. Each object specifies the target element, new HTML content, and what to do with the content.

How to Update Your Website for 2020 (7 Key Strategies), To update the content of a OneNote page, you send a PATCH request to the page's content endpoint: PATCH ../notes/pages/{id}/content. If you are adding your content via a new Page: Click on Page > Add New; Add in your new content, including a Title; Either: click ‘Save Draft’ if you would like to come back later to work on the page more or; if you are ready to publish the post, click ‘Publish’ if you’re ready for it to be posted to your website immediately or

Keep It Fresh: Steps for Updating Your Website Content, This is important than just to update the existing content. If you added a new page focusing on the same exact topic and targeting the same keywords the two  Poll database every second, no page refresh; redirect page if database value has changed 1 IS there something missing? in Change\Update page contents without refreshing\reloading the page

Update OneNote page content, In addition to the sheer quantity of possible pages to find, search engines notice when you regularly update and post on your site. If you are  Dynamic Page / Replacing Content. This article is an update to this old article, which had an ugly demo and a variety of techniques in it no longer probably considered good practices. This new demo is much cleaner, up to date, and fuller featured. Because the old article was a bit of a different scope, I'll leave it alone, just refer to this one.