I'm trying to write some AJAX stuff with Scriptaculous and I'm stuck on what should be a simple setting of a variable. I'm probably doing something you aren't allowed to do or something. Here's all I'm trying to set:

Code:
path = 'showPrices.html?p='+basePrice;
I get an "undefined" error. Basically I'm trying to pass a variable through AJAX to the file I'm calling through the URL.

Any help would be greatly appreciated.