Automatically detect link to picture?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sunsolaris2000
    New Member
    • Jan 2012
    • 20

    #1

    Automatically detect link to picture?

    I have a simple HTML page(not on server, but on PC) and it contains links to pictures.
    If I use a memory USB to store the page and I insert the memory USB into another PC I need to change the path so the webpage can still find the link to the picture.
    Is it possible to find the link automatically with JavaScript? How?

    Thank you in advance!
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Is it possible to find the link automatically with JavaScript?
    no. JavaScript is not able to access the client file system.

    Comment

    • sunsolaris2000
      New Member
      • Jan 2012
      • 20

      #3
      Is there other solution to find the link auto.?

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        if you're on another PC and the original one is not a server, how do you access the images then?

        best is to save the images on the USB stick as well. (or to export the website)

        Comment

        • sunsolaris2000
          New Member
          • Jan 2012
          • 20

          #5
          I want to access the html page from the memory usb without chaging the path(for m.USB, my pc uses G://, but other pc might have E://)

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            and how do you want to do that if you don’t know the path to the HTML file?

            At least you can definitely exclude A:, B: and C: *gg*

            Comment

            • sunsolaris2000
              New Member
              • Jan 2012
              • 20

              #7
              Isn't possible with a script to identify the path?...really, teacher asked me to do that

              Comment

              • Dormilich
                Recognized Expert Expert
                • Aug 2008
                • 8694

                #8
                JavaScript has no access to the client file system. any more questions?

                Comment

                • sunsolaris2000
                  New Member
                  • Jan 2012
                  • 20

                  #9
                  My friend who asked explained me again and seems she didn't ask that from the start. She wanted to say actually how is the path to the picture being found. I told her to just type the name+ extension in the href. Sorry...misunde rstandings She is not in the domain but needed a html project for school.

                  Comment

                  Working...