473,396 Members | 2,076 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,396 software developers and data experts.

How to save a copy of iframe document by clicking a button?

Hi,

I am using struts based application, i have a situation that a pdf document is loaded on iframe with some data, i want to save that document to my local disk by clciking on a link/button. I used javascript to do this
[code]document.execCommand('SaveAs',null,'filename.pdf') ;[code]
But is is not saving the document. please can any one help me.

Thanks in Advance
Thulaseeram
Mar 7 '11 #1
1 2056
Oralloy
988 Expert 512MB
Amudala Thulase,

I don't see any documentation on the document object, execCommand method.

I would use a trivial example and double-check that feature is working, first.

Cheers,
Oralloy
Mar 7 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: lee_j | last post by:
Hi, I have a question below. In the Sql server 2000 I store some word documents.Then I get the data from the database through the asp code and display the word document in IE.The ContentType is...
1
by: hypercube | last post by:
Problem! I need to document.write() into iframe or ilayer in safari. In IE mac+pc the below code works a treat for(f=0; f<=int_q.length-1; f++) {...
3
by: Zeljko | last post by:
I am new to javascript (just started to learn it) and want to make a simple thing. I would like to make a page with only one button and one variable that is displayed. What I want to do is that...
2
by: Robert Oschler | last post by:
I have an IFrame whose document is created completely by Javascript code at runtime. The document in the IFrame accesses Javascript functions in the top level document. This works fine most of...
0
by: jeff | last post by:
is there a way to display an hourglass for the client's cursor when clicking a button running server-side code? thanks.
7
by: Asterbing | last post by:
Hi, Talking about a js script which changes an iframe src through a "ref_to iframe.setAttribute("src", document_path);", I would like to launch a check() fct when this new document is loaded. ...
1
by: Daniel | last post by:
what encoding does system.xml.xmldocument.save(string path) use to save the xml document if there is no <?xml... in the front of the xml document?
3
by: omhingmire | last post by:
Hi, I have 1 window which I want to open in full screen after clicking button or image. just like a windows media player.. Anybody can help me.. Thanks in advance
1
by: mchang | last post by:
I use a WebBrowser control(c# win Form) to open certain types of documents (xls, doc, etc). I need a way to do a "Save As" in order to create a copy of the document. Can anyone help me? Thanks!
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
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...

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.