Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Load a Text File into a Textfield

Posted on 2002-05-27
4
Medium Priority
?
218 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 400 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

688 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