homepage Welcome to WebmasterWorld Guest from 54.227.34.0
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
DreamWeaver 8 Templates
body onLoad
ControlZ

10+ Year Member



 
Msg#: 3070883 posted 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

10+ Year Member



 
Msg#: 3070883 posted 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved