Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-04-2011, 04:27 AM   #1
oren
Member
oren began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2011
Device: iphone
Facebook Share Button on .epub book

Hi.
I'm using this code for adding share button to my ebook (epub):

<div id="fb-share" dir="rtl" style="float:right;">
<a name="fb_share" type="icon_link" share_url="http://www.yetsiot.co.il/"><img alt="fb" class="fb" src="../Images/fb.png" />שתף</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"
type="text/javascript">
</script></div>

It works when opens as a web-page but when using epub-reader (FF, IPhone, Android...) it just show the title but it's not clickable...

Any idea why? And how to fix that?

Thanks,
Oren
oren is offline   Reply With Quote
Advert
Old 12-04-2011, 05:16 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,062
Karma: 9175645
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
First, do not use "name", it should be "id" in XHTML.

Second, you don't have an "href", the link needs a target "href" property (and I bet "share_url" is not supported either).

Third, <script>, while not forbidden, is almost guaranteed not to work.

Fourth, many ePub readers have no Internet connection, and some of those who have cannot connect to the Internet from the reader application.
Jellby is offline   Reply With Quote
Old 12-04-2011, 05:32 AM   #3
oren
Member
oren began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2011
Device: iphone
Hi,
Can you please help me with the right code? One which will work?
Secondly, I just found out that when using 'Android' I can't see the link at all...
Is there a difference between the two? Is there a way to make sure it looks well on all systems?

Thanks again
Oren
oren is offline   Reply With Quote
Old 12-04-2011, 06:01 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,062
Karma: 9175645
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by oren View Post
Can you please help me with the right code? One which will work?
I don't think so. It seems the code relies on the <script>, which as I said will not generally work in ePub readers.
Jellby is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Facebook ePub sean729 Conversion 1 04-05-2011 06:10 PM
Problem with sharing book excerpts on Facebook Slydini Nook Color & Nook Tablet 4 01-08-2011 11:40 PM
Updating facebook with current book... m0ngr31 Kindle Developer's Corner 2 12-11-2010 01:21 AM
Free Book Coupons on my Facebook Fan Page! daveconifer Deals, Freebies, and Resources (No Self-Promotion) 10 05-29-2010 11:15 PM


All times are GMT -4. The time now is 07:50 AM.


MobileRead.com is a privately owned, operated and funded community.