How to put text dynamically into an HTML page - html

I have a simple text webpage that I intend to upload to ipfs.io Once it's uploaded I won't be able to change the HTML
However I want to be update the text on the page.
How might I go about achieving this? Ideally as simply as possible.

You could use Javascript and fetch api

Related

Save as a blank html page instead of content

I am using asp.net web form and the content is displayed let just say in the about-us.aspx.
I know it is impossible to disable Save As option in the browser file menus, but is it possible to have users saving it as a blank HTML page instead of the content?
Even if you could disable the "save as" feature, which... no, you can't. But say for an instant you could. Anyone who wanted (a copy of your webpage) could just take a screen shot and print that. Or, they could open the source code and copy/save that. Saving the file isn't the only way that they can grab your content.
Is there a reason that you don't want them to copy it?
Are you trying to prevent people (in general) from seeing the page?
If there is some other consideration, please leave a comment so we can expand on this.

How to create a dynamic form with bootstrap?

I currently have a basic form where the user can submit a paragraph of text. However, I want them to be able to choose either to paste their paragraph or to instead upload a file. In essence, this choice will determine which input field shows. Is there a mechanism to do this?
Use quill if you are looking for text editor like in most content management website

render static content of html page using text file

I have a scenario where I need to create simple html page having large amount of text.So i want to make use of some text file,which I can have in my content folder of mvc vb.net solution.so next time,if i want to change my content ,I can change in that text file only.I can only use java script and html to achieve this.
I tried using java script to load file and that is not working.
You can solve it via JavaScript but in a very crude way. Yuo would need to write a script that requests the text file via AJAX and then puts the resulting content into a specific tag on the current page.

HTML Add images dynamically to iframe (like a text editor)

can anybody tell me hw to add images in an iframe at runtime. I am making a text editor using iframe and i want the facility for the user to add images to it by clicking a button.
Thanks in advance
You first need to upload your image to your site so you need to create a backend piece of code that manages that, you can send your image to the site via an Ajax call, and have the server respond with the same image.
Try looking here http://css-tricks.com/6522-ajax-image-uploading/
After that you should just display it in your iframe.

Embed a webclip

I am wondering if there's a way I can embed a webclip into a webpage, as in, I can have a portion of a webpage embedded as a widget into another page. I was thinking it might be possible someway though Mac OS X's Dashboard widgets, one can take a webclip and make a dashboard widget, as I hear that they are HTML based, and thus one could reverse-engineer one into simple HTML code. Kind of the reverse of what google does for gadgets. Any ideas? I'm open to any solutions.
Thanks.
The easy, html-based way is with an iframe. What this does is put an entire webpage within a box on your page. You don't have much flexibility with it.
You can also do it with javascript. JQuery makes it easy with their .load() method. Going this route, you can load a webpage with javascript, load specific tags within that page, or even modify the incoming code before displaying it.
Most basically:
$("#xxxx").load("url.html");
Where xxxx is the id of the html tag where you want the content to be loaded on your page (e.g. if you have <div id="xxxx">content will go here</div> in your HTML). See more details at: http://docs.jquery.com/Ajax/load.
If these don't suffice, the next step would be PHP (I doubt you'd need it, but if you'd like to, you car search for file_get_contents on php.net).