Default Values

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
xLechugasx
Forum Newbie
Posts: 14
Joined: Wed Aug 28, 2002 9:56 am

Default Values

Post by xLechugasx »

Hi to all!
I have different objects in my page, such as text boxes, check boxes, file input and text areas.
I know that to enter a default value in the text box I use the value property. But, which is the name of the property to set the default value in the textarea and in the file input?
Thanks,
Nicolas
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

Use "value" for file as well and use this format for the default value of textarea

Code: Select all

<TEXTAREA>
Default value
</TEXTAREA>
xLechugasx
Forum Newbie
Posts: 14
Joined: Wed Aug 28, 2002 9:56 am

Post by xLechugasx »

Thanks a lot!
Does anybody know how to do it with the file input?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

the value-property (value="predefined.file") was interpreted [long,long time ago ;) ], but not any longer - security issues.
xLechugasx
Forum Newbie
Posts: 14
Joined: Wed Aug 28, 2002 9:56 am

Post by xLechugasx »

Where are you talking about volka?
Shouldn't I use it in the text field, the value property, or are you talking about in the file input?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

I meant <input type="file" name="xyz" value="input.txt" />
But as mentioned: this isn't anymore (I know what files I would set as default-values - of course only if I would be evil-volka ;) )
Post Reply