[eluser]RobbieL[/eluser]
When using Ajax.Updater, I don't think an onComplete is necessary. The response from the second parameter, the URL, just automatically gets displayed in the element supplied in the first parameter.
You're right though, I am wanting to request a specific album. And that's why I'm trying to pass the $album and $artist variables created in the model to the ajax callAmazon function. Reading my post back, I wasn't very clear. Sorry about that. I'll try and explain things a bit better.
That model function generates an HTML table containing a title, artist and album of all the the songs in the database. Each song also has a "Album Art" link, that calls the callAmazon Ajax function. When clicked, the album art for the song they clicked should be returned. But in order to do that, I need to let the callAmazon function know which artist and album it needs to look for.
And that's my problem. I create an $artist and $album variable in the model, containing the artist and album name for each song in the database. I need those variables to get passed to the callAmazon function, so it can then pass them to the controller that deals with the Amazon Web Service request.
Really appreciate the speedy responses, Nick. Thanks for baring with me.