Invoking an HTML file existing within an App

nitish.kumar
User offline. Last seen 6 weeks 5 days ago. Offline
Joined: 02/22/2011
Points: 30

Hi

I have created a Flex SWF component within an application. The flex component has a button which is suppose to launch a HTML help file which may be sitting inside the application as a resource.

The button click on the flex compont is able to pass the string parameter to the Application's JavaScript. My intention is to use this string as an event to launch the htnl file residing inside the application

Request to please guide me to to that. 

Is is possible to contain the help HTML file within a zip and invoke it if the help content resides

Thanks in Advance

Nitish

 

0
Your rating: None
nitish.kumar
User offline. Last seen 6 weeks 5 days ago. Offline
Joined: 02/22/2011
Points: 30

To add more to my querry

I have been able to store the html file content within a folder inside the application. And I am able to invoke these file directly from the browser using the application shared URL ie

http://localhost:8080/presto/files/system/mashlets/<Applicationname>/<customerFolder to hold html file>/help.htm

however I wish to invoke this file without using the local host attribute, the button click in the Flex component should direct to a relative path within the application and should launch the html file in a different browser.

Looking forward for a solution

Thanks

Nitish

 

 

smitchell
smitchell's picture
User offline. Last seen 2 weeks 5 days ago. Offline
Joined: 08/29/2008
Points: 34

I have tried something similar using a simple link in the HTML for the App that works with a relative URL when you upload the HTML file for the help topic. So something like:

<div class="wrapperForMyApp">
<!-- more HTML to help with rending the custom App-->
<div>Click <a href="/presto/files/myAppName/help/help.html" target="_blank">here</a> to see help for this App</div>
</div>

works. Basically, Presto uses whatever the current context of the App is (where the Mashup Server is deployed) and adds that to the relative URL.

Not sure whether this will work from the SWF though.

Sara, technical writer/jackbe

 

nitish.kumar
User offline. Last seen 6 weeks 5 days ago. Offline
Joined: 02/22/2011
Points: 30

Hi Sara

I was able to get hold of the relative URL from the presto, and managed to invoke the desired html file residing inside the presto through the SWF component itself.

Thanks

Nitish

smitchell
smitchell's picture
User offline. Last seen 2 weeks 5 days ago. Offline
Joined: 08/29/2008
Points: 34

Glad to hear it worked!

Sara, technical writer/jackbe