Re: [twitter-dev] Preserving a "#" after a URL being passed into the share interface

2011-02-15 Thread Matt Harris
Hi Pamela,

I'm not able to reproduce this problem when I try and share you're URL. Can
you share the HTML you are using to implement the Tweet Button so we can
test ourselves as well.

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Tue, Feb 15, 2011 at 8:18 AM, pamela  wrote:

> Hey folks -
>
> I'm trying to programmatically create a share dialog to share a URL
> that has a hash value in it. (In JavaScript)
> For example, the URL could be: http://www.translation-telephone.com/#4249
>
> I have tried various ways of passing this URL in, but each fail in
> different ways.
> If I encode the URL, I get an "invalid URL".
> If I replace just the "#" with "%23", it shortens the URL, but with
> the "%23" instead of the "#", so the URL is no longer correct.
> If I don't replace or encode anything, then it shortens the URL before
> the "#" sign, ignoring what's after.
>
> Any idea as to what will actually work, and preserve the value after
> the hash?
>
> Thanks!
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Preserving a "#" after a URL being passed into the share interface

2011-02-15 Thread pamela
Hey folks -

I'm trying to programmatically create a share dialog to share a URL
that has a hash value in it. (In JavaScript)
For example, the URL could be: http://www.translation-telephone.com/#4249

I have tried various ways of passing this URL in, but each fail in
different ways.
If I encode the URL, I get an "invalid URL".
If I replace just the "#" with "%23", it shortens the URL, but with
the "%23" instead of the "#", so the URL is no longer correct.
If I don't replace or encode anything, then it shortens the URL before
the "#" sign, ignoring what's after.

Any idea as to what will actually work, and preserve the value after
the hash?

Thanks!

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk