0

I want to get some data from an external page than display it with a ticker effect.

There is an example on its own website but there the data is not pulled from another page (http://www.jquerynewsticker.com).

With the following code, data is successfully loaded from the external page.

But ticker plugin does not work while I dont get any errors.

    $(function FeedTicker() {
        $.ajax({
            type: "GET",
            url: "default.cs.asp?Process=ViewCheckins",
            success: function(data) {
            $(".feedme").html(data);
            $('#js-news').ajaxSuccess(function(){
               $(this).ticker();
            })
            },
            error: function(data) {
            $(".feedme").html(data);
            }
        })
    });
Efe
  • 944
  • 3
  • 19
  • 37

1 Answers1

0

try this:

$('#js-news').ajaxSuccess(function(){
   $(this).ticker();
})
Ram
  • 143,282
  • 16
  • 168
  • 197
  • I tried it both with and without .when().done() and in and out of the FeedTicker function but it didnt work. – Efe Jun 12 '12 at 10:50
  • oh, have you tried to call the function within ajax method after `$(".feedme").html(data);` that's weird, are you sure ticker plugin has been loaded successfully? – Ram Jun 12 '12 at 10:52