473,659 Members | 2,662 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Binary Write).

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="iframeConte nedorFicheros"

width="100%"

frameborder="1"

scrolling="auto "

onload="fichero Cargado()"
></iframe>
Javascript loads file in a frame
fichero = 'VerFichero.asp x?NOMBRE_FICHER O=' + fichero;
document.getEle mentById('ifram eContenedorFich eros').src=fich ero;

--
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 7162
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.Binary Write).

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="iframeConte nedorFicheros"

width="100%"

frameborder="1"

scrolling="auto "

onload="fichero Cargado()"
></iframe>

Javascript loads file in a frame
fichero = 'VerFichero.asp x?NOMBRE_FICHER O=' + fichero;
document.getEle mentById('ifram eContenedorFich eros').src=fich ero;
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
9509
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 page or not. how do we do this. Right I have two menu's because I dont know how to do this. one for other pages that dont have the iframe in question and another for the
5
4567
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 -> load PAGE2 with iframe -> iframe content is specified on link = whole PAGE2 with iframe with desired content... Please help...
0
1105
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 querystring and sent it back to the window_onload event on the client. The client in this case is really an iframe on the browser. I want to dynamically load the content of a page specified in a querystring inside the iframe. I did this in the past...
2
2505
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
10908
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 to read the files in with stringreader ? Any other way? Anybody got any sample code? Thanks.
2
5690
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 is in the main page. Is that possible? The code i have tried goes like much like this
0
1485
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 load the file into an HTML page and then give it source to the iFrame. My question is : is there any way else to load the .rpt file directly into the iFrame without using another page(i'm not an expert in iFrame nor in Crystal Report)
2
1213
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 value="3">US,Canada,U.K.& Ireland </option> <option value="8">Mexico</option> control has GO button,and it has javascript function, when clicked the button js function passes the parameter value like this LotteryResultPage.aspx?country=3 I need to load two...
5
7352
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" waitforiframe() { theiframe.frames.location ="mynewpage3.html";
0
8330
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8850
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8523
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8626
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6178
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1975
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.