The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
HTML <input type='file'>, !*! kinguru, 24-Авг-03, 15:32  [смотреть все]
Люди поможите! Когда в тег <input type='file'> вставляю значение по умолчанию value='333.txt' то в форме ничего такого не отображается. Браузер Konqueror
  • HTML <input type='file'>, !*! sas, 03:59 , 25-Авг-03 (1)
    >Люди поможите! Когда в тег <input type='file'> вставляю значение по умолчанию value='333.txt' то в форме ничего такого не отображается. Браузер Konqueror

    From http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm
    <<
    Browser Peculiarities
        
    Internet Explorer and Netscape do not use the VALUE attribute         as the default contents of the input area. Any default value set via         HTML is not usable via scripting and the DOM as well (hence it is not         listed as 'supported' in any of the browsers.) If a user enters text         in the field however, that value is then reachable via the DOM as         it normally would be for a normal INPUT field (via the .value property.)         The reason for this behavior would presumably be to ensure the         security/safety of users against malicious authors. Opera displays the          default VALUE attribute value and submits it as well (although it prompts          for confirmation on submit if you have not altered that value.)    
    Netscape 2+ only supports the onChange event handler attribute in cases         where the user enters or modifies text via the text box; if the         "Browse..." button is the only thing used, the event is not fired.         Internet Explorer 4.0+ fires the event in both cases.    
    Netscape 4+ allows some Character-level formatting to be applied to the         contents of this form field. These physical formatting elements (along with         virtual formatting elements that are rendered identically, such as         EM and I) apply to this form field: I, U, S, STRIKE, SUB, SUP, BIG,         SMALL, FONT SIZE and FONT FACE.    
    Using a READONLY attribute in IE4 and IE5 on this element still allows         a user to invoke the file...open dialog (from the "Browse..." button),         although the text field is not directly editable. In IE5.5 plus, both the         text field AND the file...open dialog are not usable.    
    Opera 5/6: Using the DISABLED attribute still sends the name/value pair         for the element to the form processing script. It should not do this.
    >>

    Good luck
    --- sas


    • HTML <input type='file'>, !*! kinguru, 12:36 , 25-Авг-03 (2)
      >>Люди поможите! Когда в тег <input type='file'> вставляю значение по умолчанию value='333.txt' то в форме ничего такого не отображается. Браузер Konqueror
      >
      >From http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm
      ><<
      >Browser Peculiarities
      >
      >Internet Explorer and Netscape do not use the VALUE attribute  
      >      as the default contents of

      Спасибо, я прочел. Но не все так как тут описано - параметр VALUE в тегах <input type='text'>  работают, а в type='file' не работает. вот в чем дело.
      Вопрос - как правильно выдавать текст для редактировагния пользователем на веб страницку посредством PHP если не использовать параметр VALUE тега INPUT?


      • HTML <input type='file'>, !*! sas, 13:39 , 25-Авг-03 (3)
        >>>Люди поможите! Когда в тег <input type='file'> вставляю значение по умолчанию value='333.txt' то в форме ничего такого не отображается. Браузер Konqueror
        >>
        >>From http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm
        >><<
        >>Browser Peculiarities
        >>
        >>Internet Explorer and Netscape do not use the VALUE attribute  
        >>      as the default contents of
        >
        >Спасибо, я прочел. Но не все так как тут описано - параметр VALUE в тегах <input type='text'>  работают, а в type='file' не работает. вот в чем дело.
        >Вопрос - как правильно выдавать текст для редактировагния пользователем на веб страницку
        >посредством PHP если не использовать параметр VALUE тега INPUT?

        Go to the link I've posted previously and you'll see that they are talking about type="file"

        <input type="text" name="f1" id="f1" value="<?php echo( $v_f1 ); ?>">

        Please be sure that $v_f1 does not have '<'; '>' and '"' characters inside

        Good luck
        --- sas





Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру