[support] passing more than one argument to my lcarousel script [SOLVED]

Aldo Martinez Selleras aldo at caonao.cu
Fri Nov 19 21:49:21 UTC 2010


I generate my XML data more ordered :D

echo '<image>';
   echo '<username>'. $awards[$x]['username'] .'</username>';
   echo '<background>' . $awards[$x]['background'] . '</background>';
   echo '<model>' . $awards[$x]['model'] . '</model>';
   echo '<title>' . $awards[$x]['title'] . '</title>';
   echo '<category>' . $awards[$x]['category'] . '</category>';
   echo '<date>' . $awards[$x]['date'] . '</date>';
   echo '<material>' . $awards[$x]['material'] . '</material>';
echo '</image>';

Then, in my jQuery function!!!!

$(xml).find('image').each(function(i){
  var username = $(this).find('username').text();
  var background = $(this).find('background').text();
  var model = $(this).find('model').text();
  var title = $(this).find('title').text();
  var category = $(this).find('category').text();
  var date = $(this).find('date').text();
  var material = $(this).find('material').text();
        
  carousel.add(first + i, mycarousel_getItemHTML(username, background,
model, title, category, date, material));
});

For me, all of this are OK.

Some suggest ??




More information about the support mailing list