| DreamWeaver 8 Templates body onLoad |
ControlZ

msg:3070885 | 2:05 am on Sep 4, 2006 (gmt 0) | I have a set of pages that use the same DW template, but within these pages, I need to call a different form file from the body tag in order to run an AJAX application. Using the templates as they are currently set-up causes the body tag <body onLoad="getFrm('log');"> to appear on each page, BUT I need to call different forms on some of the pages. Is there a way to include the body tag in an editable region so I can change the name of the form that is called from the onLoad function? I probably have a set of 40 pages each using the same DW template and several of these pages need to call different forms for distinct AJAX applications.
|
ControlZ

msg:3070889 | 2:19 am on Sep 4, 2006 (gmt 0) | Sorry folks - just found this in another post. Sounds like it will work: You can make the onload attribute of the body tag editable (even though it's not in an editable region) by putting the cursor in the body tag, and choosing modify/template/make attribute editable. DW will throw some code into the template, and the result is that when you go into a document based on the template, you can click modify/template properties, and set the appropriate action you want for onload.
|
|
|