HighDots Forums  

inserting javascript between <head> tags on template based page???

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss inserting javascript between <head> tags on template based page??? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
laura
 
Posts: n/a

Default inserting javascript between <head> tags on template based page??? - 07-20-2004 , 03:48 PM






hi!

i need to add some javascript between the head tags of 10 pages of my site
(this is for click-thru tracking). this should be simple enough, but i use
a template for all my pages.

i don't want the javascript on all my pages, otherwise i would insert it in
the template and i don't want to unattach the few pages from the template
either (i don't want to have to manually update 11 pages every time there is
a change in navigation).

i know i once was able to insert an "editable" tag into the template head,
which would leave an editable area in all my pages, but i can't find the tag
information and am not sure if it is still possible with the new version of
dreamweaver.

is there a workaround for this?

i'm using dreamweaver mx 2004 v7.0.1
windows xp professional

thanks

http://www.custombrokerage.com



Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: inserting javascript between <head> tags on template based page??? - 07-20-2004 , 04:02 PM






If the template was created in DMX or DMX2004, then there is an editable
region already in the head for you to use for just exactly this purpose on
any given child page. DW will be smart enough to add behavior javascript to
this region when applying a behavior to a child page.

It the template was created in DW4, or was not properly created in DMX or
DMX2004, then this region may not be there, in which case you can add it
manually. Just open the Template page and enter the following code, save
the template and allow all child pages to update....

<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"laura" <lbarba (AT) futuresworld (DOT) com> wrote

Quote:
hi!

i need to add some javascript between the head tags of 10 pages of my site
(this is for click-thru tracking). this should be simple enough, but i
use
a template for all my pages.

i don't want the javascript on all my pages, otherwise i would insert it
in
the template and i don't want to unattach the few pages from the template
either (i don't want to have to manually update 11 pages every time there
is
a change in navigation).

i know i once was able to insert an "editable" tag into the template head,
which would leave an editable area in all my pages, but i can't find the
tag
information and am not sure if it is still possible with the new version
of
dreamweaver.

is there a workaround for this?

i'm using dreamweaver mx 2004 v7.0.1
windows xp professional

thanks

http://www.custombrokerage.com





Reply With Quote
  #3  
Old   
laura
 
Posts: n/a

Default Re: inserting javascript between <head> tags on template based page??? - 07-20-2004 , 04:17 PM



Thanks Murray!!

I originally created my template page in DW4 and migrated it to DWMX2004 so
that is probably why the tag isn't there...

yay! ::runs off to edit the template::

Laura

"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote

Quote:
If the template was created in DMX or DMX2004, then there is an editable
region already in the head for you to use for just exactly this purpose on
any given child page. DW will be smart enough to add behavior javascript
to
this region when applying a behavior to a child page.

It the template was created in DW4, or was not properly created in DMX or
DMX2004, then this region may not be there, in which case you can add it
manually. Just open the Template page and enter the following code, save
the template and allow all child pages to update....

!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"laura" <lbarba (AT) futuresworld (DOT) com> wrote in message
news:cdjsub$qvo$1 (AT) forums (DOT) macromedia.com...
hi!

i need to add some javascript between the head tags of 10 pages of my
site
(this is for click-thru tracking). this should be simple enough, but i
use
a template for all my pages.

i don't want the javascript on all my pages, otherwise i would insert it
in
the template and i don't want to unattach the few pages from the
template
either (i don't want to have to manually update 11 pages every time
there
is
a change in navigation).

i know i once was able to insert an "editable" tag into the template
head,
which would leave an editable area in all my pages, but i can't find the
tag
information and am not sure if it is still possible with the new version
of
dreamweaver.

is there a workaround for this?

i'm using dreamweaver mx 2004 v7.0.1
windows xp professional

thanks

http://www.custombrokerage.com







Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: inserting javascript between <head> tags on template based page??? - 07-20-2004 , 04:23 PM



Louise:

You're welcome....

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"laura" <lbarba (AT) futuresworld (DOT) com> wrote

Quote:
Thanks Murray!!

I originally created my template page in DW4 and migrated it to DWMX2004
so
that is probably why the tag isn't there...

yay! ::runs off to edit the template::

Laura

"Murray *TMM*" <forums (AT) HAHAgreat-web-sights (DOT) com> wrote in message
news:cdjtor$s1t$1 (AT) forums (DOT) macromedia.com...
If the template was created in DMX or DMX2004, then there is an editable
region already in the head for you to use for just exactly this purpose
on
any given child page. DW will be smart enough to add behavior
javascript
to
this region when applying a behavior to a child page.

It the template was created in DW4, or was not properly created in DMX
or
DMX2004, then this region may not be there, in which case you can add it
manually. Just open the Template page and enter the following code,
save
the template and allow all child pages to update....

!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"laura" <lbarba (AT) futuresworld (DOT) com> wrote in message
news:cdjsub$qvo$1 (AT) forums (DOT) macromedia.com...
hi!

i need to add some javascript between the head tags of 10 pages of my
site
(this is for click-thru tracking). this should be simple enough, but
i
use
a template for all my pages.

i don't want the javascript on all my pages, otherwise i would insert
it
in
the template and i don't want to unattach the few pages from the
template
either (i don't want to have to manually update 11 pages every time
there
is
a change in navigation).

i know i once was able to insert an "editable" tag into the template
head,
which would leave an editable area in all my pages, but i can't find
the
tag
information and am not sure if it is still possible with the new
version
of
dreamweaver.

is there a workaround for this?

i'm using dreamweaver mx 2004 v7.0.1
windows xp professional

thanks

http://www.custombrokerage.com









Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.