473,287 Members | 1,447 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,287 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 7110
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: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.