Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI my prob is this that i have mad e a custom sharing button for linked in but on clicking upon the button it is not posting any url on my linkd in profile...here is my code .. m i missing smethng ?


XML
<script type="text/javascript">function LinkdIN_click() {u=location.href;t=document.title;window.open('http://www.linkedin.com/shareArticle?mini=true&url=<?php'+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436,Scrolbar = 1');return false;}</script><a href="http://www.linkedin.com/shareArticle?mini=true&url=<?phpthe_permalink();?>" title="Click to share this post on LinkedIn" target="_blank" onclick = "return LinkdIN_click()">
<img src="<% =ResolveClientUrl("../images/Lin.jpeg")%>" alt="Share on LinkedIn" width="20" height="20" border="0" style="margin-right:2px; vertical-align:middle" /></a>
Posted
Comments
Dhanamanikandan 20-Apr-12 4:02am    
your code is not clear to identify the issue. align your using improve question.

1 solution

You could use some spy software to intersept what you are sending to the server. The code looks fine but content of your variables might be incorrect. See what is being sent and compare with what it should be.
Try to hardcode all of the fields of the form to make sure you are sending what server expects and once you are good roll it into dinamically built url.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900