Adobe Dreamweaver CS3 Manuel d'utilisateur Page 676

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 738
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 675
DREAMWEAVER CS3
User Guide
669
IntheadvancedSiteDefinitiondialogbox,thepathofyourlocalrootfoldermustbethesameasthepathofthe
testing server folder (for example, c:\Inetpub\wwwroot\cf_projects\myNewApp\). You can examine and change
these paths by selecting Site > Edit Sites.
The component must be stored in the local site folder or any of its subfolders on your hard disk.
Open any ColdFusion page in Dreamweaver and display the components in the Components panel. To display the
components, open the Components panel (Window > Components), select CF Components from the panel’s
pop-up menu, and click the Refresh button on the panel.
Because ColdFusion is running locally, Dreamweaver displays component packages on your hard disk.
Use the following procedure to edit a component.
1 Open any ColdFusion page in Dreamweaver and display the components in the Components panel (Window >
Components).
2 Select CF Components from the panels pop-up menu, and click the Refresh button on the panel.
Because ColdFusion is running locally, Dreamweaver displays component packages on your hard disk.
Note: To edit the CFC recordset visually, double-click it in the Bindings panel.
3 To edit a component file generally, open the package and double-click the component name in the tree view.
The components file opens in Code view.
4 To edit a specific function, argument, or property, double-click the item in the tree view.
5 Make your changes by hand in Code view.
6 Save the file (File > Save).
7 To see any new function in the Components panel, refresh the view by clicking the Refresh button on the panel
toolbar.
See also
“View CFCs in Dreamweaver” on page 667
Build web pages that use CFCs
Onewaytouseacomponentfunctioninyourwebpagesistowritecodeinthepagethatinvokesthefunctionwhen
the page is requested. You can use Dreamweaver to help you write this code.
Note: For other ways to use components, see the ColdFusion documentation from within Dreamweaver (Help > Using
ColdFusion).
1 In Dreamweaver, open the ColdFusion page that will use the component function.
2 Switch to Code view (View > Code).
3
Open the Components panel (Window > Components), and select CF Components from the panel’s pop-up menu.
4 Find the component you want and insert it using one of the following techniques:
Drag a function from the tree view to the page. Code is inserted in the page to invoke the function.
SelectthefunctioninthepanelandclicktheInsertbuttononthepaneltoolbar(thesecondbuttonontheright).
Dreamweaver inserts the code in the page at the insertion point.
5 If you insert a function that has arguments, complete the argument code by hand.
September 4, 2007
Vue de la page 675
1 2 ... 671 672 673 674 675 676 677 678 679 680 681 ... 737 738

Commentaires sur ces manuels

Pas de commentaire