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

  • SEARCH
  • Home
  • 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 8287493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:03:43+00:00 2026-06-08T12:03:43+00:00

Im developing a webapp for Android and iPhone. I need the share in facebook

  • 0

Im developing a webapp for Android and iPhone. I need the “share in facebook” functionality, and i know i can use the url “http://www.facebook.com/sharer/sharer.php?u=”, appending the url to that to open the share in Facebook window we all know and love. Im trying to do it with JavaScript, but the url that is going to be shared must be appended dynamically…

I’ve tried so far:

function goP(){
    var fname=${promo.urlPromocion};
    window.location = "http://www.facebook.com/sharer/sharer.php?u="+${object.url};
}

With quotes, without quotes, with and without the + symbol between the facebook url and the url to share, even tried to hardcode an url. I don’t know if the JS function is even called. But, it doesn’t work. Here is the portion of gsp file where the function is called:

<div class="rrss" style= "width:60px; height:60px; float:left; margin-right:10px; margin-left:68px;" id="facebook"><a href="JavaScript:goP()"><img src="../images/img_mobile/1340130521_facebook.png"/></a></div>

Any help?

Thank you.

  • 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-06-08T12:03:45+00:00Added an answer on June 8, 2026 at 12:03 pm

    Change it to

    window.location.href = ....
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a webapp/website on my local machine and won't know the url I'm
A webapp I'm developing (@ www.PureRGB.com ) appears to load correctly both for the
I am developing PhoneGap webapp where I use some javascript, and sometimes I need
I'm developing a webapp and I'm not sure which pattern design should I use.
i'm developing a webapp for iphone/ipod and using the client's side database. I want
I'm developing a webapp+android app that has its own registration flow - simple authentication
I'm developing a webapp for the iphone. I'd like to force a certain page
I am developing a web app in Android, and I use a WebView to
I'm developing a project on google app engine (webapp framework). I need you people
I'm developing a WebApp for Android, so I've added a custom button like this:

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.