Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7439289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:41:05+00:00 2026-05-29T10:41:05+00:00

I have a page which uses a the hash # to store some extra

  • 0

I have a page which uses a the hash # to store some extra bit of info.
I want to add a button [short url]

which via javascript should

  1. get the current url (easy location.href)
  2. pass it to some url shortener service (eg. bit.ly) etc.
  3. get back the new url and show it in a textfield for the user to copy and paste (easy again)

It’s point 2 that I don’t know how to do (or if it is doable at all)

Note: that all of this should be solved on the client side nothing on my server side.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:41:06+00:00Added an answer on May 29, 2026 at 10:41 am

    From http://code.google.com/p/bitly-api/wiki/ApiDocumentation#API_Key_Security

    API Key Security

    To ensure the absolute security of your API key, we suggest that you always make API calls server-side.

    If it is absolutely necessary to call our API from client-side code, please keep in mind that there is no way to positively ensure that your API key will not be discovered. However, certain measures can be taken to mitigate this risk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page which uses javascript to add some textboxes to the page,
I have a JSP page which uses some kind of JSTL statment to refer
I have a page which uses jquery's ajax functions to send some messages. There
I have a page which uses jquery's ajax functions to send some messages. There
I have a page which uses a fair bit of ajax to load its
I have a page which uses jQuery for some AJAX-stuff und Django as main
I have an ASP.Net web page, which uses a Master Page template. The page
I have a system that uses a meta refresh to a logout page, which
I have a page which does quite a bit of work and I don't
I have small page which has label, DropDownList and a submit button. <div> <asp:label

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.