• Lucid Dreaming - Dream Views




    Results 1 to 25 of 26

    Hybrid View

    1. #1
      Member really's Avatar
      Join Date
      Sep 2006
      Gender
      Posts
      2,676
      Likes
      56

      Website programming

      Hey,

      Can anybody help me program, using Dreamweaver, a dialogue box to pop up on a custom website? I.e. "You're about to download... Open/Save File/Cancel"

      Thanks in advance.

    2. #2
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Woah, what on earth are you trying to achieve here?
      I think a little more detail is required

      from the one-liner above, it sounds like you're trying to mimic what browsers already do (Ie. manage file downloads)
      This is not a good thing to try to do

      if you try to override people's browsers,
      1) you won't succeed, you will not be able to support all browsers on all platforms under all circumstances
      2) even if you do, you will piss people off by doing it
      3) any simple update to a browser could render your mimic worthless

      I'm assuming the "open" option means download the file to a temp location and open it in some application local to the user
      you cannot do this (not properly anyway)
      you can't control what the user does on his machine

      seriously, if you want to offer something for download, just use a simple anchor
      let the user decide what they want to do with the file
      (\_ _/)
      (='.'=)
      (")_(")

    3. #3
      Member really's Avatar
      Join Date
      Sep 2006
      Gender
      Posts
      2,676
      Likes
      56
      Quote Originally Posted by Ynot View Post
      Woah, what on earth are you trying to achieve here?
      I think a little more detail is required

      from the one-liner above, it sounds like you're trying to mimic what browsers already do (Ie. manage file downloads)
      This is not a good thing to try to do

      if you try to override people's browsers,
      1) you won't succeed, you will not be able to support all browsers on all platforms under all circumstances
      2) even if you do, you will piss people off by doing it
      3) any simple update to a browser could render your mimic worthless

      I'm assuming the "open" option means download the file to a temp location and open it in some application local to the user
      you cannot do this (not properly anyway)
      you can't control what the user does on his machine

      seriously, if you want to offer something for download, just use a simple anchor
      let the user decide what they want to do with the file
      Oh, ok. I wasn't aware I just had to do that.

      So how do you do this?

      Attempt to paste the file and link it via html? - But then It'd probably open up through the browser rather than through a dialogue box...

    4. #4
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      what exactly are you offering to your visitors?
      (\_ _/)
      (='.'=)
      (")_(")

    5. #5
      Member really's Avatar
      Join Date
      Sep 2006
      Gender
      Posts
      2,676
      Likes
      56
      Quote Originally Posted by Ynot View Post
      what exactly are you offering to your visitors?
      I want to try:

      Mp3s, Jpegs and Pdfs.

    6. #6
      ex-redhat ClouD's Avatar
      Join Date
      Sep 2007
      Posts
      4,760
      Likes
      129
      DJ Entries
      1
      I think he just wants an automatic browser based download box to come up, but is unsure how to get one to, as opposed to file automatically opening in the browser.
      You merely have to change your point of view slightly, and then that glass will sparkle when it reflects the light.

    7. #7
      Member really's Avatar
      Join Date
      Sep 2006
      Gender
      Posts
      2,676
      Likes
      56
      Quote Originally Posted by ClouD View Post
      I think he just wants an automatic browser based download box to come up, but is unsure how to get one to, as opposed to file automatically opening in the browser.
      Yep.

    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
    •