Want to get rid of messages' horizontal scrollbars?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
iTorrey
Harmless
Posts: 12
Joined: Wed Nov 02, 2005 5:08 pm
Location: Palo Alto, CA
Contact:

Post by iTorrey »

evands wrote:Pity. That's a pretty awkward change to get around a bug that only affects long links.
Here's a thought.

What if I check the innerHTML of the <a> to see if it starts with http:// if it does then we know that it's a link and not custom html that the user input. If it starts with http:// then it shows up as [link] and if it's not it shows up as whatever you put?

I don't truthfully care all that much about the URL problem it's just that the 'correct' fix is a long ways away and this is something I've gotten a lot of requests for from users.

Thoughts?
Macskeeball
Frappa
Posts: 139
Joined: Mon Mar 13, 2006 2:42 am

Post by Macskeeball »

Links can be in the form of http://www.example.com as well. Unlike iChat, no http prefix is required.
iTorrey
Harmless
Posts: 12
Joined: Wed Nov 02, 2005 5:08 pm
Location: Palo Alto, CA
Contact:

Post by iTorrey »

Macskeeball wrote:Links can be in the form of http://www.example.com as well. Unlike iChat, no http prefix is required.
True but then again, problem links are usually ones that people copy and paste from the browser since they are very very long. Short links like http://www.adiumx.com aren't an issue.

hmm.. I dunno. Maybe I'll let this idea sit for a while.
User avatar
bgannin
Growl Team
Posts: 1817
Joined: Thu Dec 02, 2004 8:11 am
Location: ..here
Contact:

Post by bgannin »

The problem with trying to be 'smart' is that you'll never be 'smart' enough. There's already a lexical link parser in Adium that has dozens of cases (IIRC) of valid syntaxes for URL formats and you'd likely need to re-implement this in some accessible mechanism within the WebKit view [in JS or whatever] which may be easy [don't know], but replicating a chunk of application functionality to work around a framework display bug is like mashing a potato with an anvil IMO :)
Try my software!

#define ADIUMX pimp //by me
#define QUESTION ((2b) || (!2b))
Have you hugged a programmer today?
iTorrey
Harmless
Posts: 12
Joined: Wed Nov 02, 2005 5:08 pm
Location: Palo Alto, CA
Contact:

Post by iTorrey »

Thanks for the reality check guys. :)
I'll just accept the problem and wait for the fix :)
User avatar
Catfish_Man
Cocoaforge Admin
Posts: 1203
Joined: Thu Dec 02, 2004 6:30 am
Location: Portland, Oregon
Contact:

Post by Catfish_Man »

I could expose the link parser to js... but it'd be in 1.0 and would shortly be obsoleted by a webkit update.
User avatar
evands
Cocoaforge Admin
Posts: 3152
Joined: Thu Dec 02, 2004 10:55 pm
Location: Decatur, GA
Contact:

Post by evands »

Catfish_Man wrote:I could expose the link parser to js... but it'd be in 1.0 and would shortly be obsoleted by a webkit update.
And three performance kittens might need to be sacrificed. Think of the kittens.
The duck still burns.
--
My company: Saltatory Software. Check it out :)
User avatar
yelly
Crema
Posts: 292
Joined: Thu Sep 01, 2005 2:20 pm
Location: Jerusalem, Israel
Contact:

Post by yelly »

bgannin wrote:is like mashing a potato with an anvil IMO :)
they come out the best that way :grin:
Post Reply