Jump to content

Hello.

I have a concept I need help with and that I find hard to put in words.

Say I have an HTML code on webpage "A" (eg. item review, or any random blah-blah with images and links), and I need an exact copy of it on website "B". Not just any copy though. If the source code changes, so does the child page's.

One way to do that is to use an image instead of HTML, stored on a server. Then you just alter the image and it would update on all the pages it is displayed on. Is there a way to do something like that but with HTML?

Thx.

Link to comment
https://linustechtips.com/topic/571591-html-related-question/
Share on other sites

Link to post
Share on other sites

3 minutes ago, INSTIGATOR said:

Hello.

I have a concept I need help with and that I find hard to put in words.

Say I have an HTML code on webpage "A" (eg. item review, or any random blah-blah with images and links), and I need an exact copy of it on website "B". Not just any copy though. If the source code changes, so does the child page's.

One way to do that is to use an image instead of HTML, stored on a server. Then you just alter the image and it would update on all the pages it is displayed on. Is there a way to do something like that but with HTML?

Thx.

iframes maybe?

Link to comment
https://linustechtips.com/topic/571591-html-related-question/#findComment-7493978
Share on other sites

Link to post
Share on other sites

A script in the server to check for changes and update the second pages sources every so often? If its windows you could just use batch to check for updates or to trigger with an update and then copy and replace page b sources. 

                     .
                   _/ V\
                  / /  /
                <<    |
                ,/    ]
              ,/      ]
            ,/        |
           /    \  \ /
          /      | | |
    ______|   __/_/| |
   /_______\______}\__}  

Spoiler

[I5-12600k | 32gb DDR5 6000 | RTX5070 | 2x1tb M.2]

 

[Ryzen 5 1600 | 16gb DDR4 3200 | GTX1030 | 4x 8tb HDD] 

 

Link to comment
https://linustechtips.com/topic/571591-html-related-question/#findComment-7493997
Share on other sites

Link to post
Share on other sites

If the site/server has a public API for this kind of thing, you could use that.

 

Otherwise, the most simple solution would be to use an iframe. If that doesn't do it for you , then you'll have to develop your own web scarper. Read more on web scarping.

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to comment
https://linustechtips.com/topic/571591-html-related-question/#findComment-7494041
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×