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
HTML panel content
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
-
- Posts: 7525
- Joined: Sun Apr 24, 2005 12:36 am
- Contact:
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 !
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 !
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
http://www.awareim.com/forum/viewtopic.php?t=3087
Tom - V8.8 build 3137 - MySql / PostGres
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
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