Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2008, 12:49 PM
Member
 
Join Date: May 2008
Posts: 1
anil@netedgecomputing.com is on a distinguished road
Saving word document from iframe
Hi, ok lemme explain what m trying to do here.

<IFRAME id="name" name="name" frameborder="0" src ="c:/testing.doc" width="200%" height="200%" scrolling="auto" MARGINHEIGHT="0" MARGINWIDTH="0"></IFRAME>

using this code my file (testing.doc) will be loading inside the browser. From here, i want to edit the contents of this file and save it.

I can do it if i click away from the ifram and then use tab key to get the focus on my document (inside iframe) and then if i click on file>save as, it gave me an option to save the document in .doc format. but if i give a button there to execute document.execCommand("SaveAs"), then it shows me a dialog box to save as 'html', probably because clicking on save button, takes the focus outside the iframe. In my javascript code, i tried using focus() with many combinations but it didn't work. I need javascript code using which i can press the tab key unless and untill i don't get focus on my frame and then execute document.execCommand("SaveAs");


Or if you have better solution, then please lemme know.

I hope, it make sense..

Anil Saini
anil@netedgecomputing.com
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving data...? easyRyder New To Java 8 07-15-2008 04:14 AM
Saving objects to file JavaForums Java Blogs 3 02-02-2008 06:48 PM
Saving application settings mwildam New To Java 0 11-16-2007 03:30 PM
saving variables to the harddrive Talon876 New To Java 1 11-02-2007 02:30 AM
Saving Variables Fish New To Java 6 06-25-2007 09:20 PM


All times are GMT +3. The time now is 12:10 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org