Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Javascript Nicetitles : opinions?
I am considering using Javascript nicetitles similar to those available on the “leaf” template at textpattern.org, but I thought I would get some opinions first to see if people thought they were trustworthy?
If people DO think they are trustworthy, do you think it is possible to output a section title rather than the url of the article they “describe”?
Thanks.
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: Javascript Nicetitles : opinions?
What do you mean by “trustworthy”?
You cooin’ with my bird?
Offline
Re: Javascript Nicetitles : opinions?
Trustworthy?
I mean, that I want the nicetitles to work on as many browsers as possible, and when it doesn’t work, for it to default to the normal tooltips. I want it to act like a good little nicetitle.
I see a lot of javascript that acts up, and doesn’t do what its supposed to do. Unfortunately, php is next on my list instead of javascript, so until that time, I am hoping for some advice.
Thanks for asking, good question, I can be a little enigmatic sometimes.
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#4 2005-11-07 06:19:00
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: Javascript Nicetitles : opinions?
I like the “nicetitles.” I think you are fine using Javascript (especially since it now has new street cred as part of Ajax).
In fact, I think you would have a hard time getting this to work via PHP. You need the client-side interaction of the JS.
Offline
Re: Javascript Nicetitles : opinions?
So far as I know, the original nice titles script that Stuart Langridge came up with will work in any modern browser; I first used it around three years ago, and it had solid cross-browser compatibility then, so it would stand to reason that it does not.
You cooin’ with my bird?
Offline
Re: Javascript Nicetitles : opinions?
I am trying out the nicetitles now. They are working well.
One question I am coming up with as I tweak here and there, well okay two:
1. I don’t know javascript, so I don’t know how to affect the URI being shown rather than just the title? I can affect a lot of what gets shown there with the title=“whatever” funtion in an a tag, but the URI seems hardcoded into the js?
2. I have a livesearch on my site and when I hover on an image in my livesearch I get normal tooltips instead of the nicetitles, I get everywhere else? Any Ideas? I probably need to ask Rob Sable (rss_plugin_writer) about that one?
Thanks,
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: Javascript Nicetitles : opinions?
Regarding your second point, I’d guess it’s because the nice titles script runs on page load. Links that aren’t in the page’s DOM at that point won’t get the nice titles added to them.
You cooin’ with my bird?
Offline
Re: Javascript Nicetitles : opinions?
Hmm. Didn’t think about that. Any suggested ammendments? In my limited understanding it seems like you could throw a reference toward the ext. javascript for nicetitles into the livesearch js?
Don’t know any js, so I might be full of bs :P
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#9 2005-11-07 16:44:03
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: Javascript Nicetitles : opinions?
Keep in mind that you can use PHP to write to the JS script since the PHP is executed first. Thus you can write URLs or whatever via PHP (or even a TXP tag) and have your JS too.
Offline
Pages: 1