Currently I'm building a plugin for use on different websites which shows links to facebook etc.
When a link is clicked, a Javascript popup opens with the facebook sharing page, and a href and title are allready in the input fields, because I've merged them into the facebook-opening-link.
The whole scenario above leads me to two problems at the moment:
Is there a way in which I can work around this? Maybe with php-encoding or something like that.
2. The links for the popups are placed in a container-div ("#social_share"), which is in a block on my page that gets refreshed with an Ajax-function. This all works nice, but when I've opened the facebook plugin for example once, the second time on another (ajax loaded) page, it won't open.
Solution for this should be a kind of refresh for the javascript function (called 'popUp'), which I can pass into my Ajax-Refresh function.
Solved, weird characters in my links where the problem.
Question
Duncank
Currently I'm building a plugin for use on different websites which shows links to facebook etc.
When a link is clicked, a Javascript popup opens with the facebook sharing page, and a href and title are allready in the input fields, because I've merged them into the facebook-opening-link.
The whole scenario above leads me to two problems at the moment:
1. The links I want to send to facebook and other services, sometimes have "&"-characters in it. This screws with the original facebook link ("http://www.facebook.com/sharer.php?u=url-here&t=title-here").
Is there a way in which I can work around this? Maybe with php-encoding or something like that.
2. The links for the popups are placed in a container-div ("#social_share"), which is in a block on my page that gets refreshed with an Ajax-function. This all works nice, but when I've opened the facebook plugin for example once, the second time on another (ajax loaded) page, it won't open.
Solution for this should be a kind of refresh for the javascript function (called 'popUp'), which I can pass into my Ajax-Refresh function.
Solved, weird characters in my links where the problem.
Hopefully you guys can help me out!
Link to comment
Share on other sites
0 answers to this question
Recommended Posts