Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Force.com Sites & Site.com
- :
- Include HTML page in Static Resource ZIp. Referen...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Include HTML page in Static Resource ZIp. Reference in Visualforc e page.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-26-2012 09:44 AM
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!
Solved! Go to Solution.
Re: Include HTML page in Static Resource ZIp. Reference in Visualforc e page.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-09-2012 11:34 AM
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/re
let me know if u have any queries
If this post is your solution, kindly mark this as the solution to the post so that others may benefit.
Re: Include HTML page in Static Resource ZIp. Reference in Visualforc e page.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-27-2012 04:44 AM
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...

