Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool How can i get the filename from save as dialog box

    Hi

    This is muthu, I need one help from you
    I have create a jsp page which contains button, when i click the button, a new file dialog box will open and then i enter the file name, then i get the file name from the box through java script

    whether it is possible in java script?

    Could u please help me

    Regards
    Marimuthu

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,037
    Thanks
    203
    Thanked 2,539 Times in 2,517 Posts
    Is this what you mean?

    Code:
    Enter the file name: <input type = "text" name = "fileid" id = "fileid" size = 20" onblur = "getName()">
    
    <script type = "text/javascript">
    function getName() {
    var fn = document.getElementById("fileid").value
    alert (fn);
    }
    </script>

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.


  •  

    Posting Permissions

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