Social network widgets like Addthis in Datatable
Social network widgets like Addthis in Datatable
usmanshabbir
Posts: 8Questions: 0Answers: 0
Hi Allan,
I have been trying to add a social network widgets like addthis to datatable but it automatically hides that when it is added to a row, if i add that any where out side datatable it works fine.
Social network plugin that i am using is : http://www.addthis.com/
I have pasted a screen shot of my error at: http://dl.dropbox.com/u/5880800/SNPlugin.JPG
Any help would be appreciated.
Regards,
Usman
I have been trying to add a social network widgets like addthis to datatable but it automatically hides that when it is added to a row, if i add that any where out side datatable it works fine.
Social network plugin that i am using is : http://www.addthis.com/
I have pasted a screen shot of my error at: http://dl.dropbox.com/u/5880800/SNPlugin.JPG
Any help would be appreciated.
Regards,
Usman
This discussion has been closed.
Replies
Are you getting a Javascript error on the console? How are you adding it to the table? If you had a link to your example, that would be very helpful.
Allan
basically i am using with server side processing and ASP.net c# by using generic handler, i have specified a working sample on my blog.
http://usmanshabbir.blogspot.com/2010/12/extending-jquery-datatable-with-server.html
In the class search results, i am appending Script for Addthis which gets successfully to datatable but don't show up any widget as shown in this screen shot.
http://dl.dropbox.com/u/5880800/SNPlugin.JPG
Also there are no console errors and every thing else is working fine.
Regards,
U
Retrieving script tags this way will not execute the JavaScript required to initialise your widgets. It will simply insert the tags, which on their own do nothing. The JavaScript referenced or contained within the tags must be executed. There are ways to do it, but I haven't researched them myself so I'm afraid I have no practical advice.