Solved

Load a Text File into a Textfield

Posted on 2002-05-27
4
214 Views
Last Modified: 2010-04-25
How do I load an External Text File into a Textfield with DW or Javascript. (I don't have any DB access or Serversided Script ability)
0
Comment
Question by:scottstram
  • 2
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 7050311
Go to Dreamweaver HELP/INDEX/S
go down to ..server-side includes..
read that and you're in business.

The instruction Dreamweaver inserts when you use this
feature is a 'raw' command to the server so you don't
need any scripting skills to use it.

You will need to find out from your ISP what type of
web server they use and if the file you want to include
needs a particular file extension...

Z
0
 

Author Comment

by:scottstram
ID: 7050386
So there is no way to load a text file into a text box like you can in Flash ?
0
 
LVL 23

Accepted Solution

by:
Zeffer earned 100 total points
ID: 7050476
Flash uses Load variables to accomplish this..you can do the same in an HTML page with JavaScript or ASP or..the following is how to do it using DHTML in Dreamweaver...the variable is the name you give the text field..

>>The Set Text of Text Field action replaces the content of a form's text field with the content you specify.

You can embed any valid JavaScript function call, property, global variable, or other expression in the text. To embed a JavaScript expression, place it inside braces ({}). To display a brace, precede it with a backslash (\{).

Example

The URL for this page is {window.location}, and today is {new Date()}.
To create a named text field:

1  Choose Insert > Form Objects > Text Field.
 If Dreamweaver prompts you to add a form tag, click Yes. For more information, see Forms overview.
2  In the Property inspector, type a name for the text field. Make sure the name is unique on the page (don't use the same name for multiple elements on the same page, even if they're in different forms).
 


To use the Set Text of Text Field action:

1  Select a text field and open the Behaviors panel.
2  Click the Plus (+) button and choose Set Text > Set Text of Text Field from the Actions pop-up menu.
3  In the Set Text of Text Field dialog box, choose the target text field from the Text Field pop-up menu.
4  Enter text in the New Text field, then click OK.
5  Check that the default event is the one you want. If it isn't, choose another event from the pop-up menu.  
 If you don't see the events you want, change the target browser in the Show Events For pop-up menu.<<

Z


0
 

Author Comment

by:scottstram
ID: 7050577
Thanks alot for your help.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
COLDFUSION 9 DEVELOPMENT SERVER STOPPED WORKING 9 464
Download all files with one click 7 610
Replace Dreamweaver with what? 8 174
JQuery form validation for bootstrap 1 198
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question