HTML Files in portal that access relative images
We put html files on some of our pages. These open up and display their contents, which include images. These images we store on the same portal page (but hide them) so the html page has access to them in the same directory. So, we basically, use a portal page as a web server directory to put the html, css, images, etc.
Is this going to break in a future version of portal?
According to:
http://download-west.oracle.com/docs/cd/B14099_19/portal.1014/b13809/apdxurls.htm
"Following this release, path-based URLs that follow the following syntax will be obsolete"
That sounds to me like my above scenario will break. Yes?
Thanks.
Why do you use html files exactly ? Because, we have legacy HTML documents that are from our pre-portal intranet days. We were able to just stick them into a portal page and they worked. And, the nice thing is that they can link to each other with relative links within the same directory/path. So, it's not just images. We really don't care that much about images, that was just an example that would be easy for people to understand. Using the /images folder does not solve most of problem. And, like I mentioned before, we also have PDFs with PDF-to-PDF web links where they all link to each other with relative links within the same directory. We also have some Flash (swf) files that take advantage of page-path URLs.
It's not like our whole portal is made up of HTML documents. But, we used many of them instead of Word or PDF documents, because that's what we had from before. So, in most cases we can convert them to PDFs. But, there are some cases where we have mini websites made up of HTML files all stuck into a Portal page. These, and the PDF-to-PDF linked documents are a bigger problem.
This is a major headache that we are not looking forward to.
Similar Messages
-
Render HTML file within portal page
I have uploaded an html file into a content folder as a file item type. I have a portal page with tabs and other content. I added a tab for this html file. I would like the user to click on the tab and have the html file rendered within the associated region.
Any ideas on how to do this?
Mike KleimanG'day,
Heres a much cut down version of a package I built to do
just that, based on a posting by Jerry Silver some time ago.
(I used to do the URL thing but found it fidley and unstable --
it dies if you move folders around)
Enjoy
Kal.
-- Provides the following procedures for displaying portal content:
-- html_file(P_FILE_ITEM_ID): display HTML content of the file "in place".
-- The idea of these procedures is that they can be called by custom type items.
-- NB: create the following as portal30
create or replace package display is
procedure html_file (p_folder_id in number,
p_file_itemid in number,
p_site_id in number,
p_deref_image_paths in number default 0);
end display;
create or replace package body display is
| procedure html_file (p_folder_id in number, |
| p_file_itemid in number, |
| p_site_id in number) |
| |
| Prints the contents of the file type item identified by |
| P_FILE_ITEMID, P_FOLDER_ID, and P_SITE_ID to the browser via |
| calls to the HTP package. |
`--------------------------------------------------------------------*/
procedure html_file (p_folder_id in number,
p_file_itemid in number,
p_site_id in number) is
source_html varchar2(32678);
filename varchar2(100);
blob_content blob;
raw_content raw(32767);
file_to_big exception;
begin
-- get the unique file name (can't pass this from a "File" type item)
select filename into filename
from portal30.wwsbr_all_items
where id = p_file_itemid;
-- should we pass path id?
blob_content := wwdoc_api.get_document_blob_content(p_name => filename);
if (dbms_lob.getlength(blob_content) > SIZE_OF_CHUNK) then
raise file_to_big;
end if;
raw_content := dbms_lob.substr (blob_content,32767);
source_html := utl_raw.cast_to_varchar2 (raw_content);
-- snip before opening BODY tag in first chunk
source_html := util.snip_between(p_source => source_html,
p_begin => '<body',
p_end => null);
-- closing '>' may be on another line
source_html := util.snip_between(p_source => source_html,
p_begin => '>',
p_end => null);
-- snip after closing BODY tag in last chunk
source_html := util.snip_between(p_source => source_html,
p_begin => null,
p_end => '</body>');
htp.print(source_html); -- this requires varchar2 type
exception
when file_to_big then
htp.p('File size exceeds 32K and hence cannot be displayed.');
htp.p('Consider spliting this file.');
when NO_DATA_FOUND then
htp.p('Document not found or access denied');
when others then
htp.p(sqlerrm);
end html_file;
end display; -
The following image is not displaying in lightbox when I click on the thumb:
<a href="images/example.html"
But it does appear when I don't allow Active X.
Is there something i need to change for lightbox to accept html files?
Thanks!
Ken DAFAIK, Lokesh Dhakar's Lightbox scripts only work with web images (PNG, GIF, JPG).
For other modal window systems that DO support multiple file types -- including HTML, Media, Ajax and iframes, see links below.
FloatBox
http://floatboxjs.com/demo
HighSlide
http://highslide.com/
PrettyPhoto Lightbox Clone
http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
FancyBox
http://fancybox.net/
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
How to save HTML file with images present in the server to local machine
Hi all
In my application i have a option for the user to save HTML files with images present in the server. The HTML file is getting saved but the images are not being saved.
The code i am using is below :-
l
File fname = new File(filePath);
if(!fname.exists()) return;
FileInputStream istr = null;
OutputStream ostr = null;
response.setContentType("application/"+format);
response.setHeader("Content-Disposition", "attachment; filename=\"" + fname.getName() + "\";");
try {
istr = new FileInputStream(fname);
ostr = response.getOutputStream();
int curByte=-1;
while( (curByte=istr.read()) !=-1)
ostr.write(curByte);
ostr.flush();
Can anyone suggest what i need to do
regardsThe client should probably parse the html that comes down, and look for <img> links, and request those of the server as well.
-
KM, HTML file, Not rendering correctly
Hi Everyone
I have an html file that is stored in knowledge management. The html file references few folders/images that are also stored in KM. When I create a KM Document iView, the HTML file shows; however, the various images/style sheet that is stored along with the html file KM do not appear. Thus the html file is not rendering properly.
With this being said, I can create an URL iview and everything works as it should (the html file appears correctly with the necessary images). The problem is that I am developing a solution for an external and internal facing portal, thus the URL iView option is not going to work for me. I need to have a way for this KM html iView to display properly...perhaps with the KM Document iView template.
Has anyone encountered an issue such as this and can offer assistance. Again, the KM Document iView template will work, if the html file it is calling in KM can correctly reference other folders in KM that contain various images/style sheets that are a part of the html file.
Any help is greatly appreciated.
Best Regards,
ScottHi Scott.
In order to solve your problem with relative links to image and css files inside KM I suggest two variants:
1. Replace relative links as I mentioned in this message Re: JavaScript and CSS info in WPC.
2.The second solution is:
a. Create an blank html file inside KM folder where the base.html file is stored.
b. Download the newly created file for local editing.
c. Place an iframe that points to your base html file between <BODY></BODY> tags. Use a following code as an example:
<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="base.html"></iframe>
d. Upload this file back to KM.
e. Point your KM Document iView to the created html file.
Best regards,
Aliaksandr Zhukau
Edited by: Aliaksandr Zhukau on Dec 3, 2009 11:04 AM -
hi all.
i have a little problem:
i upload html file in portal and it is look like this
http://your:port/pls/mydocs/mydocs.content_pkg.download?p_file=F920058486/index.shtml
if i clicked on inside ref i see eror
The requested URL /pls/mydocs/index.shtml was not found on this server.
i know why:
inside refs in this file look like this
http://your:port/pls/mydocs/index.shtml#1
http://your:port/pls/mydocs/index.shtml#2...
but inside refs should be
http://your:port/pls/mydocs/mydocs.content_pkg.download?p_file=F920058486/index.shtml#1
i don't know how to do it.
thanksJason
If you need to use xmodem then there is probably more to this situation than you have told us so far. Knowing more of the background might help us to give you better advice.
I doubt that you will be able to successfully use xmodem to copy files which would support HTML and the Web Console. If you are using xmodem then you are almost certainly copying a bin file. If that copy is successful it should allow you to use the command line for access. And through the archive command you can copy the tar file and install the HTML files to use the Web Console.
HTH
Rick -
Problem with .PDF files from .html files at pagebreaks
I am using DW CS5. When I make a .pdf from the .html file it is not handling the images with captions correctly, or even consistently, at the bottom of the .pdf page.
Here is the Link to the .html code:
http://www.schembs.com/0_PDF_PAGE_PROBLEM.htm
and to the .css, if you need it:
http://www.schembs.com/0_PDF_files/2011_ZachBuch_No_Lines.css
The test page repeats the same image with caption several times.
See at the bottom of page 1. There is not enough space for Image #3 so it correctly puts it at the top of page 2. However it puts the caption for Image #3 in the vertical position as if there were no page break and Image #3 were positioned just below the caption for Image #2. Here is a screenshot of the bottom of page 1:
It then places image #4 below the caption for Image #3, which results in Image #4 being on top of Image #3.
At the bottom of page 2 there is not space for Image #6 so it puts it at the top of page 3. It properly places the caption below Image #6 and properly places Image #7. Here is the bottom of page 2;
At the bottom of page 3 there is not space for all the lines of the caption, so it puts the last line of the caption for Image #8 at the top of page 4. This is o.k. Here is the bottom of page 3:
I can live with it breaking up the caption (not ideal) but not with the caption overwriting the image or images overwriting images.
Thanks very much for your ideas on how to fix this.
jds zigzagHello Jim,
in my IE 8 your website looks great, I don't see any overlaps. To show you what I did, here you can follow and check my proceeding by using my (German) "Adobe Acrobat 9 Pro".
Step 1:
Step 2:
Step 3:
Step 4:
I'm sure that you can understand the used German terms, if not, bitte frage mich nachher noch einmal.
Good luck! (German: Glück auf!)
Hans-Günter
P.S.
Would you say where in one of these countless "St. Alban's" did you find these "Fratzensteine"? -
I am a photographer - I use lightroom to create html browsers
for my clients. These files are posted in a the web with unique
URLs. I have created seperate HTML file in Dreamweaver that
contains indexes to these URLs for clients to scroll through. When
selecting one of the sets of images from a menu I need to launch
the image browser in a table. I talked with Dreamweaver tech
support and they said that the small set of code require could be
provide through this forum. Can anybody help me with this?
Thank you,
JimLet's see an example of your 'image browser' please.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Helperjim" <[email protected]> wrote in message
news:gb8om3$n98$[email protected]..
>I am a photographer - I use lightroom to create html
browsers for my
>clients.
> These files are posted in a the web with unique URLs. I
have created
> seperate
> HTML file in Dreamweaver that contains indexes to these
URLs for clients
> to
> scroll through. When selecting one of the sets of images
from a menu I
> need to
> launch the image browser in a table. I talked with
Dreamweaver tech
> support and
> they said that the small set of code require could be
provide through this
> forum. Can anybody help me with this?
>
> Thank you,
>
> Jim
> -
Html file in the content of email.
hi friends,
I want to send email in the html format.
can we pass the html file in the content of mail?
i.e instead of doing this
messageBodyPart.setContent("<html><body> " +
"--------------------------------------------------------------------------------<br><br>"+
""+firstLine+"<br><br></body></html>" );
can I directly pass the html file?
Also if we have images in the html is there any way that instead of hot linking the images we can attach them with mail?Supplying the html content using a file instead of a String is easy:
messageBodyPart.setDataHandler(new FileDataSource("file.html"));
To include images in the message is harder, see the FAQ. -
Safari is sandboxed to not reveal filepath from html file select to Javascript ?
I know safari is sandboxed not to reveal filepath from html file select control to Javascript via the Value attribute , but i am unable to find any documentation regarding how this is done and since when this is present .. Can somebody please guide me with this ..?
Since Safari is able to save as HTML file a page if it is opened online (from web), making "Save as...", and it is unable to make so if the webarchive file is on the hard disk...I tried to upload on a web server some .webarchive files.
Then I went online in the web page with the list of all the uploaded .webarchive files... (ex.: http://....filename1.webarchive, etc...)...
My goal was to open ONLINE (not on hard disk) the files and then make "save as...",... but... SURPRISE!!! Safari is UNABLE to open a webarchive file from the web, it asks me where to save the file... it can only save it, it writes that it is an "application"...
I think this happens because .webarchive is not a real web page but a "package"... but my displeasure is this:
Once opened an hard disk's webarchive file, its content is loaded in ram and it appears like a normal web page (html + images + etc...)... so, in this moment, Safari should be able to save it "as...." HTML file too.... discarding images and other objects....
Any advice?
Thank you!!! -
Location of HTML/JSP for Portal Redirection
Hello,
Currently, we have a URL for our Portal, consisting of http://localhost:50000/irj/portal.
When trying to launch the above URL, we would now like the user to be redirected to another URL, which will lead them to the same portal.
Where can we find the main HTML/JSP page which should contain the redirection command?
Thanks in advance,
GilHi Gil,
There is an index.html file in directory that Henk already mentioned: "/usr/sap/<SID>/JC<inst#>/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/"
This file is called automatically if you browse to <protocol>://<hostname>:<port>/irj
The only thing it does is replace your current url with the same url + /portal its a way to call the portal application.
You could do something with that... otherwise go for the solution Hank mentions by editing the web.xml.
A reverse proxy like apache or web dispatcher could also do the trick... as they somtimes say "there are many ways that lead to Rome"
Cheers,
Benjamin Houttuin -
When I open an html file from the desktop all I see is source code rather than webpage.
I have tried clearing the cache and reading other questions similar. I have a mac and am opening these files from the desktop, not a server or anything so It's incredibly annoying that firefox wont open them as html files even though that is what they are saved as. Also there is no .txt after them. They are purely .html files.
Try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
*http://kb.mozillazine.org/mimeTypes.rdf
*http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
Firefox 16.0.2 is the last version that works on an Intel Mac with the OS X 10.5 operating system.
* https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/16.0.2/mac/
Another option to consider is to install the last Firefox 10.0.x ESR version as that version is more recent than the Firefox 16.0.2 version.
* https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/10.0.12esr/ -
Is it possible to save HTML files to touch memory?
Is it possible to save html files to the touch memory and view them when not within WiFi range? When traveling I'm more often than not without a WiFi connection. I do NOT want an iPhone nor it's hefty wireless data bill. I simply want to view locally saved HTML files. Is that possible without jailbreaking? Thank you.
This is a great question. I want to buy a Touch but I won't buy one until I know the answer to this question.
I went to an Apple store last week and told them I ride the bus to work every day. I said I wanted to download information over my wireless network at home, then view the info while riding the bus to work.
The guy told me that I could view whatever was in my cache. I don't know how big the cache is. I read through the Itouch user guide and couldn't find any info.
If someone has some useful experience, it would be very appreciated. If you can use the cache, how many typical web pages can you store? -
Reading .html files and interpreting values from PL/SQL.
Release 10gR2.
Unix. RedHat.
Case:
html files are save in a directory, The html files have information that we need to read and insert in tables. The html files have a lot of formating tags, fonts etc.
Files are 3,000 KB in size.
Objective:
I'm looking for diferent ways to provide the solution to pick one of them.
Thank you in advance for your help.I have several fields to get from the xml. Some of the fields to get are
Order No, from: , to:, phone number, and other in the file.
This is just a part of the file, I did change content but the format is the same.
<tr>
<td width="125" ><font face="Arial" size="3"><b>Order No:</b></font></td>
<td colspan="3" align="left"><font face="Arial" size="3">4200022</font></td>
</tr>
<tr>
<td width="100" valign="top"><font face="Arial" size="3"><b>TO:</b></font></td>
<td width="250">
<font face="Arial" size="3"><b>person from </b>
DRINKING WATER PLACE
LUNA ROAD
SUITE 111
MIAMI, MI 75006
</font>
</td>
<td valign="top" rowspan="3" width="50"><font face="Arial" size="3"><b>CC:</b></font></td>
<td rowspan="3" valign="top"><font face="Arial" size="3">JOSE SANTIAGO</font></td>
</tr>
<tr>
<td width="100"><font size="3">Phone:
FAX:</font></td>
<td width="250"><font size="3">
(333) 444-5555
</font>
</td>
</tr>
Thank you in advance for your help.
Jose. -
Can Acrobat XI convert an HTML file that contains an image map?
An HTML page I have has a complex image map with many links. It works fine in HTML but in converting it to PDF in Acrobat 11, only the top row of links in the map work. Clicking vertically below one of these links activate the link at the top but not the intended one.
I found this about creating an image map http://tinyurl.com/c6sonnj but do not understand the reference to Scene 7.
If it helps here is the HTML:
alt="Mute Button" title="Mute Button"/><area href="/man/Audio_Tracks#solo" shape="rect" coords="61,245,108,262" alt="Solo Button" title="Solo Button"/><area href="/man/Audio_Tracks#gain" shape="rect" coords="20,268,101,290" alt="Track Gain Slider" title="Track Gain Slider"/><area href="/man/Audio_Tracks#pan" shape="rect" coords="20,291,101,320" alt="Track Pan Slider" title="Track Pan Slider"/><area href="/man/Audio_Tracks#collapse" shape="rect" coords="31,371,93,389" alt="Track Collapse button" title="Track Collapse button"/><area href="/man/Audio_Tracks#scale" shape="rect" coords="109,191,140,389" alt="Vertical Scale" title="Vertical Scale"/><area href="/man/Audio_Tracks" shape="rect" coords="141,196,749,292" alt="Left Channel of Stereo Audio Track" title="Left Channel of Stereo Audio Track"/><area href="/man/Audio_Tracks" shape="rect" coords="141,293,749,390" alt="Right Channel of Stereo Audio Track" title="Right Channel of Stereo Audio Track"/><area href="/man/Audio_Tracks#panel" shape="rect" coords="12,194,108,390" alt="Track Control Panel" title="Track Control Panel"/><area href="/man/Selection_Toolbar#rate" shape="rect" coords="20,447,100,470" alt="Project Rate Drop-Down Menu" title="Project Rate Drop-Down Menu"/><area href="/man/Selection_Toolbar#snap" shape="rect" coords="131,450,196,468" alt="Snap To Checkbox" title="Snap To Checkbox"/><area href="/man/Selection_Toolbar" shape="rect" coords="9,423,771,479" alt="Selection Toolbar" title="Selection Toolbar"/></map>Only via the Print Dialog's Save As Adobe PDF Workflow. However, Pages has it's own export to PDF that works wonderfully and saves hyperlinks.
Maybe you are looking for
-
Problem - removal of old software update
Since a piece of software crashed and i had to use system restore, i can't now open itunes or update the software. keep getting the same message "The older version of Apple Software Update cannot be removed. Contact your technical support group." Doe
-
Canon Pixma MX300 Printer sharing through Windows PC
I have a canon mx300 printer hooked up to a windows pc and share it wireless throught aiport extreme with a Macbook pro and Macbook. Thing is I can not use the CD that came with the printer to install the drivers on the MACS. They will not work when
-
JSON, SAP & other AJAX stuff related.
Hi everyone, Guess what, JavaScript is hot again, if you wanna be a cool kid, you got use it, do some and let everybody know Youre on it. Lucky youall Ive been checking out what you have to do to be a fashionable BSP developer. First you want a Ja
-
Office 2010 Asset Inventory not visible
We are rolling out Office 2010. The Asset Inventory does not appear to be picking up any of these. Is the a PRU update including the latest MS Office 2010 products.
-
Use of Destination URI...
Hi friends,(Apps R12) I'd added a button on a page (/oracle/apps/pa/setup/webui/SetupTabSetupPG) with Personalization. I'd like to call a database procedure when I clik on the button, but passing a parameter that would be an attribute of an VO in the