开发者

need the url of an html file in js

I have an html file parent开发者_开发知识库.html, which i access by http://foo.com/webtest/parent.html

obviously on server this file is saved at public_html/webtest/parent.html

now this html file has javascript, which creates an iframe on that html. the src of the iframe is of an html file on the same server saved at

public_html/bar/static/js/in/actions/inter.html

I want to give an absolute url to this file, as the src in that iframe, something like

src = http://foo.com/bar/static/js/in/actions/inter.html

but the thing is that this is not working, and i get a page not found inside the src. any ideas as to what might be going wrong and wht i could do?


I assume you have a problem with the webroot, i.e. public_html/webtest is set as a root of your site and thus anything outside this folder is not accessible for the app.

Can you verify this?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜