Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-18 00:26:51
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Livesearch javascript doesn't work on error 404 page
I have im my head some css style and javascript, but it is not working on 404 page.
What is the relative path to my 404 error page?
Thanx…
(Edit: updated thread title to something more useful. :) -Mary)
Last edited by Mary (2006-03-18 02:36:46)
Offline
#2 2006-03-18 00:45:45
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Livesearch javascript doesn't work on error 404 page
It could be anything. If the user requests http://example.com/this/is/the/day, your paths will be relative to “/this/is/the/day”. That’s the browser’s behaviour, not Textpattern’s.
Use absolute urls instead.
Alex
Offline
#3 2006-03-18 00:55:20
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: Livesearch javascript doesn't work on error 404 page
Yes, of course it was my first ide, but if I use rss_live_search and paste instead txp:rss_live_search_js / this:
script type=“text/javascript” src=“http://blog.wordstudio.cz/?file=livesearch” /script
It’s still not working… :-(
Offline
#4 2006-03-18 00:57:20
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Livesearch javascript doesn't work on error 404 page
I’m not sure what “it” is, but perhaps your problem is with the plugin.
Take a look at the HTML source, and make sure you understand relative URLs.
Alex
Offline
#5 2006-03-18 01:11:32
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: Livesearch javascript doesn't work on error 404 page
zem wrote:
I’m not sure what “it” is, but perhaps your problem is with the plugin.
Take a look at the HTML source, and make sure you understand relative URLs.
No, my problem is, that the plugin is not working only on the error 404 page.
Plugin replace it’s <rss_live_search /> for the whole path
http://blog.wordstudio.cz/?file=livesearch
But only on the 404 err page it’s not working.
Even /?file=livesearch not works on err page but hardly inserted to other pages it’s ok.
Offline
#6 2006-03-18 01:26:58
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Livesearch javascript doesn't work on error 404 page
I don’t really understand your problem. It sounds like it’s with the plugin, not Textpattern.
Alex
Offline
#7 2006-03-18 01:32:12
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: Livesearch javascript doesn't work on error 404 page
Ok, sorry I’ll try it last time:
my searching needs some path to .js in the head of the page. everywhere is searching working, but only on the error page is not. And if I replace the path to the .js file for absolute path, it’s still not working.
Why?
Offline
#8 2006-03-18 02:38:21
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Livesearch javascript doesn't work on error 404 page
Works fine for me: http://blog.wordstudio.cz/a
Offline
#9 2006-03-18 08:27:26
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: Livesearch javascript doesn't work on error 404 page
No, it doesn’t work fine, because no text is showed:
http://blog.wordstudio.cz – and write “webdesign”
http://blog.wordstudio.cz/a – and write it here – nothing is showed…..
Offline
#10 2006-03-18 08:33:04
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Livesearch javascript doesn't work on error 404 page
The problem isn’t with the path to the .js file. Something else is wrong. Try asking in the plugin thread, or contact the plugin author.
Alex
Offline
#11 2006-03-18 08:34:04
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Offline
#12 2006-03-18 08:39:52
- Ji31
- Member
- Registered: 2005-08-24
- Posts: 103
Re: Livesearch javascript doesn't work on error 404 page
But…..also <txp:css /> isn’t working on the error 404 page!
I must insert the style internaly!
Offline