Solved

Load a Text File into a Textfield

Posted on 2002-05-27
4
210 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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…
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now