Reply
Regular Contributor
SalesRed
Posts: 139
0
Accepted Solution

Include HTML page in Static Resource ZIp. Reference in Visualforce page.

Hello,

 

I am including content in a visualforce page from a zip file which I reference for the required element in the page.

For example I include an Image as follows

 

<img src="{!URLFOR($Resource.MyPageResources, 'img/my-logo.png')}" class="mt4" alt="My Logo" />

 

This works fine.

 

I was wondeirng. Can I put a HTML page in my zip file and reference this in my visualforce page, from my static resource.

 

IIf so, how would I reference this in my page?  I wasn;t sure how to reference full HTML.

 

Thanks in advance for any help!

Trusted Contributor
Laxman Rao
Posts: 162
0

Re: Include HTML page in Static Resource ZIp. Reference in Visualforce page.

yes you can put the html file in zip file.

 

The way you have to refer is

 <apex:iframe src="{!URLFOR($Resource.Htmlcontent)}"/>

Htmlcontent is the static resource name

 

you can download the hml page from my demo site at http://devender-developer-edition.ap1.force.com/resource/Htmlcontent

 

let me know if u have any queries 

Laxman Rao M.
If this post is your solution, kindly mark this as the solution to the post so that others may benefit.
Visitor
venkateswarlu
Posts: 2
0

Re: Include HTML page in Static Resource ZIp. Reference in Visualforce page.

i need to use that html pages inside the apex pages..

i don't wont to download that files..

i need to use that html pages in my help icons...