English 中文(简体)
Jquery从一个桌子上拿到Click的Face Feed Dialog
原标题:Jquery get contents from a table into Facebook Feed Dialog on Click

我有一个表格,列出了在辩论日历上的所有活动。 每一行都有学校、时间和地点等基本信息。 我想得到这样的信息,即表上最后一栏中的份额联系是通过分类来进行的,因此我不需要在每一条目中这样做。 见我迄今为止在这里所做的内容:

我想到的是,在点击份额时,我会把有关该行的信息带入一个像以下的圆顶,打开一个新窗口,使用户能够上台。 在下文中,我有希望出现在每一点名,即年级,我希望封顶领域年级的内容。 我需要进一步使问题复杂化,以确保任何空位都编码为第20号,以使该舱有效。

http://www.facebook.com/dialog/feed?
app_id=123050457758183&
link=http://developers.facebook.com/docs/reference/dialogs/&
picture=http://fbrell.com/f8.jpg&
name=School%20Debate&
caption=.yearlevel&
description=.homeschool%20.versus%20.awayschool%20@%20.venue%20@%20.datetime&
redirect_uri=http://www.example.com/response

Is this possible? Any pointers to get me on the right track would be greatly appreciated!

最佳回答

Use .on() for each a href tag and encodeURIComponent

$( a ).on( click , function (event) {
   event.preventDefault();
   var homeschool = $(this).parent().siblings( .homeschool );


   var url =  http://www.facebook.com/dialog/feed?  +  app_id=123050457758183&  +  link=http://developers.facebook.com/docs/reference/dialogs/&  +  picture=http://fbrell.com/f8.jpg&  +  name=  + encodeURIComponent(homeschool) +  caption=yearlevel&  +  description=homeschool%20.versus%20.awayschool%20@%20.venue%20@%20.datetime&  +  redirect_uri=http://www.example.com/response ;

   window.open(
   url,  _blank  // <- This is what makes it open in a new window.
   );

});​

<http://jsfiddle.net/dhirajbodicherla/69dDm/"rel=“nofollow”DEMO

希望这一帮助

问题回答

暂无回答




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签