473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Load Pdf files in Iframe


Hi misters,

I have a aspx page that loads PDF files into a frame (I call an
ShowFile.aspx file that uses Response.BinaryWrite).

I want that the user can see div with the message loading and finished it
when the PDF file have been loaded.

I have onload function for iframe but doesn't work, because never is called.
Appears progress bar in IE 6.0 but not go up.

Any solution about it, please?

Thanks in advance, greetings
,

<iframe src=""

id="iframeContenedorFicheros"

width="100%"

frameborder="1"

scrolling="auto"

onload="ficheroCargado()"
></iframe>
Javascript loads file in a frame
fichero = 'VerFichero.aspx?NOMBRE_FICHERO=' + fichero;
document.getElementById('iframeContenedorFicheros' ).src=fichero;

--
http://www.alhambra-eidos.es/web2005/index.html
www.kiquenet.net
http://www.setbb.com/putainformatica...opic.php?p=843
www.trabajobasura.com/solusoft

Jun 27 '08 #1
2 7134
Alhambra Eidos Kiquenet wrote:
Hi misters,

I have a aspx page that loads PDF files into a frame (I call an
ShowFile.aspx file that uses Response.BinaryWrite).

I want that the user can see div with the message loading and finished it
when the PDF file have been loaded.

I have onload function for iframe but doesn't work, because never is called.
Appears progress bar in IE 6.0 but not go up.

Any solution about it, please?

Thanks in advance, greetings
,

<iframe src=""

id="iframeContenedorFicheros"

width="100%"

frameborder="1"

scrolling="auto"

onload="ficheroCargado()"
></iframe>

Javascript loads file in a frame
fichero = 'VerFichero.aspx?NOMBRE_FICHERO=' + fichero;
document.getElementById('iframeContenedorFicheros' ).src=fichero;
The onload event of the iframe tag occurs when the iframe tag is loaded
in the page, not when content is loaded in the iframe.

If you want to find out what happens in the iframe, you need to run a
javascript using an interval in the page, checking the readyState of the
document in the iframe.

However, I'm not sure that you can actually check the status when you
are loading a PDF file in the iframe.

Also, how the PDF file is loaded depends on how the browser and the
Adobe Reader is set up on the client computer. The browser may open the
file in a separate instance of Adobe Reader instead of opening it inside
the iframe.

--
Göran Andersson
_____
http://www.guffa.com
Jun 27 '08 #2
Hi

Check this post...

http://www.codingforums.com/showthread.php?t=86085

you have to check the frames ready status...

when the ready status is complete iframe is fully loaded...

Thanks

Munna

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul | last post by:
HI! how do we load a page from the menu into an iframe when you are not on the iframe page? I want to be able to load pages (options in my menu ) into a iframe no matter if I am on the iframe...
5
by: SigRob | last post by:
I have PAGE1 with the link to PAGE2 with iframe. (iframe load several naked html). I want to add directive to the link to point sprcific content of iframe. to make it clear link on PAGE1 ->...
0
by: Adrian | last post by:
This may be a really simple problem but I can't seem to figure it out in dotnet. Using asp (old style) I had an app that received a querystring on the server, then parsed out an url from the...
2
by: bhosle | last post by:
hi ppl.. i'm new to jsp and iframes.. and here is what i want to do - take input from the user in a form, and load an iframe with that url.. any suggestions? thx.. AB
3
by: jobs | last post by:
I have a list of html files and entries in a database with the file locations. I'd like to create a buttons for each file. Any way to load an html file into a DIV of an asp.net page? Do I have...
2
by: hgl1976 | last post by:
Hi! I have a web page that from a query that loads the search result into an iframe on the page. In the search result inside the iframe i would like to be able to load content into div tag that...
0
Fuhrer
by: Fuhrer | last post by:
Hi all, i have a web page(.aspx) and i have a button and an iFrame in it. What i'm trying to do is: when i click this button i want that an rpt file load into the iFrame. what i'm doing now is...
2
by: pratimapaudel | last post by:
Hi I have page LotteryResultPage.aspx . And i have one control which has two drop down and value is like this <option value="SelectStates">Select a Country</option> <option...
5
by: BerlinBrown | last post by:
Do you know if it is possible to wait for the iframe page to load and then manipulate the iframe DOM. E.g. mypage: <script> function myinit() { theiframe.location = "iframe_with_frames.html"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.