1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Inital value to fields

Discussion in 'C#' started by red_fiesta, Dec 4, 2006.

  1. #1
    How do i set an inital value to a field which is a file..

    ie

    <input name="attach1" value="testest" id="attach1" type=file size=30>

    doesnt work as testest doesnt show

    any ideas?
     
    red_fiesta, Dec 4, 2006 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    you could try an onload function to set the value of it

    
    
    <script language="javascript">
    function FillFields(){
    document.getElementById('attach1').value="C:\whatever.txt"
    }
    </script>
    
    <body onload="FillFields()">
    
    Code (markup):
     
    krakjoe, Dec 4, 2006 IP
  3. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #3
    scratch that, doesn't work.... :S
     
    krakjoe, Dec 4, 2006 IP
  4. red_fiesta

    red_fiesta Peon

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    apparently they taken away the finctionality due to security reasons..
     
    red_fiesta, Dec 4, 2006 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    lol, I just read that too ....
     
    krakjoe, Dec 4, 2006 IP
  6. red_fiesta

    red_fiesta Peon

    Messages:
    125
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6

    so no way around this?
     
    red_fiesta, Dec 4, 2006 IP
  7. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #7
    dont think so :(
     
    krakjoe, Dec 4, 2006 IP