PDA

View Full Version : Functions and Ajax


Preech
06-15-2013, 07:54 AM
Okay, I have decided to push the music modification for mysite a little further. Pretty much I would say I am about 70% complete. You know, I am trying to make it look a little more modern as far as look, and a good flash mp3 player. The problem I am running into is the ajax function of viewing albums, artist, or playing music. Please can someone give me some instructions on what I am doing wrong.

This is a function be called from within' a JS script, which I have the script be called in the headinclude template.
function viewartist(artistid,page)
{
loader ('musicajax.php?do=viewartist&id='+artistid+'&page='+page+'&#','main');

}

This is what I have the link set up within' my custom template.
<a href="#PLAY" onclick="viewartist('{vb:raw artistid,1}')">{vb:raw artistname}</a>