JS script in Head

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

JS script in Head

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: JS script in Head

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
rj
Regular
Posts: 477
Joined: Sun Sep 10, 2006 2:53 pm

Post by rj »

Just to make sure, I only have to have the JS script pointer in the <head of index.tpl? Or entries.tpl?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply