Reply
Bit of a clash with Dreamweaver and JavaScript
Old 05-19-2008, 01:14 PM Bit of a clash with Dreamweaver and JavaScript
KkillgasmM's Avatar
Ultra Talker

Posts: 386
Name: El Phantasmo
Location: England, north west
I have my main page design saved as a template that has been applied to all of my pages within a website.

I need to set a
Code:
<body onload="
attribute to call a JavaScript function but I cant becase the code is protected since it is part of the template. Ive tried editing the code so that I could edit the <body> attributes from any page that uses the template; like so:


Code:
<!-- TemplateBeginEditable name="body" -->

<body>

<!-- TemplateEndEditable -->
But Dreamweaver doesn't seem to like it and when I go to the design view the whole window is just blank!

Does anyone know of a way around this? Or is my only hope to have the whole page as an editable region?
__________________
New Portfolio
KkillgasmM is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-19-2008, 01:38 PM Re: Bit of a clash with Dreamweaver and JavaScript
chrishirst's Avatar
Super Moderator

Posts: 15,229
Location: Blackpool. UK
edit the template in Notepad
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-19-2008, 02:10 PM Re: Bit of a clash with Dreamweaver and JavaScript
KkillgasmM's Avatar
Ultra Talker

Posts: 386
Name: El Phantasmo
Location: England, north west
I was considering doing that, but I was hoping to find a way to do it in Dreamweaver. I think it might be an obsessive compulsive thing lol
__________________
New Portfolio
KkillgasmM is offline
Reply With Quote
View Public Profile
 
Old 05-19-2008, 04:37 PM Re: Bit of a clash with Dreamweaver and JavaScript
LadynRed's Avatar
Super Moderator

Posts: 6,718
Location: Tennessee
If you don't have the DWT file to edit THAT, then you'll have to edit it in Notepad.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Bit of a clash with Dreamweaver and JavaScript
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12078 seconds with 12 queries