Solved

Load a Text File into a Textfield

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't get  my Web page's sublist  to display on Ipad or Iphone 8 681
FINDNOCASE 2 557
Issue when emailing and there is a space 7 395
DW UserID Session from Login 1 111
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

831 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