Possible to link HTML changes?

Go down

Possible to link HTML changes?

Post by RazielBach on May 27th 2015, 5:31 am

Hey there.

I had a question on something that would be more of a quality of life change on my part. For updates to my forum, I have a section on an HTML page saying when the update was, and I also edited the template of the main page to say when the update was. 

I was curious if there was a way to link it so that when I update that section on the HTML page the same section on the template will updated by itself.

Any help would be appreciated, thanks.


Posts : 25
Reputation : 1
Language : English


Back to top Go down

Re: Possible to link HTML changes?

Post by Sir. Mayo on May 31st 2015, 7:25 pm

The only way i know of would be to use the <iframe> </iframe> tags.

for example

 <iframe src="YOUR HTML PAGE" width="XX" height="XX">

Replace YOUR HTML PAGE with the url of the page

then replace the XX with the size for the height and width you would like
Sir. Mayo

Male Posts : 980
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108


Back to top Go down

Re: Possible to link HTML changes?

Post by Mike on June 2nd 2015, 8:03 pm

If you use Javascript Page Management you can create a similar effect. Create a file in the Javascript Management and have it active on all pages. Youll need to copy the link for it. 

In your Javascript page only include the following: 

document.write('YOUR TEXT HERE');

Wherever you'll want this update message to show, for example on a custom page or at the bottom of your forum, add the code: 

<script type="text/javascript" src="YOUR LINK"></script>

and then whenever you change the message in your main javscript management file it will update on all the pages that have that script included.

Male Posts : 4251
Reputation : 468
Language : English, HTML, CSS
Location : Loveland, Colorado

Back to top Go down

Back to top

Permissions in this forum:
You cannot reply to topics in this forum