SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    document.execCommand issue

    Hi All,

    Iam having a issue relating to SaveAs Window. Iam using the method execCommand for creating SaveAs Window the code which iam using
    in script is document.execCommand('SaveAs',true,'filename.pft');.
    Here when the SaveAs window opens there will be 3 next fields as
    File name,Save as type,Language
    But my requirement is to have only File name Field in the Save as window.

    is there any way to get the solution for this issue.

    I had made some efforts for finding the solutions but not uptill mark .

    Any one who provides me the solutions will be greatly thankfull from my side .

    from,
    Venkat.

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,676
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Unfortunately you will only get the standard dialog.

    I think that the best alternate solution is to have the user provide the filename beforehand, then save without the dialog box by passing false instead of true.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Paul,

    I have tried using false parameter in the document.execCommanad method but my issue remains same...is there any alternate approach.

    from,
    Venkat.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,676
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thankyou Paul for your effort...

    _____________________
    Venkat.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •