Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Sid Skiba #1
OnLoad and Templates
I have a question that maybe someone can answer here. I am using a template
in DW6. The edit regions are in the header and the body. I need to call a
function using OnLoad, but the template will not allow the Body tag to be
edited unless I break it away from the template. And I wish to avoid that.
Can anyone suggest a trick or advise another way of doing this.
I though of having a dummy function on all pages in the editable header
region that gets called by OnLoad and on those pages that I need, I have the
dummy function call the actual functions I need. Those pages where I have no
need for function I could just leave dummy function empty, except it must be
added to all pages.
This seems messy to me though. Can anyone suggest a more eloquent approach?
Regards,
Sid
Sid Skiba Guest
-
Libraries, Templates, Nested Templates, Repeat Regions,
Hi I have eight categories to display in my site navigation. Each category has at least one (some have two) levels of subcategories. For example... -
Issues with templates and nested templates
Hello, I hope there is someone out there that can help me. I created a website using 1 main template and several nested templates. Everything... -
onload validation
i want an error message THAT LOOKS LIKE THE FLASH FORM ERROR MESSAGES to appear as soon as a form loads. I wrote this but it doesnt work <cfform... -
Dreameaver Templates Applide to Templates?
Hello, I was updating pages using templates today and I found that I had to create several templates to cover different styles of pages. There... -
onload/onopen
once i updated to office 2000 sp3 and windows 2000 sp4, access will no longer fire up the onload and onopen. -
Sid Skiba #2
Re: OnLoad and Templates
I like suggestion 2. Will work perfectly. Thanks a bunch.
"Murray *TMM*" <forums@HAHAgreat-web-sights.com> wrote in message
news:bgdmkd$bgs$1@forums.macromedia.com...in> Sid:
>
> I can be eloquent about approaches that may or may not be elegant, but all
> of them are a bit messy! 8)
>
> You can -
>
> 1. Do exactly what you have described with a dummy function in the head
> editable region, or
> 2. Make the 'onLoad' attribute of the <body> tag editable (MODIFY |
> Templates > Make Tag Editable...). This will create a Template Parameterthen> the onLoad call, e.g., <body onLoad="@@(load_parameter)@@"...>, and youa> have access to this parameter on each child page via MODIFY | Template
> Properties. However, if your call is long and involved (like a large
> preload) it will still be a messy job.
>
> The alternative is to use a dynamically written body tag, but DW is not so
> happy with such pages....
>
> --
> Murray --- ICQ 71997575
> Team Macromedia Volunteer for Dreamweaver MX
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
> [url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
> ANSWERS
> ==================
> [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
> [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
> [url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
> [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
> ==================
>
> "Sid Skiba" <sidskiba@telus.net> wrote in message
> news:bgd65i$buh$1@forums.macromedia.com...> template> > I have a question that maybe someone can answer here. I am using a> > in DW6. The edit regions are in the header and the body. I need to callbe> > function using OnLoad, but the template will not allow the Body tag tothat.> > edited unless I break it away from the template. And I wish to avoidhave> the> >
> > Can anyone suggest a trick or advise another way of doing this.
> >
> > I though of having a dummy function on all pages in the editable header
> > region that gets called by OnLoad and on those pages that I need, I have> > dummy function call the actual functions I need. Those pages where Imust> no> > need for function I could just leave dummy function empty, except it> be> approach?> > added to all pages.
> >
> > This seems messy to me though. Can anyone suggest a more eloquent>> >
> > Regards,
> >
> > Sid
> >
> >
>
Sid Skiba Guest



Reply With Quote

