www.webdeveloper.com
Results 1 to 5 of 5

Thread: Total Newbie!!!!

  1. #1
    Join Date
    Aug 2012
    Posts
    8

    Total Newbie!!!!

    Hi all,

    I have tried PHP, I have tied ASP I now am on Javascript to try do do what appears to be simple I have a webpage on my IIS server and I want to change a piece of text on the page based on ideally a file being present in the webpage folder, is this possible?

    So webpage says "1" if file in intpub//wwwroot is there and "2" if its not.

    I am a total web newbie but have coded in VB and a few other languages.

    Steve

  2. #2
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,259
    Hard to help anyone when we don't have some reference code to start the discussion with.
    Show what your attempted script looks like.

  3. #3
    Join Date
    Aug 2012
    Posts
    8

    No code

    JMRKER, must not have made it clear sorry, "I am a total newbie", I have not attempted anything as I don't know the following

    a) If it can be done
    b) how to do it

    Also if I attempted it it would probably muddy what might be a simple task.

    If anyone can say "yes, that can be done" and this is how "bla bla bla" it would be much appreciated?

    Steve

  4. #4
    Join Date
    Aug 2012
    Posts
    8

    Please help :(

    Can anyone please help?

  5. #5
    Join Date
    Dec 2005
    Location
    FL
    Posts
    7,259
    According to this site: http://stackoverflow.com/questions/3...-or-javascript
    this will work
    Code:
    <html>
    
    <head>
    <script>
    function check()
    {
    webAdd=prompt("Enter url here in given format: www.google.com","www.google.com")
    {
    window.open("http://"+webAdd+"")
    }
    }
    </script>
    </head>
    
    <body>
    <input type="button" value="Check URL" onclick="check()">
    </body>
    
    </html>
    But according to this site: http://tycoontalk.freelancer.com/jav...le-exists.html
    it will not unless you provide special extra coding.

    And this site: http://www.codingforums.com/archive/...p/t-49048.html
    says yes and no.

    It is not a standard command, so you'll get varying answers for various conditions.

    Again without some code to view (even if you are a noobie) , it is difficult to give you a definite answer.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles