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
[email protected]

This is a Java forum, not a JavaScript forum.

Similar Messages

  • I cn't download saved word documents from icloud to my mac? Why?

    I use Word for Mac as my word processor. I'm a writer and publishers only want word .doc documents. I can upload to icloud but not download my word documents and icloud doesn't appear as a source for documents neither on the Pages nor the Word menu. why? and what can I do?

    At http://icloud.com , navigate to the iWork page,and click on the relevant folder in the toolbar:
    Click your file once to select it: click 'Download' and choose an option.
    More information at http://help.apple.com/icloud/#mm9d23dae8
    However, once a file has been uploaded from your Mac you cannot re-download it until it's been edited on an iOS device, which may well make this process unsuitable for your requirements. You may find DropBox a better bet.

  • After saving, word documents have been disappearing from my macbook air

    After saving, word documents have been disappearing from my macbook air. Have checked outlook temp files, temporary files don't show them, can't find them anywhere. Includes coursework files that I have lost because I don't back up regularly. Even the finder cannot find them, word recent documents doesn't show them. 100% positive I saved htem. Please help someone!!!

    Hi there. If you have save file selected in word you should be able to find it. Here is some options.  http://superuser.com/questions/845543/accidentally-clicked-dont-save-in-new-word -document  You could select the finder, then Go from the top menu and then go to folder from the drop down list. Then type in private/var/folders then enter.

  • Saving word document, saving word document

    Could anyone advise how to save word/microsoft document on icloud? I can't find the icon of icloud when saving word document.

    Microsoft have not updated their applications for iCloud compatibility, so you can't do it direct from Word.
    Apple's "Pages" application for Mac will allow you to save Word .doc files to iCloud.

  • HP Laserjet PRO MFP125nw doesn't print Microsoft Word documents from PC

    Hello.
    I've recently bought a brand new HP Laserjet PRO MFP125nw printer. The functions seemed really nice and the price was acceptable. I've brought it to my home, installed it following the manual, connected it to Wi-Fi etc. It generally works fairly well. PDF files are printed perfectly well, the scaning function works and it's generally a nice piece of technology.
    The only problem is that it just doesn't want to pring Microsoft Word documents from my PC. It prints it perfectly when I try to print .docx from my smartphone using the app, but it doesn't respond when I try doing it from the PC.
    My Office version is 2007 Enterprise. Do you have any idea what I should do?
    Thank you in advance

    Thank you a lot for a quick reply, Cbert. It's fantastic to see HP actually reading their forums and trying to help!
    I'll try plugging it into the wall and directly to the PC with a USB, we'll see if it works out.
    About Word, i've already tried reinstalling Word, even installed a 2003 version to check if it works with that. Well it doesn't. And as i've written before, I tried turning some .docx files to .pdf using a converter, but it still doesn't print them.
    Anyway, i'll try the first two points and keep you updated, thanks!

  • Open a word document from a Java Application

    Hi,
    Can I open a word document from a java GUI apllication and point to a bokkmark automatically in the word document when opened.

    See this thread:
    http://forum.java.sun.com/thread.jspa?threadID=228332&messageID=810684

  • Calling Word document from Oracle Forms 10g

    Hi all,
    I would like to call a Microsoft Word document from my Oracle Forms 10g.
    What would be the best way to do this?
    Thank you in advance.

    Have you tried something like
    WEB.SHOW_DOCUMENT('file:///<documentpath>','_blank');

  • I am getting an unknown error when trying to download a word document from mail to pages, any help

    I am trying to download a word document from mail into pages and I keep getting an unknown error message, are there special settings for this? Any help much appreciated!

    Not there aren't any special settings for this. You just use the Open In feature to save the document into Pages. You could have a font in the document that Pages doesn't like, maybe something that you copied and pasted from somewhere into the document that went corrupt. But there is nothing special about the way that you save a Word document into Pages. You save it like you save any document or file into a compatible app.

  • When I try to install abode - it will download but says i have to close firefox before it will install. also i try to open a word document from a website and it will not open - it will only download

    i install abode - it will download but not install and indicates i have to close firefox before it will download. Also, I try to open a word document from a website - it will download but not open.

    You need to close Firefox to install many plugins, including those from Adobe.
    As for the Word downloads, see the changing downloads action section of this link - https://support.mozilla.com/kb/Managing+file+types

  • Upload / Open a Word Document from BDS with WebDynpro

    Hello,
    we use the BDS (Business Document Server) to storage our word files. Now we use WebDynpro with the UI OfficeControl.
    Could any one tell me, how to open/upload my documents from BDS with the OfficeControl.
    The UI FileUpload does not work, because it is not allowed to use specify URLs. link:[http://help.sap.com/saphelp_nw70/helpdata/EN/b3/be7941601b1d09e10000000a155106/frameset.htm]
    For example that is the URL from the BDS: "SAPR3://SAPR3CMS/get/100/BDS_5FDB2_5FR/7B3AAF5B22AAD21197ED0060B0672A3C/Forminterface.doc"
    I use the class "CL_BDS_DOCUMENT_SET" with the method "get_with_url". result is above.
    Each example with the OfficeControl from SAP (Package SIOS) use the Mime Repository:
    mime_repository = cl_mime_repository_api=>get_api( ).
      CALL METHOD mime_repository->get
        EXPORTING
          i_url     = url
        IMPORTING
          e_content = content.
      wd_context->set_attribute( name = 'DATAS' value = content ).
    Have any one an idea, how BDS and WebDynpro works together

    What about getting the binary of the word document from BDS and download this?
    Yes, it exist a method calls "get_with_table". This return the binary path from my url above.
    Here is my source code:
    public attributes
    DATA oi_document TYPE REF TO if_ios_wordprocessing.
    DATA oi_factory TYPE REF TO if_ios_factory.
    METHOD wddomodifyview .
    DATA ol_node TYPE REF TO if_wd_context_node.
    DATA ol_office TYPE REF TO cl_wd_office_control.
    DATA vl_document TYPE xstring.
    short from
      vl_document = myBDS->get_with_table( ).
    Settings for UI OFFICE_CONTROL
      ol_node = wd_context->get_child_node( 'OFFICE' ).
      ol_node->set_attribute( name = 'DATASET' value = vl_document ).
    get the office control
      wd_this->oi_office ?= view->get_element( 'OFFICE_CONTROL' ).
    get the IOS Factory
          wd_this->oi_factory ?= ol_office->_method_handler.
    get proxy document
          wd_this->oi_factory->get_wordprocessing_proxy(
          IMPORTING proxy = wd_this->oi_document  ).
    CALL METHOD wd_this->oi_document->if_ios_document~opendocument( ).
    ENDMETHOD.
    When I compile everything is ok. But when I run my application, it nothing happen. No word file is opening or no error message. I create a ALC trace (SAPNOTE 949770).
    Each time when I try to open my word file comes a popup-window from the alc-trace:
    ERRO|20081024143529|WD86_1300|CIOS_GeneralDocumentContainer_Acf::| STG_E_READFAULT  : readaccess|HRESULT=-2147287010(     A disk error occurred during a read operation)
    ERRO|20081024143529|WD86_1300|CIOS_GeneralDocumentContainer_Acf::|Office version is lower than 12, only native office format supported|HRESULT=-2147467259(Unspecified error
    ERRO|20081024143529|WD86_1300|CIOS_GeneralDocumentContainer_Acf::|loadOffice2007xml|HRESULT=-2147467259(Unspecified error )
    But I have access to the BDS and to the document.
    Can any one help me.....
    Regards
    Nils

  • Word-documents from email

    Which app should i use if i want to open and print Word-documents from my email on ipad?

    Documents to Go and Pages are two options and there are others. Just search the app store for word processors. Some are free, others not.

  • Saving webi document from BOXI 3.0 in excel with special character

    Issue :Saving webi document from BOXI 3.0 in excel with special character as report name then file name in excel is not correct.
    This happens only with Mozilla, get correct file name in IE.
    Steps to Reproduce:
    1)Create a simple XI3.0 webi report through mozilla browser
    2)Save the webi report with special character name for e.g øäåýþ.
    3)Open the webi report and save it as excel or pdf file.
    4)Report name øäåýþ saved, displays with other junk characters instead of actual reporta name( øäåýþ)
    5)When saving the save report through IE browser in excel or PDF  display correct report name øäåýþ in excel and PDf file.
    Even after making changes in character encoding to UTF in the Firefox options (Content tab-> font & colors : advanced button -> Character encoding does not make any  difference.
    Has anyone came across such type of issue?
    Whether this is limitation of Firefox or bug.
    Regards,
    Ketki Fadnavis

    Issue :Saving webi document from BOXI 3.0 in excel with special character as report name then file name in excel is not correct.
    This happens only with Mozilla, get correct file name in IE.
    Steps to Reproduce:
    1)Create a simple XI3.0 webi report through mozilla browser
    2)Save the webi report with special character name for e.g øäåýþ.
    3)Open the webi report and save it as excel or pdf file.
    4)Report name øäåýþ saved, displays with other junk characters instead of actual reporta name( øäåýþ)
    5)When saving the save report through IE browser in excel or PDF  display correct report name øäåýþ in excel and PDf file.
    Even after making changes in character encoding to UTF in the Firefox options (Content tab-> font & colors : advanced button -> Character encoding does not make any  difference.
    Has anyone came across such type of issue?
    Whether this is limitation of Firefox or bug.
    Regards,
    Ketki Fadnavis

  • To open a pdf document or word document from a JSP into a new window

    Hi,
    How to open a PDF document or word document from a JSP into a new window. i.e say from a jsp when a hyperlink or button is clicked it should open a new window with the pdf document or word document in it.
    thanks in advance,
    radki_j

    Hi ,
    when i tried to use the below code to open my word document , it will open as html and with some garbage details. Doesnt open as word document. How to solve this kind of probem?Need advice urgently.
    Open Document

  • I've created a Word document from a pdf file. How do i make it editable?

    I've created a Word document from a pdf file. How do i make it editable?

    Hi Kaz1,
    The Word document should be editable after the conversion is complete.  What happens when you try to edit it?
    Thanks,
    David

  • How to edit a converted Word Document from a PDF file

    how to edit a converted Word Document from a PDF file

    Hi Edit Converted Word Doc,
    What's happening when you try to edit the file? Have you tried triple-clicking in the text block that you want to edit?
    Please let us know what sort of trouble you're running into. It would also be helpful to know how the PDF file was created, and what version of Word you're using.
    Best,
    Sara

Maybe you are looking for