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.

18th Dec 2016, 10:39 PM
Abhi
Abhi - avatar
6 odpowiedzi
+ 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
18th Dec 2016, 11:32 PM
Demeth
Demeth - avatar
+ 1
You could use PHP to dynamicly load page content from another file.
19th Dec 2016, 6:20 AM
LaserHydra
LaserHydra - avatar
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.
18th Dec 2016, 10:46 PM
Demeth
Demeth - avatar
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?
18th Dec 2016, 11:12 PM
Abhi
Abhi - avatar
0
Yes, I know it. But is there some another way to use it another device's?
18th Dec 2016, 11:27 PM
Abhi
Abhi - avatar
- 1
according to filepath, your pages are saved and opened on your phone. of course any other device can't access it.
18th Dec 2016, 11:15 PM
Demeth
Demeth - avatar