Page 1 of 2

Referring to local html page with HTML control

Posted: Tue Jan 20, 2015 5:01 am
by Aeneas McBurney

Hi,

I have added a folder called invoices to files as below. I have added the files as in screenshot, How do I show the index.html file in an HTML control?

Image

Thanks,
Aeneas


Referring to local html page with HTML control

Posted: Tue Jan 20, 2015 7:24 am
by Alena Prykhodko

Hello Aeneas,

You can simply set a source for html component, it's not an image.
This code should be inserted manually, use only inside body tags, do not use code<html> /code, code<head> /code or code<body> /code tags.


Referring to local html page with HTML control

Posted: Tue Jan 20, 2015 7:32 am
by Aeneas McBurney

How do I refer to the page using a relative reference without using http://www. stabletrack.net/ first? Something like /files/invoices.... Can you please provide html source code?


Referring to local html page with HTML control

Posted: Tue Jan 20, 2015 8:02 am
by Aeneas McBurney

ie this works


but this does not



Referring to local html page with HTML control

Posted: Tue Jan 20, 2015 3:49 pm
by Evgene Karachevtsev

Hello Aeneas,

Sorry, could you please clarify your last reply - there should be some code or images?


Referring to local html page with HTML control

Posted: Tue Jan 20, 2015 5:13 pm
by Aeneas McBurney

If I refer to html page as

http://www. stabletrack.net/files/invoices/ type1/index.html it works but I want a relative reference to work without http://www. stabletrack.net


Referring to local html page with HTML control

Posted: Thu Jan 22, 2015 12:27 pm
by Illya Stepanov

Hi Aeneas,

Try to use "files/invoices/ type1/index.html" -- and see if that helps.


Referring to local html page with HTML control

Posted: Thu Jan 22, 2015 6:01 pm
by Aeneas McBurney

Hi, I get this error in the server code when I try your above suggestion.

Script CreateInvoice: Error ( @ 38 : 18 ) - throw e;

The code I am using is

var document=XHR2.send("GET", "files/invoices/type1/index.html");


Referring to local html page with HTML control

Posted: Fri Jan 23, 2015 12:41 pm
by Alena Prykhodko

Aeneas,

If you make call from your server-code script then it's impossible, it can be done somehow from the app, because the page is inside it.


Referring to local html page with HTML control

Posted: Fri Jan 23, 2015 10:48 pm
by Aeneas McBurney

How can this be referenced via the app?