6 Replies - 1001 Views - Last Post: 20 September 2011 - 05:59 AM

#1 cryoffalcon  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 03-February 11

Hi i am using "Jquery Selected text searcher" its not working

Posted 12 September 2011 - 05:55 PM

well the jquery is working fine for twitter and other stuff but its not working for facebook, when i highlight the text and select fb to share at then the facebook share just show the meta description of site and not the selected area. I am not able to understand where am i going wrong, any assistance provided is highly appreciated.
Go to this link http://www.blobh.com.../testing-1.html there select some text then a tooltip kind of thing will appear first share at twitter then at facebook you will understand the matter.
the script i am using is this
<script type='text/javascript'>
$('.demo1').selectedTextSharer({
        lists:"Twitter,http://twitter.com/home?status=%ts ,favicon|Facebook,http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.blobh.com%2F&t=%s,favicon|Wikipedia (en),http://en.wikipedia.org/w/index.php?title=Special:Search&search=%s,favicon|Google Maps,http://maps.google.com/?q=%s,favicon",
  extraClass: 'dark',
  title: 'Share this text ...',
  borderColor: '#7F241C',
  background : '#4F663A',
  titleColor : '#7F241C',
  textColor : '#FFFFFF',
  hoverColor: '#7F241C'
    });
</script>


and the other script is this one http://bloghuts.goog...t-sharer.min.js and the html is like this
<!-- Just wrap a text with a div and add a class, thats all ! -->
<div class="demo1">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it</div>
<textarea class="demo4"></textarea>
<input class="demo4" type="text" /> 


Is This A Good Question/Topic? 0
  • +

Replies To: Hi i am using "Jquery Selected text searcher" its not working

#2 X-spert  Icon User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 56
  • Joined: 25-August 11

Re: Hi i am using "Jquery Selected text searcher" its not working

Posted 13 September 2011 - 05:29 AM

Seems to work... :dozingoff:
Was This Post Helpful? 0
  • +
  • -

#3 cryoffalcon  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 03-February 11

Re: Hi i am using "Jquery Selected text searcher" its not working

Posted 13 September 2011 - 08:49 AM

View PostX-spert, on 13 September 2011 - 05:29 AM, said:

Seems to work... :dozingoff:



Well what we do is that we select some text there, and when its selected then the options appear, we click facebook one and then the it go to facebook to share BUT IT DOESN'T SHARE THE TEXT THAT YOU HAVE SELECTED instead it just share the meta description of the site. e-g if selected this first sentence "Lorem Ipsum is simply dummy text of the printing and typesetting industry." when i share it one twitter this line is "Lorem Ipsum is simply dummy text of the printing and typesetting industry." is tweeted but in case of facebook this line "Lorem Ipsum is simply dummy text of the printing and typesetting industry." is never copied automatically so that you could share it. OTHERWISE THE JQUERY IS WORKING FINE, my online annoying problem is that why is it not working for facebook. I tried alot but failed, your help will be highly appreciated. thanks for the reply :D
Was This Post Helpful? 0
  • +
  • -

#4 rajesh.kakawat  Icon User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 43
  • Joined: 03-January 11

Re: Hi i am using "Jquery Selected text searcher" its not working

Posted 17 September 2011 - 09:47 AM

I think, It may be because of this
your code :
http://www.facebook.com/share.php

My code
http://www.facebook.com/sharer.php

This post has been edited by rajesh.kakawat: 17 September 2011 - 09:47 AM

Was This Post Helpful? 0
  • +
  • -

#5 cryoffalcon  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 03-February 11

Re: Hi i am using "Jquery Selected text searcher" its not working

Posted 19 September 2011 - 04:20 AM

View Postrajesh.kakawat, on 17 September 2011 - 09:47 AM, said:

I think, It may be because of this
your code :
http://www.facebook.com/share.php

My code
http://www.facebook.com/sharer.php


well thanks for reply, i used your code but still it doesn't make any difference
Was This Post Helpful? 0
  • +
  • -

#6 rajesh.kakawat  Icon User is offline

  • New D.I.C Head

Reputation: 5
  • View blog
  • Posts: 43
  • Joined: 03-January 11

Re: Hi i am using "Jquery Selected text searcher" its not working

Posted 19 September 2011 - 10:46 AM

You should read this
http://www.facebook.com/sharer.php: the URL to the PHP function that will share on Facebook
u=http://example.com:u is the variable name which represents the URL that you want to share
t=The Post's Title: t is the variable name which represents the title of what will be shared on the wall

Keep in mind however that if the site that you share has a title and description metadata, the value that you set to t will be overwritten.

For more, check this link
http://jansensan.net...social-networks
Was This Post Helpful? 0
  • +
  • -

#7 cryoffalcon  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 34
  • Joined: 03-February 11

Re: Hi i am using "Jquery Selected text searcher" its not working

Posted 20 September 2011 - 05:59 AM

View Postrajesh.kakawat, on 19 September 2011 - 10:46 AM, said:

You should read this
http://www.facebook.com/sharer.php: the URL to the PHP function that will share on Facebook
u=http://example.com:u is the variable name which represents the URL that you want to share
t=The Post's Title: t is the variable name which represents the title of what will be shared on the wall

Keep in mind however that if the site that you share has a title and description metadata, the value that you set to t will be overwritten.

For more, check this link
http://jansensan.net...social-networks


Well thanks again rajesh for reply, well if you that thing for twitter, it works perfect as i want it to work, you select the text and then use that tooltip thing and click on twitter, in twitter it automatically pastes the text you selected but this is not the case with facebook, if i do meta things, it will share meta data, which i dont want to share, i want it to share the text selected by the user.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1