Вопрос

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);
            }
        })
    });
Это было полезно?

Решение

try this:

$('#js-news').ajaxSuccess(function(){
   $(this).ticker();
})
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top