0
How can I import some external .html file into the another code?
I wrote some html code and it's save on my file by some.html name.Then I wrote another code. Now I want to import the first file into the second code.
6 Answers
+ 1
find a way to publish it in some network - if not internet, then at least some local. you'll need a computer with web-server, and his local IP address. host your page on the computer and type it's IP instead of www. smthng .com on client devices.
I don't know if you can host a webpage from the phone, it may be harder than from a PC
+ 1
You could use PHP to dynamicly load page content from another file.
0
can't you just copy it's content? or is it important to load something dynamically?
there is AJAX technology for dynamic page loading, but even with this you can't just 'import' some HTML file.
0
Actually I can import it by link( href="file:///storage/emulated/0/some_thing.html") and it's work.
But another device it's not work.
Because the .html file is not save on another device's storage.
And I can't save the file everyone's storage.
Now what can I do?
0
Yes, I know it. But is there some another way to use it another device's?
- 1
according to filepath, your pages are saved and opened on your phone. of course any other device can't access it.