HTML panel content

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
technopak
Posts: 287
Joined: Thu Dec 04, 2008 2:16 pm

HTML panel content

Post by technopak »

Hi everyone,

I've been trying to import a HTML page into a panel on my Administrator perspective.

Even though I import the various files including a background image, and they are present subsequently in the Aware IM sub-directories, the background doesn't display. It does display correctly when I open the HTML page in a browser, but not in my Aware application.

Any suggestions why not ?

Thanks in advance,

Peter
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

This feature does not support sub-directories - you need to put all images and other resources into one directory. (the HTML page should refer to the images accordingly - without a sub-directory)
Aware IM Support Team
technopak
Posts: 287
Joined: Thu Dec 04, 2008 2:16 pm

Post by technopak »

Thanks support,

My files are all in the same directory, not sub-directories.

Earlier, I meant that my files are imported into Aware and are in the Aware sub-directories - or that's what a search reveals :-)

Peter
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

This should work. You are doing something wrong, but I can't tell you what. Check out sample applications where this feature is used extensively and then compare to what you are doing.

Or maybe it's a browser caching problem and you just need to refresh the browser.
Aware IM Support Team
technopak
Posts: 287
Joined: Thu Dec 04, 2008 2:16 pm

Post by technopak »

I've browsed the various sample applications, and I'm unable to find any instances where an image is used as the background to a HTML page.

Does Aware support background images ?

In an attempt to create HTML panel content, here's what I've done -

1. Create a basic HTML page in Dreamweaver.
2. Place my image files in the same directory as the HTML page.
3. Set the page background to an image file from the directory
4. Insert a table into the HTML page
5. Insert a button image from the directory into the table, centered on the page
6. Add a hyperlink to the button image (linking to an Aware process)
7. Save and open the HTML page in a browser - and it displays correctly :-)
8. Open the configuration tool in Aware
9. Click the import button in the Main content panel of my Administrator perspective, and browse to the directory containing all the files. Click Save.
10. Save the updated configuration.

Result - my application opens with my link image in the middle of the main area, but no background image displays, just a white background is shown.

Perhaps I'm doing something wrong, but I don't know what.

Further comment much appreciated !
pbrad
Posts: 781
Joined: Mon Jul 17, 2006 11:03 pm
Location: Ontario, Canada

Post by pbrad »

If you export the imported html again, are all of the graphics in the export folder? I suspect that the import function may not be pulling in the background image that the html file references and so if you manually dump that image into the relevant AwareIM folder the problem may be resolved.

Pete
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

If Pete's suggestion happens not to solve this, you might want to use DISPLAY URL in a process as described at:

http://www.awareim.com/forum/viewtopic.php?t=3087
Tom - V8.8 build 3137 - MySql / PostGres
technopak
Posts: 287
Joined: Thu Dec 04, 2008 2:16 pm

Post by technopak »

Thanks Pete and Tom for the input.

I did what Pete suggested and the HTML page exports correctly to a new folder on my desktop and displays correctly with the background image in place.

Following Tom's advice, I must admit that I didn't understand how to use the technique referred to at http://www.awareim.com/forum/viewtopic.php?t=3087 to place my HTML in the content panel. Where exactly do I place the DISPLAY URL action was my question ?

Tom's suggestion did lead me to a success of sorts - I noticed that panel content can be specified by a Command in the perspective's Selected Panel configuration.

I poked around a bit there and discovered that if I place my HTML file in the c:\AwareIM\Tomcat\webapps\AwareIM directory (which is where the import had placed my image files), I can then specify an URL as part of the Command settings. I clicked the ...... button beside Command, gave the item a name, chose URL as the type, and specified my HTML filename in the URL field.

I then saved my update to the BSV and tested the application, and found my HTML page to be displayed correctly in the content panel of my perspective.

So I have managed to accomplish my goal in a trial and error kind of way. The relevant segment from the Guide says -

'Command

Select this option if you want Aware IM to run the specified command and display its results inside the content panel. You must click on the button next to the radio button to specify which command to run. You do it in much the same way as when defining the system menu (see Setting Menu Properties). For example, you may define a command that runs a process and displays its results inside the content panel. Or you can define a command that goes to a particular URL and shows it inside the content panel.'

Based on this, I could probably have placed Tom's DISPLAY URL action in a process and used the Command option to fire the process, filling my content area with beautiful HTML. But I haven't tested this ......

I still don't know what I was doing wrong with a standard import of my HTML page, but using the Command option and Tom's URL suggestion, I've got it to work. Provided you don't mind manually dumping the HTML files in the Aware directory, the Command option works very well indeed.

Now ..... I'm off to try get the links to my Aware processes to work !

Peter
tford
Posts: 4238
Joined: Sat Mar 10, 2007 6:44 pm

Post by tford »

Based on this, I could probably have placed Tom's DISPLAY URL action in a process and used the Command option to fire the process, filling my content area with beautiful HTML. But I haven't tested this ......
Yes, that is correct Peter.
Tom - V8.8 build 3137 - MySql / PostGres
technopak
Posts: 287
Joined: Thu Dec 04, 2008 2:16 pm

Post by technopak »

Once again, kudos and respect to Tom, Pete and others who help enormously with the learning curve that Aware presents us all with.

Many thanks !

Peter
Post Reply