Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
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?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 05-19-2008, 01:38 PM Re: Bit of a clash with Dreamweaver and JavaScript
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
edit the template in Notepad
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
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
pealo86's Avatar
Super Spam Talker

Posts: 850
Name: Matt Pealing
Location: England, north west
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 05-19-2008, 04:37 PM Re: Bit of a clash with Dreamweaver and JavaScript
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Bit of a clash with Dreamweaver and JavaScript
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





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



Page generated in 0.14927 seconds with 12 queries