Social network widgets like Addthis in Datatable

Social network widgets like Addthis in Datatable

usmanshabbirusmanshabbir Posts: 8Questions: 0Answers: 0
edited September 2011 in General
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

Replies

  • allanallan Posts: 63,532Questions: 1Answers: 10,475 Site admin
    Hi Usman,

    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
  • usmanshabbirusmanshabbir Posts: 8Questions: 0Answers: 0
    Hi 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
  • usmanshabbirusmanshabbir Posts: 8Questions: 0Answers: 0
    Any Help ?
  • GregPGregP Posts: 500Questions: 10Answers: 0
    My understanding is that the DOM is initialized, then DataTables fetches the data from the ASP application, which has already appended the appropriate tags for the widgets.

    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.
  • usmanshabbirusmanshabbir Posts: 8Questions: 0Answers: 0
    That is exactly what i was thinking. Thanks for your Help.
This discussion has been closed.