Page 1 of 1

JS script in Head

Posted: Sat Jul 26, 2008 3:45 am
by rj
Serving my own videos I ran into a problem. My js script works fine at the domain level, but as soon as you go to that aricle or a category the video is gone.

There are the pointers in the head...
The swf file on the server
and the code for the flash file in the article.
I recently added full path to the code in the article which did not help.

What you think?

Thanx

RJ

Re: JS script in Head

Posted: Sat Jul 26, 2008 10:26 am
by garvinhicking
Hi!

Maybe same problem like you had a few months ago. Use full relative paths /path/to/serendipity and never relative paths like blog/blabla.

Are you ABSOULTELY sure you have not left any relative paths in thecommand arguments to your javascript thingie? like /path/to/flash?input=blog/blalbla would need to reat /path/to/flash?input=/blog/blalbla

Regards,
Garvin

Posted: Sat Jul 26, 2008 2:22 pm
by rj
Just to make sure, I only have to have the JS script pointer in the <head of index.tpl? Or entries.tpl?

Posted: Sat Jul 26, 2008 8:56 pm
by garvinhicking
Hi!

<head> is always only index.tpl, entries.tpl only contains HTML output that is within <body>.

Regards,
Garvin