开发者

Iframe is giving blank page

I am using iframe in jsp page.

<iframe frameborder="1" src="view/jsp/refreshChat.jsp" STYLE='width:20%;' />

But when I run that page its gives a blank pag开发者_StackOverflowe.


This is an example of an iframe code:

<iframe src="page_to_show_inside_iframe.jsp" style="width:100%; height:250px;">
  <p>Text to show in browsers that don't support iframes.</p>
</iframe>

Perhaps you're lacking height value.

Also, be sure the value for src attribute is correctly referenced, ie. relative path is built OK ( if your parent page URL is http://localhost:8080/mysite/myparentpage.jsp try to load your child page pasting src value instead your parent page's name, http://localhost:8080/mysite/view/jsp/refreshChat.jsp , test this in a new window or tab)


Check if src="view/jsp/refreshChat.jsp" is proper. From what location You use this?


DO not forget to add http:// to your web url. Also, avoid localhost. Use the IP address.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜