Hello!

I have one very annoying problem.

First of all, I have a list of items. Each items contains information
that I want to display on the webpage using several functions.

Here's an example:
function getNumbers() {
var numberofentries = $('#kilometer-data li').size();
}


Everything works when I have a static list that is generated by PHP
everytime I load the page but I want to use Ajax to load the list.

The problem is that the functions don't work. :(


I have the function called init() where I use Ajax.get to fetch the
list and I have several other functions but writing them down like:

$(document).ready(function() {

init();

otherfunction(); // booth need the data provided by init();

function();


});

doesn't work. otherfunction() and function() are unable to work with
the data generated by init()


I really hope you understood my problem. ;-)


Thanks,
Dominik

Reply via email to