Kbase 18490: Syntax Needed When Displaying Word Phrase in WebSpeed HTML
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/26/2003 |
|
Status: Unverified
GOAL:
What syntax is needed when displaying a word phrase within a text html tag in the Webspeed editor?
FIX:
This solution illustrates why quotations and backtics are neccessary to display more than one word within a text HTML tag in the WebSpeed editor. A code sample is provided that will display an entire word phrase.
1) Launch WebSpeed
2) Connect to the Websport Database.
3) Create a blank HTML document.
4) In the WebSpeed Editor type:
<html>
<head></head>
<body>
<script Language = "SpeedScript">
FIND Customer WHERE Customer.address = "276 North Street".
</script>
<form>
<INPUT TYPE ="text" NAME="Address" SIZE="100"
MAXLENGTH="100" VALUE=`html-encode(Customer.Address)`>
</form>
</body>
</html>
5) Save document and run it in the Workshop.
**Notice that only "276" appears in the text box because of
of the `` around the VALUE portion in INPUT TYPE html tag**
6) Now change the INPUT TYPE tag to:
<INPUT TYPE ="text" NAME="Address" SIZE="100"
MAXLENGTH="100" VALUE="`html-encode(Customer.Address)`">
**Notice the extra set of " " in the VALUE portion of this
tag**
7) Save document and run it in the Workshop.
**Notice now the full "276 North Street" will appear in the box**