Template behavior problem

message from Tine Müller on 16 Jul 2004
When you click on "Se her!" (sidste_nyt.html) from dwt
http://www.tinemuller.dk/baadfarten/Templates/baadfarten_index.dwt the
window open with the behavior
but if you click on the children's pages
http://www.tinemuller.dk/baadfarten/index.html it doesn't work. :-(

<td width="31%" valign="middle">Sidste nyt - <a href="javascript:; "
onClick="Lvl_openWin('../sidste_nyt.html','','400','300','0','0','1','width=
400,height=300')">Se
her !</a><br>

What have I done wrong, please help?
 
Murray *TMM* replied to Tine Müller on 16 Jul 2004
Try linking to that file using root relative links. The problem is this -
since you have used a 3rd party behavior, DW is not recognizing that link
and is not managing it in the template child pages.

In other words, in the Template, change this -

Lvl_openWin('../sidste_nyt.html'

to this -

Lvl_openWin('/baadfarten/sidste_nyt.html'

and see what happens.
 
Tine Müller replied to Murray *TMM* on 16 Jul 2004
It's functioning, thanks. But will it also be ok when I'm finished with the
site and are uploading it to my customer's webhotel?

/Tine

"Murray *TMM*" <forums@HAHAgreat-web-sights.com> skrev i en meddelelse
news:cd8hn7$cb6$1@forums.macromedia.com...
href="javascript:;
onClick="Lvl_openWin('../sidste_nyt.html','','400','300','0','0','1','width=
 
Murray *TMM* replied to Tine Müller on 16 Jul 2004
If the folder structure is exactly the same, yes, it will work fine.
 
Tine Müller replied to Murray *TMM* on 17 Jul 2004
I only tested the site offline and when I uploaded the site the links are
not functioning. :-(
Do I have to make the link absolute
http://www.tinemuller.dk/baadfarten/sidste_nyt.html to functioning and then
remember to change the address when uploading to the customer?

recognizing that

What do you mean with "3rd party behavior"? Is there a site where I can read
about this problem?
 
Murray *TMM* replied to Tine Müller on 19 Jul 2004
*If your local and your remote sites have the identical structure from root
level down* and *if your root relative links work locally*, then they will
work remotely.

No.

3rd party behavior is one by someone other than Macromedia.

Here's an example of what I mean. If you apply an OpenBrowserWindow
behavior to a page, it won't matter where you save that page in your site's
folder hierarchy, because DW knows how to find "MM_openBrWindow" so that it
can adjust the link to the specified page. But if you would change the call
on the event from "MM_openBrWindow" to "openBrWindow" then DW will not find
the link, and will not manage it (I think).
 

Archived message: Template behavior problem (Macromedia Dreamweaver)