Solved

Load a Text File into a Textfield

Posted on 2002-05-27
4
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

622 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